Install SLAM algorithm evaluation software evo on ubuntu18.04

1. Source code installation

1. evo installation can be installed by command or source code. This article uses source code installation.

(1) evo has requirements for python version, v 1.12.0 version is the last version that supports python2.

(2) This article installs the v 1.12.0 version.

(3) The command installation is the following command, the latest version of evo is installed by default, pay attention to the python version! ! ! ! !

pip install evo --upgrade --no-binary evo

(4) Source code installation is the method described in this article.

2. First check the python version, enter the command, and see that the current python version is 3.6.9

python --version

(4) To switch the python version, enter the following command to switch to version 2.7.17

sudo update-alternatives --config python

 Note: an error occurred

 Solution:

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150

(5) Open the github of evo , and switch to v 1.12.0 version download

(4) Enter the downloaded evo folder and enter the following command

pip install --editable . --upgrade --no-binary evo

       When Successfully installed evo appears, the installation is successful.

2. Test

(1) Enter the following commands

cd test/data
evo_traj kitti KITTI_00_ORB.txt KITTI_00_SPTAM.txt --ref=KITTI_00_gt.txt -p --plot_mode=xz

Note: If the following errors occur, restart the computer

evo_traj:command not found

 

Guess you like

Origin blog.csdn.net/qq_43644413/article/details/124926576