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
90 stars 83 forks source link

TCP connection issue #300

Closed coleschuelke closed 3 months ago

coleschuelke commented 3 months ago

Hello, I am having an issue connecting to a MRS 1104 LIDAR with the Sick Scan ROS node. When I connect the LIDAR via a usb adapter, I can successfully ping the port, but when I run the node I get an error saying that the node fails to open a TCP connection to the IP of the LIDAR (screenshots attached). On the same laptop I am able to boot into Windows and establish an unproblematic connection with the LIDAR through the SOPAS desktop application. I am running ROS1 Noetic on Ubuntu 20.04.6. I have tried connecting with both the archived version and the newest available from this GitHub. The same errors occur whether or not I launch with the provided launch file or one of my own. I am unsure where to start debugging this so any help would be appreciated. IMG_3655

rostest commented 3 months ago

Thanks for your feedback. The ip address 169.254.137.36 indicates a DHCP assigned ip address. We recommend to assign a static ip adress to the lidar.

Please use SOPAS ET to set a static ip adress to the lidar, e.g. 192.168.0.1 (the firmware default). Make sure that your PC and your lidar use the same subnet (ipconfig /all lists all available ethernet adapter and subnet masks). After that, run sick_scan_xd with parameter hostname:=<static_ip_address_of_mrs1104>.