Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new cluster data struct and converted lidar detection to have x, y co… #35

Merged
merged 6 commits into from
Aug 20, 2024

Conversation

ashum68
Copy link
Contributor

@ashum68 ashum68 commented Jul 26, 2024

…ords instead of dist, angle

Copy link
Contributor

@TongguangZhang TongguangZhang left a comment

Choose a reason for hiding this comment

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

reviewed

modules/lidar_detection.py Outdated Show resolved Hide resolved
Copy link
Contributor

@TongguangZhang TongguangZhang left a comment

Choose a reason for hiding this comment

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

reviewed

modules/detection_cluster.py Show resolved Hide resolved
Comment on lines -13 to -14
__DISTANCE_LIMIT = 50
__ANGLE_LIMIT = 170
Copy link
Contributor

Choose a reason for hiding this comment

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

keep the limits

return False, None

if abs(angle) > cls.__ANGLE_LIMIT:
if distance == -1:
Copy link
Contributor

Choose a reason for hiding this comment

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

why only negative 1? why not keep the old check of 0 <= distance <= limit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the lidar driver takes care of limit checking and returns -1 if it's an invalid read. should I keep checks in both files then?

Angle is in degrees.
distance is in metres.
angle is in degrees.
(x, y) are the coordinates of the LiDAR scan relative to the drone's position.
Copy link
Contributor

Choose a reason for hiding this comment

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

what kind of coords? (nes, lat long, etc.)

@ashum68 ashum68 force-pushed the cluster-data-struct branch from fa8f44d to 6455838 Compare July 30, 2024 20:01
Copy link
Contributor

@TongguangZhang TongguangZhang left a comment

Choose a reason for hiding this comment

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

reviewed

Comment on lines 19 to 17
Distance is in meters.
Angle is in degrees.
distance is in metres.
angle is in degrees.
Copy link
Contributor

Choose a reason for hiding this comment

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

keep the caps

return False, None

if abs(angle) > cls.__ANGLE_LIMIT:
if distance == -1:
Copy link
Contributor

Choose a reason for hiding this comment

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

why is it just -1 instead of <0?

@ashum68 ashum68 force-pushed the cluster-data-struct branch from daddba5 to fc56ee4 Compare August 20, 2024 19:45
Copy link
Contributor

@TongguangZhang TongguangZhang left a comment

Choose a reason for hiding this comment

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

lgtm

@ashum68 ashum68 force-pushed the cluster-data-struct branch from fc56ee4 to 0152811 Compare August 20, 2024 20:47
@ashum68 ashum68 merged commit 84a2b6e into main Aug 20, 2024
1 check passed
@ashum68 ashum68 deleted the cluster-data-struct branch August 20, 2024 20:48
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.

2 participants