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

How to use ROS1 to launch 2 PicoScan? #306

Closed sjeffreydong closed 2 months ago

sjeffreydong commented 3 months ago

Dear Teams,

Our customer Ros version ROS-NOETIC 20.04. they use ROS1 driver.

They want to use 2 PicoScan running on 1 PC controller,However they can run 1 picoScan on controller, but they can't run 2 picoScan at the same time, as the picture shows:

c898092270d4c414f250462df64a0284

So how to run 2 picoScan on 1 controller at the same time?

Jonny0816 commented 3 months ago

Dear Sir, Customer is using 3.20 version and had defined the difference port for difference LiDAR in difference launch files. Customer feedback used with lower version is ok, but 3.20 version not. Please help to analysis and give a recommend about this. 6f48c1c685d07842c08e4cd0fc2f34c0

f534c087afcdacffc9cd6be76cf734ae

rostest commented 3 months ago

Thanks for your feedback. Running 2 picoScan lidars with 2 launchfiles in 2 ros nodes should work without problems. The screenshots of the launchfiles with different settings look good.

The messages in the first screenshot do not quite match the launchfiles. According to the launchfiles, the ros nodes should have the names "pico_scan_head" resp. "pico_scan_tail" instead of "sick_picoscan1" resp. "sick_picoscan2", which are displayed by ros. The error messages show that an empty ip address is used instead of the configured ones. It looks like the launchfiles are not used or their configuration is not active. Most likely, sick_scan_xd uses identical default values in both ros nodes instead of using the launchfiles resp. the configuration in the launchfiles.

The customer may simply have used other launchfiles with identical default settings. Can you post a complete logfile including the ros calls and complete launchfiles?