Start the Dofbot container

The ROS environment of Raspberry Pi 5 and the Dofbot hardware control case are both located in Docker. Every time we run the case, we need to start the corresponding container of Dofbot.

Preliminary preparation

Note: The startup program must be closed to run a single case!

For the tutorial on closing the large startup program, please refer to the tutorial [Preparation before development: Closing the large startup program].

For first-time users, I recommend temporarily closing the startup program. For simple developers, you can try closing the startup program permanently.

Start Docker

We provide the script file Docker_Ros.sh for running the docker image corresponding to Dofbot in the home directory on the Raspberry Pi 5 motherboard.

Start command

image-20240401190203964

Precautions

If the hardware device is not connected correctly, starting docker may fail!

Example: USB camera

If the camera is not connected or the one identified is not /dev/video0, Docker may not be able to enter correctly or the camera case will report an error.

If you need to cancel the hardware mapping of the USB camera, we can delete the corresponding --device=/dev/video0\ information in the startup script.