$ docker build -t lab42 .
$ docker run -it --name pepper --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" --device=/dev/input/ -v ${PWD}/source:/root/source lab42
Expose DISPLAY variable for GUI apps and attach a terminal to the container where behaviour scripts can be executed.
$ xhost +local:root
$ docker start pepper
$ docker attach pepper
# double ENTER
~/source#
While connected to the same network as Pepper scripts lcoated in the ./source folder can be executed in the docker terminal.
~/source# python behaviour.py --ip x.x.x.x
- ShoulderPitch
- ShoulderRoll
- ElbowYaw
- ElbowRoll
- WristYaw
- Hand