https://github.com/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.
https://github.com/hijimasa/laser_scan_integrator
cpp laserscan lidar merge-laserscans ros2
Last synced: about 2 hours ago
JSON representation
This package integrates two laser scans with relative position recognition using TF and taking into account the footprint of the robot.
- Host: GitHub
- URL: https://github.com/hijimasa/laser_scan_integrator
- Owner: hijimasa
- License: mit
- Created: 2022-10-01T05:41:44.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-03T12:39:59.000Z (over 2 years ago)
- Last Synced: 2024-04-17T02:01:57.906Z (about 2 years ago)
- Topics: cpp, laserscan, lidar, merge-laserscans, ros2
- Language: C++
- Homepage:
- Size: 88.9 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laser_scan_integrator

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:
- This can merge laserscan to LaserScan topic directly.
- This can recognize relative position of sensor by using TF.
- This can set robot footprint to ignore robot frame.
- This can set offset relative position with parameters.
## 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
```bash
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
```bash
colcon build && source install/setup.bash
```
4. Launch the package
- To launch without visualizer
```bash
ros2 launch laser_scan_integrator integrate_2_scan.launch.py
```
- To launch with visualizer (RVIZ2)
```bash
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
5. Open RQT to set the parameter
```bash
rqt
```
## TODO
- I would like to calculate the offset of relative position by using scan matching.