Skip to content

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

Notifications You must be signed in to change notification settings

emersonknapp/ros2-template-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a78d15b · Mar 7, 2025

History

38 Commits
Feb 11, 2025
Feb 21, 2025
Feb 11, 2025
Feb 20, 2025
Aug 3, 2021
Mar 7, 2025
Feb 11, 2025
Feb 19, 2025
Feb 21, 2025
Mar 7, 2025
Jun 12, 2024
Jun 9, 2021

Repository files navigation

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

Repos Files

For convenience working on ROS 2 core on live distributions, various .repos files are provided here in repos/. They are not meant to be combined - each is a standalone copy from https://github.com/ros2/ros2 ros2.repos at the relevant branch. I wouldn't trust these too much to be all the way up to date - again, they are merely a convenience for core development.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published