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

Errors running ROS2 driver on RaspberryPi4 #287

Closed SICK-AliciaTee closed 6 months ago

SICK-AliciaTee commented 7 months ago

We have a customer running ROS Humble on RaspberryPi4, install our sick_scan_xd driver but when launching the driver found the following issue: [sick_generic_caller-1] [ERROR] [1709147685.388263282] [sick_scan_xd]: ## ERROR SickScanServices::sendMultiScanStartCmd() failed: can't split ip address "" into 4 tokens, check ip address [sick_generic_caller-1] [ERROR] [1709147685.388288245] [sick_scan_xd]: ## ERROR parsing ip address, check configuration of parameter "hostname" (launch file or commandline). [sick_generic_caller-1] [ERROR] [1709147685.388310819] [sick_scan_xd]: ## In case of multiscan/sick_scansegment_xd lidars, check parameter "udp_receiver_ip", too.

Any ideas what this might be?

Thank you.

rostest commented 7 months ago

Thanks for your feedback. The error message means that parameter "hostname" or (in case of multiScan or picoScan) parameter "udp_receiver_ip" have invalid values. It looks like the customer has not entered a valid ip address for these parameters.

Please use the following syntax for ROS-2: ros2 launch sick_scan_xd <launchfile>.py hostname:=<ip-address> where <ip-address> is the ip address of the scanner (192.168.0.1 by default).

For multiScan or picoScan, the additional parameter "udp_receiver_ip" is required : ros2 launch sick_scan_xd <launchfile>.py hostname:=<ip-address> udp_receiver_ip:=<raspberry-ip-address> where <raspberry-ip-address> is the ip address of the Raspberry.

Examples:

ros2 launch sick_scan_xd sick_lms_5xx.launch.py hostname:=192.168.0.1
ros2 launch sick_scan_xd sick_multiscan.launch.py hostname:=192.168.0.1 udp_receiver_ip:=192.168.0.100

See https://github.com/SICKAG/sick_scan_xd/blob/develop/USAGE.md for further examples and details.

Please post the customers command line and a complete logfile, if the problem remains.

JChunX commented 7 months ago

I faced the same issue, and I resolved it by specifying the udp_receiver_ip as the host's IPv4 address.