This repository contains a Dockerfile for building ROS and Fetch packages on top of pure Ubuntu 14.04 docker image (with openbox window manager), which runs in a headless mode, and is viewed through the vnc.
To build manually, pull the repo:
git pull https://github.com/mksmsrkn/fetchit_docker.git
cd fetchit_docker
docker build -t fetchit_docker .
Building was tested on Ubuntu 18.04 Docker hosts.
To run the container enter:
docker run -d --name fetchit -p 5900:5900 fetchit_docker
You can use any VNC viewer of your choice to connect to the image.
VNC address: localhost
OR 0.0.0.0
OR 127.0.0.1
(other of these would work)
VNC port: 5900
(if you prefer to use another port replace the first -p value when running docker run -p $PORT:5900
)
After connecting you will see a black screen, you can make a right click to see the dropdown window managep menu, where you can open Terminal emulator (which is a Terminator by default).
- Build the image with "docker build -t fetchit_docker_gqcnn ."
- Download the pretrained network (from URL) to
model/
- Run the container with
docker run -d -p 5900:5900 -v $(pwd)/model:/root/catkin_ws/src/gqcnn/models fetchit_docker_gqcnn
- Connect with VNC on localhost:5900 (might have to wait a few minutes)
- Run
./setup.sh
to fix the yaml config file - Within the container you got to source the catkin_ws (
cd catkin_ws/ && source devel/setup.bash
) - Run demo from
catkin_ws/src/gqcnn
withpython examples/policy.py --config_filename cfg/examples/policy.yaml
- Make sure you clone
https://github.com/mksmsrkn/fetchit_world.git
into a parent directory. - Follow the https://github.com/mksmsrkn/fetchit_world/blob/master/README.md
You can follow the steps from the Gazebo website now to run the simulator - http://docs.fetchrobotics.com/gazebo.html#starting-the-simulator.