A full c++ based ros2 package to merge several laserscan / lidars topics by creating a new virtual laserscan topic. Each source laserscan could be configure via the parameter to determine the heading of each source laserscan and the relative position of each source laserscan to the virtual laserscan.
- ROS2 (Tested on Humble)
- Your laserscans driver (Tested using RPLIDAR S1 and RPLIDAR S1)
- RVIZ2
- RQT
- Pointcloud to Laserscan
- Clone the repo to your ros2 workspace
git clone https://github.com/mich1342/ros2_laser_scan_merger.git
-
Edit the topic name in the launch file if needed
-
Build and Source
colcon build && source install/setup.bash
- Launch the package
- To launch without visualizer
ros2 launch ros2_laser_scan_merger merge_2_scan.launch.py
- To launch with visualizer (RVIZ2)
ros2 launch ros2_laser_scan_merger visualize_merge_2_scan.launch.py
Both of the launch file already integrated with the pointclound_to_laserscan package
- Open RQT to set the parameter
rqt