EAIBOT / ydlidar

The driver of ydlidar for ROS on the linux !
101 stars 61 forks source link

start YDLIDAR is failed! on a rpi3 B+ using Ubuntu 16.04.5 #12

Closed ladrians closed 5 years ago

ladrians commented 5 years ago

I have a rpi3 B+ and want to try a X4 ydlidar.

I followed the information on this repository to configure it.

When launching the lidar.launch I get the following error:

[YDLIDAR INFO] Current ROS Driver Version: 1.3.1
[YDLIDAR INFO] Current SDK Version: 1.3.1
[YDLIDAR INFO] YDLIDAR running correctly! The health status: well
[YDLIDAR INFO] Connection established in /dev/ydlidar:
Firmware version: 1.0.4
Hardware version: 1
Model: X4
Serial: 2018072600000109
[YDLIDAR INFO] Current Sampling Rate : 5K
[YDLIDAR INFO] Current Scan Frequency : 7.000000Hz
[YDLIDAR INFO] Connected to YDLIDAR on port /dev/ydlidar at 128000
[ERROR] [1540494660.808305823]: start YDLIDAR is failed! Exit!! ......
[ydlidar_node-2] process has finished cleanly
log file: /home/ubuntu/.ros/log/b016737e-d889-11e8-85a4-b827eb97b52f/ydlidar_node-2*.log
^C[base_link_to_laser4-3] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete

If I check the log file just this line is added

1540500230.681498661  Node Startup
1540500236.920342693 ERROR [/home/ubuntu/catkin_ws/src/ydlidar/src/ydlidar_node.cpp:502(main) [topics: /rosout, /scan] start YDLIDAR is failed! Exit!! ......

I am using Ubuntu 16.04.5 LTS, any tips on how to solve it? Thanks in advance,

ladrians commented 5 years ago

Just in case I could test the case in a secondary rpi3 B with Raspbian jessie 8.0 + ROS indigo with exactly the same result.

ladrians commented 5 years ago

I tested the Lidar with a Ubuntu machine and it's working. After several tries I tested again with the rpi3 plugging both USB connections for data and power and worked!! So I guess when using a rpi it is not enough to use the data USB connection for powering the decide. thanks,