Dockerized Build
Using our provided Dockerfile you can run the entire repository detached from the dependencies of your local system, in a docker container.
The steps to run it from scratch are:
Install docker: https://docs.docker.com/engine/install/ubuntu/
Docker post installation steps: https://docs.docker.com/engine/install/linux-postinstall/
Summarized:
sudo groupadd dockersudo usermod -aG docker $USERnewgrp dockerdocker run hello-world
For computers with NVIDIA graphic cards, there are some additional steps:
- Install nvidia-docker2, following this: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#setting-up-nvidia-container-toolkit
- Uncomment the
NVIDIA_DOCKER_REQUIREMENT='nvidia-docker2'part in thelaunch_container.shfile
Pull ros image to docker:
docker pull rosClone agilicious repository to your host machine, and cd to the agilicious root folder.
There, you will see a
Dockerfile. From there, build the docker image using the Dockerfile:sudo docker build --tag "ros_agilicious:latest" .Run this command from dockerfile directoryRun the docker with GUI capabilities and with access to our host repository,
such that changes in our local repository will have instant effect inside the docker container:
./scripts/launch_container <your_catkin_workspace>Now you have a terminal inside the container with all the dependencies needed to run the code.
Go to
/home/agilicious/catkin_wsand runcatkin build.