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

Sick_tim sick_mrs1000: Edit in launch file is not working #62

Closed danzijl closed 6 years ago

danzijl commented 6 years ago

I was trying to connect the MRS1000 with ubuntu 16.04.
I edited the launch file to my scanners ip-adres and port. (169.254.146.33) (2112) screenshot from 2018-04-25 13-52-51

I also added a network as can be seen: screenshot from 2018-04-25 13-46-04

when trying to run the launch file i get the following error:

`dvzijl@dvzijl-VirtualBox:~$ roslaunch sick_tim sick_mrs1000.launch ... logging to /home/dvzijl/.ros/log/a1a92df0-487d-11e8-a03d-080027e11e98/roslaunch-dvzijl-VirtualBox-8584.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://dvzijl-VirtualBox:34491/

SUMMARY

PARAMETERS

NODES / sick_mrs1000 (sick_tim/sick_mrs1000)

auto-starting new master process[master]: started with pid [8594] ROS_MASTER_URI=http://localhost:11311

setting /run_id to a1a92df0-487d-11e8-a03d-080027e11e98 process[rosout-1]: started with pid [8607] started core service [/rosout] process[sick_mrs1000-2]: started with pid [8617] [ INFO] [1524656505.957309267]: Waiting 5 seconds for device to connect. [ERROR] [1524656505.958788048]: Failed to connect to 192.168.0.1:2111 [FATAL] [1524656505.958812768]: Could not connect to host 192.168.0.1:2111 [FATAL] [1524656505.958830097]: Failed to init device: 1 [ERROR] [1524656505.959843522]: write error for command: sEN LMDscandata 0

SOPAS - Error stopping streaming scan data! sick_tim driver exiting. [ INFO] [1524656505.984143105]: Waiting 5 seconds for device to connect. [ERROR] [1524656505.985229911]: Failed to connect to 192.168.0.1:2111 [FATAL] [1524656505.985249588]: Could not connect to host 192.168.0.1:2111 [FATAL] [1524656505.985288035]: Failed to init device: 1 [ERROR] [1524656505.985955430]: write error for command: sEN LMDscandata 0`

While i edited the launch file i still get the error with it trying to connect to 192.168.0.1:2111?

I can access the lidar with SOPAS but i also can't ping it from ubuntu.

danzijl commented 6 years ago

I got to fix the above problem but now a new problem occurs. when running: roslaunch /usr/lib/sick_tim/launch/sick_mrs1000.launch i get the following error:

`dvzijl@dvzijl-VirtualBox:~$ roslaunch /usr/lib/sick_tim/launch/sick_mrs1000.launch ... logging to /home/dvzijl/.ros/log/2bd921d0-4958-11e8-81d4-080027e11e98/roslaunch-dvzijl-VirtualBox-9941.log Checking log directory for disk usage. This may take awhile. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://dvzijl-VirtualBox:33583/

SUMMARY

PARAMETERS

NODES / sick_mrs1000 (sick_tim/sick_mrs1000)

auto-starting new master process[master]: started with pid [9951] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 2bd921d0-4958-11e8-81d4-080027e11e98 process[rosout-1]: started with pid [9964] started core service [/rosout] process[sick_mrs1000-2]: started with pid [9971] [FATAL] [1524750368.115701764]: Could not resolve host: ... (1)(Host not found (authoritative)) [FATAL] [1524750368.115831039]: Failed to init device: 1 [ERROR] [1524750368.116895532]: sendSOPASCommand: socket not open

SOPAS - Error stopping streaming scan data! sick_tim driver exiting. [FATAL] [1524750368.164510980]: Could not resolve host: ... (1)(Host not found (authoritative)) [FATAL] [1524750368.164656278]: Failed to init device: 1 [ERROR] [1524750368.166250218]: sendSOPASCommand: socket not open `

when i ping the sensor i get the following: dvzijl@dvzijl-VirtualBox:~$ ping 192.168.235.5 PING 192.168.235.5 (192.168.235.5) 56(84) bytes of data. 64 bytes from 192.168.235.5: icmp_seq=1 ttl=64 time=0.250 ms 64 bytes from 192.168.235.5: icmp_seq=2 ttl=64 time=0.239 ms 64 bytes from 192.168.235.5: icmp_seq=3 ttl=64 time=0.252 ms 64 bytes from 192.168.235.5: icmp_seq=4 ttl=64 time=0.499 ms 64 bytes from 192.168.235.5: icmp_seq=5 ttl=64 time=0.265 ms ^C --- 192.168.235.5 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4094ms rtt min/avg/max/mdev = 0.239/0.301/0.499/0.099 ms I can also see the lidar working in sopas so i hope someone can help me with this.

jspricke commented 6 years ago

I would propose to install Ubuntu without virtualization.

mintar commented 6 years ago

Closing due to inactivity.