docker-compose build
docker-compose up -d
ssh -p 2222 [email protected]
. /opt/ros/rolling/setup.bash
This image uses a super secret username kevin
and password kevin
... don't tell anyone!
The basics are here on the ros wiki website.
- If you haven't already, get the latest ros:
docker pull ros
- If you need an older version you identify it and pull it ... I just use the latest
- What are the versions of ros?
- Start it and get a command line inside the container:
docker run -it ros
- See the container started:
$ docker ps -l CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 403b06247a82 ros "/ros_entrypoint.sh …" 8 minutes ago Up 8 minutes thirsty_swanson
- Get another command line:
docker exec -it thirsty_swanson bash
- Note, from the
docker ps -l
command, my container is calledthirsty_swanson
- Note, from the
- You will need to setup the environment:
source ros_entrypoint.sh
- See if you can see things:
rostopic list
- Note, if
roscore
isn't running then it will complain about no master
- Note, if
- Also update ros:
rosdep update