README.md
of this repository, these instructions will let you initialize and shutdown the docker swarm every time the demonstration is executed - helper scripts are provided. This is important to restore the status of the machines involved in the demonstration such that docker can run locally in non-swarm mode - as required normally.
- Go and pick YCB
006_mustard_bottle
and004_sugar_box
- Turn on the wall-mounted display
- Turn on the robot power supply, CPU and motors
- Turn on the Sennheiser microphone receiver
- Turn on the Sennheiser wireless micrphone unit
- Connect HDMI cable of the external display
- Connect USB cable of the RealSense D405 camera
- Connect USB cable of the M-Audio USB sound card
- Turn on the laptop
- Connect external GPU and switch it on
- Make sure the laptop is connected to the robot network using the proper cable
- Turn on the laptop
- Check that both the GPU are up and running by launching
nvidia-smi
- Make sure docker is running, if not please
systemctl start docker.service
- Open
yarpmanager
oniiticublap235
Cluster
section:- Run
yarpserver
oniiticublap235
- Run
yarprun
oniiticublap235
andicub-head
- Run
Entities
section:- Open
iCubStartup (iCubGenova11)
and run, in order, (0), (1) and, after the robot has started succesfully, (2), (3) and (4) - Open
Realsense (ROFT)
and run all, connect all
- Open
- Open
VirtualBox
oniiticublap235
- Run the only available appliance
- Once inside, run the
bat
script on the Desktop
cd $ROBOT_CODE/icub-contrib-iit/roft-samples/dockercompose
./set_swarm_up.sh
docker stack deploy -c docker-compose.yml stack
A yarpmanager
will open. There, select ROFT_Handover_with_iCub (embedded)
and run all, connect all. Please check that everything is green.
yarp rpc /roft-samples-handover/rpc:i
> select_object <id>
where <id>
is o006
or o004
.
Unmute the microphone and say Let's play with mustard
or Let's play with sugar
for the two objects respectively.
Stop all in the yarpmanager
and wait for everything to be red. Then:
cd $ROBOT_CODE/icub-contrib-iit/roft-samples/dockercompose
docker stack rm stack
./set_swarm_down.sh
- Stop all applications in
Realsense (ROFT)
andiCubStartup (iCubGenova11)
in reversed order - Stop the speech deployer running on VirtualBox and save the machine state
- Power off the head of the robot
ssh icub-head; sudo poweroff
- Power off the robot
- Turn off the two laptops, the microphone, the Sennheiser receiver, the external GPU and the external display
- Reconnect back
iiticublap232
to the external network - Please, disconnect all the cables and leave the desk tidy and clean as it was before!
- Please, move back the YCB objects in their usual place!