1. Check the python version
Since my ubuntu18.04
Ros is installed, so there are two python versions in our system at this time, you can view the versions separately:
python -V
python3 -V
I have 2.7.17 that comes with ros and 3.6.9 that comes with ubuntu, so when you install it later, just pay attention to it, and you don’t need to switch the python version
2. Install evo (it is recommended to use mobile phone hotspot for faster)
Install evo from source:
2.1 Installation dependencies
sudo apt-get install tcl-dev tk-dev python3-tk
2.2 Install evo from source code
git clone https://github.com/MichaelGrupp/evo.git
cd evo
git checkout v1.12.0 //切换分支
sudo pip install --editable . --upgrade --no-binary evo
Update numpy and matplotlib versions in case of problems
pip install numpy --upgrade --user
pip install matplotlib --upgrade --user
If you can’t update it, you can add Tsinghua source:
pip install numpy --upgrade --user -i https://pypi.tuna.tsinghua.edu.cn/simple
pip install matplotlib --upgrade --user -i https://pypi.tuna.tsinghua.edu.cn/simple
3. Verify that the installation is successful
After the installation is complete, you can verify whether the installation is successful in the following two ways
cd test/data/
evo_traj kitti KITTI_00_ORB.txt KITTI_00_SPTAM.txt --ref=KITTI_00_gt.txt -p --plot_mode=xyz
The following results can be obtained:
Or enter evo and press the tab key to see if it can be completed: