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

Connecting a Sick laserscanner via ethernet

asked 2015-04-16 02:54:37 -0500

Sander gravatar image


We're working on our robot running Ubuntu 14.04 and ROS indigo. Right now we are trying to connect a Sick LMS 111 laserscanner via ethernet. We installed the drivers and can start the node to do this. Afterwards we tried to connect to the laserscanner using many ip's (found by ifconfig for example) but any of them gave back this error:

[ INFO] [1429170035.841400945]: Connecting to laser at :
[ERROR] [1429170163.097305396]: Connection to LMS1xx device failed, retrying in 1 second.

To find the port we downloaded the Sopas Engineering Toolbox from Sick. This gave us ip and tcp 2111. To set the port we adjusted the launch file:

  <arg name="host" default="" />
  <node pkg="lms1xx" name="lms1xx" type="LMS1xx_node" output="screen">
    <param name="host" value="$(arg host)" />

Does anyone have an idea on how to get data from the laserscanner?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-05-16 10:25:11 -0500

danimtb gravatar image

Hi! It is not necessary to indicate port in laser's ip address, just write <arg name="host" default="" />. Default port connection is set to 2111, which is the usual port SOPAS gives to sick lms 1xx laser scanners.

If this does not solve the problem, try adjusting your manual ethernet connection to suit a similar address to the laser's one.

edit flag offensive delete link more



You're correct. The problem was that we manually added a connection in Ubuntu with as ip address. The trick was that the ip address has to be different from the ip address from the laserscanner. Thus when we added as ip address on that ethernet port it worked.

Sander gravatar image Sander  ( 2015-05-17 04:27:06 -0500 )edit

Great to see it worked! I am using Sick LMS100 with LMS1xx node too and I'm able to connect to the laserscanner but after a few minutes the node stops sending data.

Could you tell the ethernet configuration you are using (IP, MASK, GATEWAY)? I suppose your ethernet connection is set to manual. Thx

danimtb gravatar image danimtb  ( 2015-05-17 12:30:26 -0500 )edit

On edit connections, click add, go to ethernet tab, set device MAC address to the right ethernet port, got to IPv4 Settings tab, set method to Manual and enter these settings: Address: Netmask: Leave Gateway open and click save.

Sander gravatar image Sander  ( 2015-05-18 01:32:12 -0500 )edit

Thanks for your comment, now it is working except when I connect my computer to a router via wifi at the same time.

If I disconnect wifi it works great but with wifi connection I have same problem: node connects to lms100 well but after a while it stops sending data...

Did you have this problem?

danimtb gravatar image danimtb  ( 2015-05-19 07:36:08 -0500 )edit

answered 2017-04-04 09:11:01 -0500

vik748 gravatar image

After trying a number of driver and packages for our SICK LMS511 the best one I found to work with my ROS Indigo was from

All I had to do was initialize a workspace, copy the folder laser_node into the src folder and then catkin_make. Hope this helps someone else.

Cheers, Vik

edit flag offensive delete link more

Question Tools



Asked: 2015-04-16 02:54:37 -0500

Seen: 10,996 times

Last updated: May 16 '15