pointcloud_to_laserscan
pointcloud_to_laserscan copied to clipboard
/cloud_in not identical to /cloud
Hi,
trying to use the pointcloud to lidarscan.
Source is a Robosense RSlidar M1 configured to publish pointcloud2 msg to topic /rslidar_points.
Pointcloud is republished by topic_tools relay to topic /cloud_in.
Node launched with ros2 launch pointcloud_to_laserscan sample_pointcloud_to_laserscan_launch.py
works with no errors.
Both pointclouds are mapped to the same frame.
Expected behaviour: Topics /cloud_in (/rslidar_points) (colored pointcloud) and /cloud (white cloud) are the same.
Observed behaviour: The pointclouds /cloud_in isn’t identical to /cloud.
I hope the attached screenshot will clarify the problem.
Ubuntu 18.04 (Host) - Ros2 Eloquent Ubuntu 22.04 (Docker) - Ros2 Humble
Thanks
Is it possible that this is the pointcloud published by the demo publisher node and for some reason the real input cloud isnt considered as input?
Source cloud needs to be published to /scanner/cloud_in and the dummy pointcloud needs to be deactivated in the launchscript.
Finally working!