-
Notifications
You must be signed in to change notification settings - Fork 74
dave with Docker
M1chaelM edited this page Aug 18, 2020
·
19 revisions
The dave repository includes scripts for creating a Docker container that can be used to develop and run the dave simulation software. In this setup, the required functionality is divided between the host and the Docker container as follows:
- All required software dependencies are installed in the container.
- The simulation is run from inside the container.
- Source repositories live on the host and are mounted into the container.
- Source can be edited and version control can be managed from either the container or the host.
This approach has the advantage of providing a clean, isolated, portable and consistent runtime environment for running and testing the simulation, while remaining compatible with most choices of development tools.
- Follow the official instructions to install docker (
- Verify you have version 19.03 or higher.
- Make sure to also complete the Linux post-install instructions linked at the bottom of the page.
- Install curl and git:
sudo apt install -y curl git
- Follow instructions at the link to install nvidia-container-toolkit.
On host, clone the source repositories (uuv_simulator, uuv_manipulator, DAVE, etc.) in ~/uuv_ws/src
. Add link here to setup instructions.
.
The docker container will mount the source directory: ~/uuv_ws/src
This will take a bit
cd ~/uuv_ws/src/DAVE/docker/uuvsim
./build.bash -n .
cd ~/uuv_ws/src/DAVE/docker/uuvsim
./run.bash -n uuvsim_nvidia
Add a few more terminals
cd ~/uuv_ws/src/DAVE/docker/uuvsim
./join.bash uuvsim_nvidia
cd ~/uuv_ws
catkin_make
source devel/setup.bash
E.g.,
roslaunch uuv_dave uuv_dave.launch