Simple-2D-LiDAR-Odometry
is a straightforward implementation of 2D LiDAR-based odometry using the Generalized Iterative Closest Point (GICP) algorithm. It has been tested and verified on ROS 2 Humble. The primary libraries utilized for this project are Eigen and Point Cloud Library (PCL).
- ROS 2 Humble
- Eigen
- Point Cloud Library (PCL)
-
First, ensure you have a working ROS 2 Humble installation. If not, follow the official installation guide.
-
Install the required dependencies:
sudo apt-get install libeigen3-dev libpcl-dev
- Clone the repository into your ROS 2 workspace:
cd ~/ros2_ws/src/
git clone https://github.com/dawan0111/Simple-2D-LiDAR-Odometry.git
- Build the package:
cd ~/ros2_ws/
colcon build --packages-select simple_2d_lidar_odometry
After building the package, you can run the LiDAR odometry node with:
ros2 run simple_2d_lidar_odometry lidar_odometry_node
Ensure your LiDAR sensor is correctly set up and publishing data to the appropriate topic.
The core of this odometry solution is the GICP algorithm, which aligns consecutive LiDAR scans to estimate the robot's motion. By using both Eigen and PCL, the implementation efficiently handles point cloud data and performs matrix operations to compute the odometry.