-
Notifications
You must be signed in to change notification settings - Fork 63
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
[ROS2] Add support for lidar intensity #737
[ROS2] Add support for lidar intensity #737
Conversation
Signed-off-by: Aleksander Kamiński <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I mentioned multiple times in review, please consider using point_cloud2_iterator.hpp to build ROS 2 message.
Signed-off-by: Aleksander Kamiński <[email protected]>
@michalpelka I've used the pointcloud iterators as you've suggested. They simplified the code a lot and are much more easier to work with. I just wish that the message modifier would allow for more robust builder-like configuration (something similar to how o3de handles edit contexts). |
Signed-off-by: Aleksander Kamiński <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine! I ran this in a simple scene with terrain and it seems to work!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code works as expected, only two nitpicks.
Signed-off-by: Aleksander Kamiński <[email protected]>
Signed-off-by: Aleksander Kamiński <[email protected]>
Signed-off-by: Aleksander Kamiński <[email protected]>
Signed-off-by: Aleksander Kamiński <[email protected]>
Signed-off-by: Aleksander Kamiński <[email protected]>
What does this PR do?
This pr introduces lidar intensity data support for the ROS2 Lidar Sensor Component (does not implement this feature for the ROS2 Lidar 2D Sensor Component) . It also modifies point-cloud publishing as intensity is an optional feature and may not be provided by every lidar implementation (eg. Scene queries). For more information about the intensity capabilities and component support see the RGL gem intensity support pull request.
Note: Due to #719 and future instance segmentation integration this part of the ROS2 Lidar Sensor will soon have to be updated (see #736).
How was this PR tested?
This feature was tested on Mesh Components with and without the Material Components and on Terrain Components. Since this feature is only supported by the RGL gem, it was tested with a custom RGL gem test project (and a different closed-source project).