Skip to content

RecklessTedsFunland/docker-ros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ROS2 in Docker

docs

docker-compose

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!

docker

The basics are here on the ros wiki website.

  1. If you haven't already, get the latest ros: docker pull ros
    1. If you need an older version you identify it and pull it ... I just use the latest
    2. What are the versions of ros?
  2. Start it and get a command line inside the container: docker run -it ros
  3. 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
    
  4. Get another command line: docker exec -it thirsty_swanson bash
    1. Note, from the docker ps -l command, my container is called thirsty_swanson
  5. You will need to setup the environment: source ros_entrypoint.sh
  6. See if you can see things: rostopic list
    1. Note, if roscore isn't running then it will complain about no master
  7. Also update ros: rosdep update

Releases

No releases published

Packages

No packages published