A ROS package for visual odometry based on OpenCV function:
- ROS node subscribe image messages for real time working
- ORB feature detection
This software is built on the Robotic Operating System (ROS), which needs to be installed first.
- OpenCV >= 3.3
Clone the repository and catkin_make:
cd catkin_ws/src
git clone https://github.com/linjohnss/opencv_vo.git
cd ../
catkin_make
source devel/setup.bash
Change camera metrix for yor camera
Mat cameraMatrix = (Mat1d(3, 3) << 718.856, 0.0, 607.1928,
0.0, 718.856, 185.2157,
0.0, 0.0, 1.0);
rosrun opencv_vo mono_vo
You can use kitti_publisher
to publish KITTI Odometry dataset to ROS image msgs
rosrun opencv_vo kitti_publisher