yangfuyuan / ydlidar_sdk

ydlidar sdk(new version)
GNU General Public License v3.0
15 stars 5 forks source link

Check lidar device health error. #3

Open vindevries opened 5 years ago

vindevries commented 5 years ago

I get the following error when I run ydlidar_test:

YDLIDAR C++ TEST SDK Version: 1..3.7 LIDAR Version: 1.3.7 fhs_lock: creating lockfile: 3793

fhs_unlock: Removing LockFile check lidar device health error.

Has anyone had the same error?

yangfuyuan commented 5 years ago

1.update the latest sdk version 1.3.8

  1. the latest version fix getting lidar health status error.
vindevries commented 5 years ago

Thanks, I'll try it out as soon as I have time.

yahoo2016 commented 5 years ago

I just checked out the latest 1.3.8 and still got the same error. My X4's worked for 1.3.2.

vindevries commented 5 years ago

So I got my X4 to work with sdk v 1.3.2. it is a bit strange because when I run the demo app, the first three times it tells me that there is a health error before it starts running.

On a side note, I have not managed to get it to run on ROS

yahoo2016 commented 5 years ago

Have you used powered USB hub?

yangfuyuan commented 5 years ago

Please use the SDK in the following address: https://github.com/YDLIDAR/sdk ros package: https://github.com/YDLIDAR/ydlidar ros2 package: https://github.com/YDLIDAR/ydlidar_ros2

fantauzzi commented 4 years ago

Please consider writing this in the README, so one doesn't waste time compiling and using the wrong software.

higortizatto commented 4 years ago

Good morning, you could help me. I'm having some problems when I run ydlidar on ros and some errors when I run rviz to view, I'm new to ros, and I have a ydlidar x2.

higortizatto commented 4 years ago

pi@raspberrypi:~/catkin_ws/src/ydlidar_ros/startup $ sudo chmod 777 ./* pi@raspberrypi:~/catkin_ws/src/ydlidar_ros/startup $ sudo sh initenv.sh pi@raspberrypi:~/catkin_ws/src/ydlidar_ros/startup $ roslaunch ydlidar_ros lidar_view.launch ... logging to /home/pi/.ros/log/6d8af548-435e-11ea-a690-dca63222a998/roslaunch-raspberrypi-4159.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://raspberrypi:46577/

SUMMARY

PARAMETERS

NODES / base_link_to_laser4 (tf/static_transform_publisher) rviz (rviz/rviz) ydlidar_node (ydlidar_ros/ydlidar_node)

ROS_MASTER_URI=http://localhost:11311

process[ydlidar_node-1]: started with pid [4174] process[base_link_to_laser4-2]: started with pid [4175] process[rviz-3]: started with pid [4176]


\ \ / / | | | | \ / \ | \ \ V /| | | | | | || | | |/ \ | |) | | | | || | | | || || / | <
|| |____/|
|_|__// __| \\

[ INFO] [1580388361.015181825]: [YDLIDAR INFO] Now YDLIDAR ROS SDK VERSION:1.4.4 ....... [YDLIDAR]:SDK Version: 1.4.5 qt5ct: using qt5ct plugin qt5ct: D-Bus global menu: no Error, cannot retrieve Yd Lidar health code: ffffffff [YDLIDAR]:SDK Version: 1.4.5 Error, cannot retrieve Yd Lidar health code: ffffffff get Device Information Error get Device Information Error [CYdLidar::initialize] Error initializing YDLIDAR check status. [ERROR] [1580388375.250625442]: Error initializing YDLIDAR Comms and Status!!! [ INFO] [1580388375.762326742]: [YDLIDAR INFO] Now YDLIDAR is stopping ....... [ydlidar_node-1] process has finished cleanly log file: /home/pi/.ros/log/6d8af548-435e-11ea-a690-dca63222a998/ydlidar_node-1*.log

jung-youjin commented 2 years ago

@higortizatto Hi, did you solve this issue?

vindevries commented 2 years ago

Yes, the latest version of the SDK solved the issue.