SICKAG / sick_scan_xd

Based on the sick_scan drivers for ROS1, sick_scan_xd merges sick_scan, sick_scan2 and sick_scan_base repositories. The driver supports both Linux (native, ROS1, ROS2) and Windows (native and ROS2).
Apache License 2.0
101 stars 84 forks source link

IP address problems #286

Closed GioOz29 closed 6 months ago

GioOz29 commented 7 months ago

this is the output of my ifconfig: enxf4a80d0cf097: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether f4:a8:0d:0c:f0:97 brd ff:ff:ff:ff:ff:ff inet 192.168.0.12/24 brd 192.168.0.255 scope global enxf4a80d0cf097 valid_lft forever preferred_lft forever inet6 fe80::f6a8:dff:fe0c:f097/64 scope link valid_lft forever preferred_lft forever However, I don't understand how to connect to the TIM240. I checked the troubleshooting but without any success. I don't know the IP of the sensor, but doesn't work. following the command that i used and the output: ros2 run sick_scan_xd sick_generic_caller src/sick_scan_xd/tools/sick_generic_device_finder/sick_generic_device_finder.py [INFO] [1709124298.809818700] [sick_scan_xd]: ROS2 signal handler are installed [INFO] [1709124298.809963992] [sick_scan_xd]: ROS2 signal handler uninstalled [INFO] [1709124298.815006844] [sick_scan_xd]: sick_generic_caller V. 3.2.0 [INFO] [1709124298.815025677] [sick_scan_xd]: Program argument 1: /home/giovanni/sick_scan_ws/install/sick_scan_xd/lib/sick_scan_xd/sick_generic_caller [INFO] [1709124298.815031386] [sick_scan_xd]: Program argument 2: src/sick_scan_xd/tools/sick_generic_device_finder/sick_generic_device_finder.py [INFO] [1709124298.815066302] [sick_scan_xd]: Program argument 3: hostname:=192.168.0.255

[ERROR] [1709124298.815140094] [sick_scan_xd]: ## ERROR parseLaunchfileSetParameter(): Tag-Value setting not valid. Use pattern: := (e.g. hostname:=192.168.0.4) (Check the entry: src/sick_scan_xd/tools/sick_generic_device_finder/sick_generic_device_finder.py)

[ERROR] [1709124298.815159428] [sick_scan_xd]: ## ERROR sick_generic_laser: parseLaunchfileSetParameter() failed, aborting

[ros2run]: Process exited with failure 255

I didn't change anything in the launch files. any suggestion?

rostest commented 7 months ago

Thanks for your feedback. If you do not know the ip address of your scanner, try the default ip address 192.168.0.1: ping 192.168.0.1 ros2 launch sick_scan_xd sick_tim_240.launch.py hostname:=192.168.0.1 or ros2 run sick_scan_xd sick_generic_caller ./src/sick_scan_xd/launch/sick_tim_240.launch hostname:=192.168.0.1

If 192.168.0.1 is not the ip address of your TiM240, try to reset the device to the factory defaults and retry. If it still fails, use the SOPAS Engineering Tool (SOPAS ET) for scanner configuration, diagnostic and setup.