ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

LMS1xx driver connecting to scanner but not actually scanning?

asked 2014-07-03 13:46:50 -0600

mysteriousmonkey29 gravatar image

updated 2015-08-18 01:33:06 -0600

ahendrix gravatar image

Hello, I am using a SICK LMS151 laser scanner that I am trying to set up with ROS. I downloaded this driver:

https://github.com/clearpathrobotics/...

initially just with sudo apt-get, but that didn't download all the correct files, so I ended up creating my own LMS1xx directory, and copying all the text from the package.xml, CMakeLists, nodes, launch files, etc. directly into the files on my computer. THen I compiled it with catkin_make (no errors), and ran it with my laser scanner plugged in (with the correct ip address). Everything seemed to be going correctly; it said it connected to the laser at the correct ip address, but then it proceeded to not do anything else. I thought this driver was supposed to run laser scans and print the data, so I checked the LMS1xx_node file, and I saw that indeed, after printing that ROS has connected to the laser, the node is supposed to do other things ti (that look to me like performing scans, but I' not sure).

In between the command to print "connected to laser" and the scan loop however, I see the following code:

do //wait for ready status { stat = laser.queryStatus(); ros::Duration(1.0).sleep(); }

while (stat != read_for_measurement);

So apparently for some reason the laser is not returning a ready status to the node, and thus the scans are not beginning. Anyone know why this could be? I am running ROS hydro on ubuntu 12.04 on virtualbox on windows 7 (maybe this is the problem, if the virtual machine is somehow messing up the laser/computer communication).

Thanks,

Randy

edit retag flag offensive close merge delete

Comments

Hey, sorry for taking so long to get back to you, I was switching to a dual boot and then solving the new problems that came along. However, I am now successfully running ubuntu 12.04 directly and tried your suggestion. Turns out you were right; although the node isn't announcing that it's publishing anything, it is. Scan was listed on rostopic list, and subscribing to it produced a real looking data stream (not all 0's). Thanks a lot! Now I'm gonna see if I can get this data to display in rviz

mysteriousmonkey29 gravatar image mysteriousmonkey29  ( 2014-07-14 12:41:11 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-04 03:03:14 -0600

Once you run the node, what is the output of "rostopic list" ? By default the readings of the laser should appear no the topic /scan.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2014-07-03 13:46:50 -0600

Seen: 526 times

Last updated: Jul 03 '14