Skip to content
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

Lidar question #37

Open
pitosalas opened this issue Dec 16, 2024 · 3 comments
Open

Lidar question #37

pitosalas opened this issue Dec 16, 2024 · 3 comments

Comments

@pitosalas
Copy link

I now have waveshare + Raspi 4 + IMU working correctly, thanks!

  1. Is WayPonDEV FHL-LD19 Plus 2D Lidar Sensor the same as DTOF LD19 Laser LiDAR Sensor Kit?

  2. Can I somehow connect the Lidar directly without the USB connector? Either to the Pi or to the gendev?

  3. I have an LDS-02 Lidar (from Robotis). It also has USB connector. How hard is it to make it work with gendev and your fork?

Thank you!

@hippo5329
Copy link
Owner

hippo5329 commented Dec 16, 2024

  1. They are the same. Some named it as D300, too.
  2. Yes, you can. LD19 is simple, 5V GND, TX data to pi. You will need to assign lidar serial port in your linorobot2 bringup launch. esp32 might not have the resources to handle the lidar messages. In wifi setup, I forwarded the lidar data to udp without processing. However, I would suggest USB connections for both the waveshare and lidar as the initial tests. I believe USB serial will be easier than hardware serial ports on pi. It will be more flexible when you want to try out jetson or mini pc/laptop.
  3. I think it will be easy. The lidar has nothing to do with micro-ROS/waveshare. I think LDS-02 lidar ROS2 driver should be available with turtlebot3. I will check more details later. The laser launch in the linorobot2 bringup will need some mod.

Please note both waveshare and lidar might use similar device id/names. udev rules might be useless. We will need to specify the ports with by-path names.

https://github.com/hippo5329/linorobot2_hardware/wiki#esp32-with-serial-transport-and-lidar-on-the-robot-computer

@hippo5329
Copy link
Owner

This is the lidar launch file, which start the lidar driver.

https://github.com/linorobot/linorobot2/blob/humble/linorobot2_bringup/launch/lasers.launch.py

Before connect lidar to linorbot2. You should run lidar view test program to see the lidar scan on rviz2.

LDS-02 = LD08 driver

https://github.com/ROBOTIS-GIT/ld08_driver

@hippo5329
Copy link
Owner

I am able to build the ld08 driver with humble branch. But there is no view launch. You may try to view the scan on rviz2. The serial port assignment will be an problem as it uses cp2102 which is the same as waveshare. We will need to modify the driver src/main.cpp to use our lidar port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants