niusha-tw / slam_karto_ceres

A ROS package for 2-D pose graph SLAM using open karto package for the front-end and Google's Ceres solver for the back-end

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

slam_karto_ceres

A ROS package for 2-D pose graph SLAM using open karto package for the front-end and Google's Ceres solver for the back-end. This package has been tested on Ubuntu 16.04 and 18.04. Please install Ceres solver first following the official installation tutorial.

After that, please create and initialize a ROS workspace. We assume that your workspace is named catkin_ws. Then, run the following commands to clone and build open karto package:

$ cd ~/catkin_ws/src/
$ git clone https://github.com/ros-perception/open_karto.git
$ cd ..
$ catkin_make

After the above preparation, clone and build this package:

$ cd ~/catkin_ws/src/
$ git clone https://github.com/nkuwenjian/slam_karto_ceres.git
$ cd ..
$ catkin_make

Finally, run the following commands to launch Karto SLAM:

$ source ~/catkin_ws/devel/setup.bash
$ roslaunch slam_karto_ceres slam_karto_ceres.launch

Open a new terminal and play your rosbag:

$ rosbag play <rosbagfile> --clock

Remarks

The source code of the SLAM back-end in this package refers to the pose_graph_2d in Ceres tutorials. It is recommended to read this tutorial to learn more about the use of Ceres.

About

A ROS package for 2-D pose graph SLAM using open karto package for the front-end and Google's Ceres solver for the back-end


Languages

Language:C++ 91.9%Language:C 6.1%Language:CMake 2.0%