A project about Visual Odometry, which uses ICP, PNP and BA to solve the rotation matrix R and vector T.
Operation System: Ubuntu 18.04
ROS: Melodic
git clone https://github.com/RainerKuemmerle/g2o.git
mkdir build
cd build
cmake ..
make
sudo make install
git clone https://github.com/strasdat/Sophus.git
mkdir build
cd build
cmake ..
make
sudo make install
sudo apt-get install libeigen3-dev
Get the latest version here Github.
The project used Opencv that comes with ROS.
This is a ROS packages.
mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
git clone https://github.com/heiheishuang/trytry_vo.git
cd ..
catkin_make
source devel/setup.bash # Change to `source devel/setup.zsh` if you use zsh.
roslaunch trytry_vo viewer.launch
data_set: The folder where the dataset is stored
ground_truth_path:
camera calibration and distortion parameters
estimate_pose: Estimation pose using BA PnP SVD or RANSAC
ransac_max_iterators: Set maximum number of iterations
number_optimize_frame: Using g2o to optimize frame poses. Set number of frames
Initial pose required for pose initialization
write_file: T: If you want to write odometer data in a file; F: If you don't want to write a file
file_name: The name of file to write