TLDR:
git submodule update --init --recursive
(to update libfranka)make
(in root directory)make nvidia
(if you have an NVIDIA GPU and are using Docker < 19.03, see below)./start.sh
- Run a basic simulation with Panda:
roslaunch panda_moveit_config demo.launch
(this will open an RVIZ window with the Panda)
- Make sure you have docker client (and daemon) installed on your host OS (see instructions at https://docs.docker.com/get-started/)
- Check your docker daemon is running correctly. Running most basic docker client commands will verify this e.g.:
docker image ls
- If the above fails (typically on linux), you may need to restart your docker daemon:
sudo service docker stop sudo service docker start
- Make sure you have nvidia drivers and the nvidia-cuda-toolkit installed or your container will try to use the inbuilt CPU graphics instead, and won't run properly. To install the toolkit:
sudo apt-get install nvidia-cuda-toolkit
- Install nvidia-docker by following the instructions at https://github.com/NVIDIA/nvidia-docker
- Navigate to the folder you cloned this repo into.
git submodule update --init --recursive
(to update libfranka)- From within this root directory:
If you are using an earlier Docker version than 19.03 AND want to use an NVIDIA GPU, also run the following after the previous make (if you don't have an NVIDIA GPU, SKIP THIS STEP):
make
make nvidia
- TODO: Add in any known issues
- Note: Running
make
above should take approximately 20-30 minutes to generate with a decent GPU/CPU.
- You have created a docker image above, and can now run it as a container
- From within the root directory, run the below.
TODO: Instructions on how to include flags to pass in the filepath on your host machine which includes your application specific code
TODO: Add in instructions (port forwarding etc?) to allow connection to Fetch hardware
(you should be able to open a new terminal and run
./start.sh
start.sh
as many times as you want to get multiple terminal windows inside the container) - If you get an error similar to
could not select device driver “” with capabilities: [[gpu]]
, make the following changes to thestart.sh
file. Comment out all lines starting fromwhich nvidia-docker > /dev/null 2> /dev/null
uptofi
(before xhost +) but leaveDOCKER_COMMAND=docker
in. (TODO figure out why this happens)