ydlidar X2 health code: ffffffff
Hi there,
Maybe someone had the same problem or can could help me.
Ubuntu Image : https://downloads.ubiquityrobotics.com/ (Virtual Machine)
Manual : www.ydlidar.com/download/32
After i added the workstation into my VirtualBox Manager i followed the manual,
$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkininitworkspace
$ cd ~/catkinws && catkinmake
$ echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
$ source ~/.bashrc
$ git clone https://github.com/YDLIDAR/ydlidar_ros
$ cd ydlidar_ros
$ git checkout X2
$ cd ..
$ catkin_make
$ roscd ydlidar/startup
$ sudo chmod 0777 *
$ sudo sh initenv.sh
Everything was working fine until i wanted to start scanning
$ roslaunch ydlidar lidar_view.launch
the lidar_view windows opens with no visible scanning-output and in the terminal i get following Error "Error: Error, cannot retrieve Yd Lidar health code: ffffffff"
Here is a picture of my terminal, maybe this helps someone https://imgur.com/1fEd1IQ
Could someone guide me? Or tell me what i could do?
Asked by Voicy on 2019-12-06 20:51:20 UTC
Answers
Hi from newbie ROS from Thailand. "Everything was working fine until i wanted to start scanning
$ roslaunch ydlidar lidar_view.launch" I change this line to run X2L Parameter roslaunch ydlidar_ros X2L.launch
that's found result :
process[ydlidar_node-1]: started with pid [10298]
\ \ / / _ | | |_ | _ \ / \ | _ \
\ V /| | | | | | || | | |/ _ \ | |) |
| | | || | |__ | || || / __ | _ <
|| |/|||__// __| _\
process[base_link_to_laser4-2]: started with pid [10299] [ INFO] [1583287112.770289043]: [YDLIDAR INFO] Now YDLIDAR ROS SDK VERSION:1.4.4 ....... [YDLIDAR]:SDK Version: 1.4.5 [YDLIDAR]:Lidar running correctly ! The health status: good [YDLIDAR]:Fixed Size: 470 [YDLIDAR]:Sample Rate: 4K [YDLIDAR INFO] Current Sampling Rate : 4K [YDLIDAR INFO] Now YDLIDAR is scanning ...... ^C[base_link_to_laser4-2] killing on exit [ydlidar_node-1] killing on exit 547438477696 thread has been canceled [YDLIDAR INFO] Now YDLIDAR Scanning has stopped ...... shutting down processing monitor... ... shutting down processing monitor complete done
but if i run : $ roslaunch ydlidar_ros lidar_view.launch program run completely but not shown data from lidar!
:ROS_MASTER_URI=http://localhost:11311
process[ydlidar_node-1]: started with pid [10803] process[base_link_to_laser4-2]: started with pid [10804]
\ \ / / _ | | |_ | _ \ / \ | _ \
\ V /| | | | | | || | | |/ _ \ | |) |
| | | || | |__ | || || / __ | _ <
|| |/|||__// __| _\
process[rviz-3]: started with pid [10814] [ INFO] [1583287495.173122145]: [YDLIDAR INFO] Now YDLIDAR ROS SDK VERSION:1.4.4 ....... [YDLIDAR]:SDK Version: 1.4.5 [YDLIDAR]:Lidar running correctly ! The health status: good
Finally I can solve the problem ....
this git from https://github.com/YDLIDAR/ydlidar_ros/tree/master/launch
launch file lidar_view.launch is support G2A when you copy parameter in X2L.launch and paste in lunch.lunch and run lunch_view.lunch it'WORK!!!!! EUREKA!!!!!
for more parameter info please read: https://github.com/YDLIDAR/ydlidar_ros/blob/master/docs/paramters.md
Asked by komkrit on 2020-03-03 21:06:54 UTC
Comments
I have an X4 Lidar from the same folks and was trying to use it on a Virtual Machine. I ended up not solving all the issues and simply using a USB drive with Ubuntu 16.04 installed to run my computer off of. This worked after making the serial port executable, adding my user to the DIALOUT group, and restarting.
find the serial port your Lidar is at and change perms chmod 666 /dev/ttyS0
Make sure your user is part of dialout group sudo adduser YOURUSER dialout
On the VM, my theory is when the software passes the serial port on to the guest machine, it doesn't give all the info. I had to change the initenv.sh script to get it to make an alias for the serial port with the incomplete info. Even then I still never got it working on the VM. If anyone does let me know!
Asked by mzandtheraspberrypi on 2020-12-14 23:17:52 UTC
Comments
Managed to solve, I have the same problem...
Asked by Higor on 2020-01-30 08:58:10 UTC
If you can halp me
Asked by Higor on 2020-01-30 08:58:37 UTC