SICKAG / sick_ldmrs_laser

A ROS driver for the SICK LD-MRS series of laser scanners.
BSD 3-Clause "New" or "Revised" License
24 stars 19 forks source link

Different hostname doesn't work #2

Closed fehlfarbe closed 7 years ago

fehlfarbe commented 7 years ago

Hi,

I'm trying to use your ROS package with a LD-MRS400102 HD device.

My system:

I can ping my device and open it with other software but your driver can't connect to the device. I changed the hostname in the sick_ldmrs_demo.launch file to 192.168.1.202 and I get this address with rosparam get /sick_ldmrs_node/hostname but the node tries to connect to the default address 192.168.0.1. I found the error in https://github.com/SICKAG/sick_ldmrs_laser/blob/indigo/sick_ldmrs_driver/src/sick_ldmrs_node.cpp#L544 the hostname string gets only the default value. When I change the default value to my device's address it's working. So there is some problem reading the parameter from parameter server.