uos / sick_tim

A ROS driver for the SICK TiM series of laser scanners.
http://wiki.ros.org/sick_tim
47 stars 90 forks source link

Less fields than expected for 811 data points (1660). Ignoring scan #72

Closed chennuo0125-HIT closed 6 years ago

chennuo0125-HIT commented 6 years ago

thanks you for your package. i have a sick tim571,but when i " roslaunch sick_tim sick_tim571_2050101.launch" , i got follow problem :

[ INFO] [1541644593.482460014]: Waiting 5 seconds for device to connect. [ INFO] [1541644593.482886536]: Succesfully connected to 169.254.66.113:2112 [ WARN] [1541644593.551938275]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.618800364]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.685426119]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.752336910]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.818296715]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.885475636]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.951638890]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644594.018524931]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644594.084968651]: Less fields than expected for 811 data points (1660). Ignoring scan

as you can see ,internet connected successfully, so hardware is ok. could you tell me how can i process it? thanks ! my computer system is ubuntu16.04, ros kinetic.

mintar commented 6 years ago

Hmm, strange. Could you please edit the launch file and set the parameter publish_datagram to true (you also have to move that line so it's not commented out):

https://github.com/uos/sick_tim/blob/40784b54f20c5a6d0bdff10246d0b8addc69cc97/launch/sick_tim571_2050101.launch#L15

Then record a short rosbag of the "datagram" topic and attach it here.

rosbag record --lz4 -l 300 /datagram
chennuo0125-HIT commented 6 years ago

thank your reply , i have record datagram and put it in the link below: https://github.com/chennuo0125/sick_tim/tree/melodic/data

mintar commented 6 years ago

Your scanner has the device string set to the empty string. By default, it is set to the string "not defined". There was a bug in the parser that caused this issue. I have just pushed a commit that fixes the problem. To use it, you'll have to pull the latest code and build from source.

Thanks for your bug report!

chennuo0125-HIT commented 6 years ago

@mintar what can i do to process it ? i still encounter the problem. my datagram have been put in the link below : https://github.com/chennuo0125/sick_tim/tree/melodic/data

[ INFO] [1541644593.482460014]: Waiting 5 seconds for device to connect. [ INFO] [1541644593.482886536]: Succesfully connected to 169.254.66.113:2112 [ WARN] [1541644593.551938275]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.618800364]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.685426119]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.752336910]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.818296715]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.885475636]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644593.951638890]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644594.018524931]: Less fields than expected for 811 data points (1660). Ignoring scan [ WARN] [1541644594.084968651]: Less fields than expected for 811 data points (1660). Ignoring scan

mintar commented 6 years ago

You should pull the latest code and compile it from source. Your log output shows that you are still running the old code.

chennuo0125-HIT commented 6 years ago

thank you , the problem has been solved !