Skip to content

Feature/igvc cv#63

Open
H2re wants to merge 13 commits intodevelopfrom
feature/igvc_cv
Open

Feature/igvc cv#63
H2re wants to merge 13 commits intodevelopfrom
feature/igvc_cv

Conversation

@H2re
Copy link
Copy Markdown

@H2re H2re commented Feb 24, 2026

Added CV ROS2 Node

@zbrotherton zbrotherton requested a review from Glesko22 February 24, 2026 05:02
@zbrotherton zbrotherton linked an issue Feb 24, 2026 that may be closed by this pull request
def image_callback(self, msg):
frame = self.bridge.imgmsg_to_cv2(msg, 'bgr8')
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
blur = cv2.GaussianBlur(gray, (11, 11), 33, 33)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The arguments of the GaussianBlur function (as well as the Canny and HoughLinesProbability) will be adjusted in the future based on our actual camera image and testing. Would it be better to have them as arguments in this function or will they be manually edited in the code?

Copy link
Copy Markdown

@Glesko22 Glesko22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Look at comments, mostly formatting issues

self.declare_parameter("hough_min_line_length", 4)
self.declare_parameter("hough_max_line_gap", 5)

# Gaussian Pyramid Up-Sample
Copy link
Copy Markdown

@Glesko22 Glesko22 Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentation lines 36-39

# Gaussian Pyramid Up-Sample
self.declare_parameter("layers", 4)
self.declare_parameter("pyrInput",[])
self.declare_parameter("pyrOutput",[])
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe line 39 should have a comma instead of a period

self.declare_parameter("hough_max_line_gap", 5)

# Gaussian Pyramid Up-Sample
self.declare_parameter("layers", 4)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small, but I believe there should be a space between the comma and brackets:
self.declare_parameter("pyrInput", [])
self.declare_parameter("pyrOutput", [])

smurokh
smurokh previously approved these changes Mar 10, 2026
@zbrotherton zbrotherton linked an issue Mar 12, 2026 that may be closed by this pull request
white_u = white_u[valid]
white_v = white_v[valid]
distances = distances[valid]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does 'distances' do? Right now it looks like its calculated and then never used? Not an issue, just wondering the intention

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it seems that this is the initial step of projecting the detected lines into 3d space, since we were not completely sure in what format to output this information. it is a different question as to whether this distances array can be smoothly integrated into the costmap.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we certain this is the way forward? Has anyone looked into getting distances smoothly integrated into the costmap?

@smurokh
Copy link
Copy Markdown

smurokh commented Apr 3, 2026

On costmap integration: obstacle_layer and voxel_layer accept PointCloud2 topics as input. This node now returns a point cloud, but it must still be integrated into the costmap

@smurokh smurokh requested a review from Glesko22 April 3, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update CV Node to take continuous input Include CV repository as a ROS2 Node

4 participants