http://wiki.ros.org/hls_lfcd_lds2_driver

https://emanual.robotis.com/docs/en/platform/turtlebot3/appendix_lds_01/

Where to buy

https://www.aliexpress.com/item/1005004738189008.html?spm=a2g0o.order_list.order_list_main.15.493b1802Zw73pM#nav-review

Basic information

hitachi_lidar2.jpg

Connection

Use the “Embedded board” since I don’t have the “USB2LDS”. but you’ll need something to read uart from the LIDAR. And the second image, create connection with wire between LDS vcc and motor Vcc, LDS pwm and motor pwm.

USB2LDS vs basic uart

USB2LDS vs basic uart

internal connection

internal connection

This is my setup pretty simple (simpler than looking to find USB2LDS which I have none). I’m using cp2102, that one lying on my desk, I don’t know whether it would work with other (I supposed it would work as long as it recognized on your system as /dev/ttyUSB0

WhatsApp Image 2023-10-08 at 19.37.19.jpeg

Result

ros_lidar_raw.png

Code

Assuming you have installed ros2 foxy on your pc.

#install driver, 
sudo apt install ros-foxy-hls-lfcd-lds-driver

#run ros2 node 
ros2 launch hls_lfcd_lds_driver hlds_laser.launch.py

#create new terminal window to and check the output
ros2 topic echo /scan