fix appending features behind all the zeros occurring at coordinates … #508
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Author: Owen Chen
Issue
Issue link (if present):
Issue description: There are a lot of zero points (almost 50% of total features) at coordinate(0,0) sending out from camera_node (depthai_bridge)
To quick duplicate this issue, run
$ ros2 run depthai_examples feature_tracker
When you run ros2 topic echo /features_right or /featueres_left, you will get
stamp:
sec: 0
nanosec: 0
frame_id: ''
position:
x: 0.0
y: 0.0
z: 0.0
id: 0
age: 0
harris_score: 0.0
tracking_error: 0.0
stamp:
sec: 0
nanosec: 0
frame_id: ''
position:
x: 0.0
y: 0.0
z: 0.0
id: 0
age: 0
harris_score: 0.0
tracking_error: 0.0
I also wrote ros node to subscribe /features_right or /features_left raw data, almost 50% of total features are appending zero
keypoint x: 0, y: 0
keypoint x: 0, y: 0
keypoint x: 0, y: 0
keypoint x: 0, y: 0
keypoint x: 0, y: 0
keypoint x: 0, y: 0
keypoint x: 0, y: 0
keypoint x: 129.689, y: 82.449
keypoint x: 139.115, y: 79.3655
keypoint x: 130.634, y: 36.6569
keypoint x: 118.756, y: 94.4681
keypoint x: 142.136, y: 92.7242
keypoint x: 136.938, y: 71.487
....etc
Related PRs
Changes
ROS distro: humble
List of changes:
changed implementation in TrackedFeaturesConverter.cpp to fix appending features behind all the zeros occurring at coordinates (0,0)
Testing
Hardware used: Luxonis OAK-D Stereo Camera with Lenovo notebook
Depthai library version: 2.23.0.0
Visuals from testing
Add screenshots/gifs/videos from RVIZ or other visualizers demonstrating the effect of the changes when applicable.
