Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use PicoScan ROS1 to run 2 PicoScan for negivation? #326

Open
sjeffreydong opened this issue May 9, 2024 · 6 comments
Open

How to use PicoScan ROS1 to run 2 PicoScan for negivation? #326

sjeffreydong opened this issue May 9, 2024 · 6 comments

Comments

@sjeffreydong
Copy link

Dear Teams,
Would you please share with us the workflow how to use 2 PicoScan for negivation ?
Customer used our 2 PicoScan can't work well, they can't start together.

266b894cce5fde5fec099c9cac76ba9d

@rostest
Copy link
Collaborator

rostest commented May 10, 2024

Thanks for your feedback. To use 2 picoScan lidars under ROS-1, start sick_scan_xd twice with different ip addresses and topics in two ros nodes. See the FAQ for an example configuration.

sick_scan_xd publishes PointCloud2 and LaserScan messages, SLAM and navigation using two lidars is a bit beyond the scope of the driver. See slam.md and #206 for more information or use run_linux_ros1_simu_slam_mrs1xxx.bash resp. test_200_slam_ros1_hector.launch as an example.

@sjeffreydong
Copy link
Author

Dear Teams,

Our customer is running 2 picoScan150 on one controller, however will happen issues with one can't start and no data.
bff850e8b528906f33706293b1a10ee8

@rostest
Copy link
Collaborator

rostest commented May 29, 2024

Thanks for your feedback. The photo does not support a clear diagnosis of the problem. Please send the launchfiles used for both picoScan150 devices, the commandline calls and parameters to launch sick_scan_xd and complete logfiles for further diagnosis.

@sjeffreydong
Copy link
Author

Dear Teams,

Please have a look. Could you check what is the issues ? why 2 picScan can’t run well on the one controller when start 2 pcioScan together ?
picoScan150.zip
mail

@sjeffreydong
Copy link
Author

sjeffreydong commented May 29, 2024 via email

@rostest
Copy link
Collaborator

rostest commented May 29, 2024

Thanks for further information and launchfiles. To run two picoScan devices simultanously, sick_scan_xd must be started in two different nodes. Each node must be configured with different lidar ip addresses and udp ports, different node names, different ros topics and frame ids for each point cloud. Therefore the following launchfile parameter should be overwritten by individual settings for each lidar:

  • "hostname": e.g. "192.168.0.190" and "192.168.0.98"
  • "nodename": e.g. sick_picoscan0" and "sick_picoscan1"
  • "publish_frame_id": e.g. "world0" and "world1"
  • "publish_laserscan_segment_topic": e.g. "scan0_segment" and "scan1_segment"
  • "publish_laserscan_fullframe_topic": e.g. "scan0_fullframe" and "scan1_fullframe"
  • "imu_topic": e.g. "imu0" and "imu1"
  • "udp_port": e.g. "56661" and "56662"
  • "imu_udp_port": e.g. "7503" and "7504"
  • individual topics and frame id for each customized point cloud, e.g.
    • replace all "topic=/cloud_" by "topic=/cloud0_" resp. "topic=/cloud1_"
    • replace all "frameid=world" by "frameid=world0" resp. "frameid=world1"

Two modified launchfiles are attached. We recommend to first verify the launchfile configuration separately for each picoScan, then run both devices simultanously.
picoscan_launchfiles.zip

Parameter udp_receiver_ip must be the ip address of your PC running sick_scan_xd. We recommend to use the same subnet as the lidar, i.e. to change the customers current ip address 224.0.0.1 to an ip address within the subnet 192.168.x.y.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants