/ros2-template-workspace

Template workspace with scripts and dockerfiles for a containerized ROS 2 core development workflow

Primary LanguageDockerfile

ROS 2 Template Workspace

Want to start developing a new ROS 2 feature or application? Clone this and get going.

Prerequisites

  1. Install Docker
  2. Install python workflow prerequisites
pip3 install vcstool rocker off-your-rocker

Usage

  • Edit ws.repos to contain repositories relevant to development.

  • Build your dev environment and start it:

mkdir src
vcs import src < ws.repos
DEVIMG=my-img ./tools/rebuild-img --build-arg ROS_DISTRO=rolling --build-arg UBUNTU_DISTRO=jammy
DEVIMG=my-img ./tools/startimg

In the container (basic ROS dev workflow):

source /opt/ros/$ROS_DISTRO/setup.bash
colcon build

To start a new shell in the running container,

DEVIMG=my-img ./tools/attach