Setting up the Environment (Natively or Docker or VM) - Kapernikov/tech-session-visual-odometry GitHub Wiki
Setting up the environment natively in an Ubuntu 18.04 machine
- Install ROS Melodic Morenia (desktop full): wiki.ros.org/melodic/Installation/Ubuntu
- Install catkin tools:
$ sudo apt install python3-catkin-tools
- Create a catkin workspace:
$ mkdir -p ~/catkin_ws/src && cd ~/catkin_ws && catkin init
- Clone the tech-session repository:
$ git clone https://gitlab.com/Kapernikov/Intern/tech-session-visual-odometry.git ~/catkin_ws/src/tech-session-visual-odometry.git
- Install the ros dependencies of the tech-session repository:
$ cd ~/catkin_ws && rosdep install -yr --from-paths src --ignore-src --rosdistro melodic
- Build the workspace:
$ catkin build
- (Optional) Build OpenCV (more feature types), RTAB-Map(-ROS), additional VO libraries (eg. ORB2-SLAM, Viso2), and graph optimization libraries (g2o, GTSAM) from source: Follow instructions in the README file of the repo you downloaded
Setting up a Docker environment
- Install Docker for Linux
- And do the post-installation steps
- Clone or download the tech-session repository anywhere you want
$ git clone https://gitlab.com/Kapernikov/Intern/tech-session-visual-odometry.git
- Open a terminal (linux) or powershell (windows) and go into the repository you just cloned and execute
$ ./docker_build.sh
- Create a docker container from the built image
$ ./docker_run.sh
- Connect to the container in any terminal you open by executing
$ ./docker_connect.sh
Setting up a Virtual Machine (VM) environment (Suggested for Beginners)
- Download and Install Virtual-Box 5.2 NOT 6.0 for your operating system from the official website.
- You can download the virtual machine from google drive
- Open Virtual-Box 5.2 and go to File>Import Appliance, browse to find the OVA image and and click next. In the next screen you can change some settings such as allocated CPU cores or RAM. Allocate at least half of your system’s resources. For example, for a system with 4 CPU cores and 8GB RAM, allocate at least 2 cores and 4GB RAM. Click next and the virtual machine will be imported.
- Then select it in the Virtual-Box manager and start it Log in to user: kapernikov with password: kapernikov
