hijimasa / laser_scan_integrator

This package integrates two laser scans with relative position recognition using TF and taking into account the footprint of the robot.
MIT License
5 stars 4 forks source link
cpp laserscan lidar merge-laserscans ros2

laser_scan_integrator

laser scan integrator result 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 TF to determine the heading of each source laserscan and the relative position of each source laserscan to the virtual laserscan.

This package is created with reference to https://github.com/mich1342/ros2_laser_scan_merger.

The features of this package are below:

Prerequisite

  1. ROS2 (Tested on Galactic)
  2. Your laserscans driver (Tested using RPLIDAR S1 and RPLIDAR S1)
  3. RVIZ2
  4. RQT

How to use

  1. Clone the repo to your ros2 workspace

    git clone https://github.com/hijimasa/laser_scan_integrator.git
  2. Edit the topic name in the launch file if needed

  3. Build and Source

    colcon build && source install/setup.bash
  4. Launch the package

    • To launch without visualizer
      ros2 launch laser_scan_integrator integrate_2_scan.launch.py
    • To launch with visualizer (RVIZ2)
      ros2 launch laser_scan_integrator visualize_integrated_2_scan.launch.py

*Make sure that your laserscans topics already published before launch anything from this package

  1. Open RQT to set the parameter
    rqt

TODO