laser data is not avliable on rviz2 . but i am geting data while using terminal cmd topic echo.
i was testing LDS-01 lidar with example code from the driver. i am getting data while using terminal cmd topic echo. But laser data is not available on rviz2 .i am using ros2 humble .
website : http://wiki.ros.org/hls_lfcd_lds_driver
i had complied git hub the code after putting it in "ros2_ws/src"(image 1 and image 2 from image link specified above)
ls /dev/ttyUSB*
/dev/ttyUSB0
sudo chmod 777 /dev/ttyUSB0
ros2 launch hls_lfcd_lds_driver hlds_laser.launch.py
in another terminal :
ros2 topic list
/parameter_events
/rosout
/scan
ros2 topic echo /scan --once
header: stamp: sec: 1675073473 nanosec: 112333930 frame_id: laser angle_min: 0.0 angle_max: 6.2657318115234375 angle_increment: 0.01745329238474369 time_increment: 0.0005592841189354658 scan_time: 0.20134228467941284 range_min: 0.11999999731779099 range_max: 3.5 ranges: - 0.13099999725818634 - 0.12999999523162842 - 0.12999999523162842 - 0.1289999932050705 - 0.1289999932050705 - 0.1289999932050705 - 0.1289999932050705 - 0.1289999932050705 ................
rviz2
(image 3 ,image 4 and image 5 from image link specified above)
i found 2 problem :
1)Fixed Frame No tf data. Actual error: Frame [map] does not exist
2)Points Showing [0] points from [0] messages
helpfull links i refered : https://www.theconstructsim.com/ros-qa-122-how-to-show-laser-data-on-rviz/