Skip to main content

Setup a ROS 2.0 development environment in Docker

Project description

ros2dev

This project builds a ROS 2.0 development environment in Docker. The user can then step into the ROS 2.0 environment to perform additional ROS 2.0 actions (build, rostopic list, etc.).

Basic Setup

Generate the Dockerfiles to build the base ROS 2.0 environment:

$ ros2dev generate

The generated files are placed in the ./generated directory by default. Along with the generated Dockerfile and docker-compose.yml files is a config.json file, which contains cached variables from the generate step.

Build the Docker image for the base ROS 2.0 environment:

$ ros2dev build

Step into the base ROS 2.0 environment:

$ ros2dev env

Run a single command in the ROS 2.0 environment:

$ ros2dev run -c "ros2 topic list"

Install Additional Dependencies

Since jinja2 is used to generate the Dockerfiles, a developer can extend the base Dockerfile by overriding the “third_party” block. An example is provided in this package at: ./src/ros2dev/templates/third_party.example. To generate a Dockerfile with an override, use the following command:

$ ros2dev generate -o ./src/ros2dev/templates/third_party.example

Then build the docker image:

$ ros2dev build

Build a ROS 2.0 Workspace

To build a ROS 2.0 development environment for a ROS workspace, navigate to the workspace root directory and run the following command:

$ ros2dev generate -w ./src -o ./third_party.dockerfile

By convention, there should be a src directory in the root of a ROS workspace, so we pass the path to the src directory to the -w (--ws_copy_dir) option. In this example, we are also using the override option (-o) to install additional dependencies before building the ROS workspace.

Now you can build the docker image for the ROS environment and step into the ROS environment:

$ ros2dev build
$ ros2dev env

News

0.2a1

Release date: UNRELEASED

  • Example news entry for the in-development version

0.1

Release date: 15-Mar-2010

  • Example news entry for a released version

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ros2dev-0.1.6.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ros2dev-0.1.6-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file ros2dev-0.1.6.tar.gz.

File metadata

  • Download URL: ros2dev-0.1.6.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2

File hashes

Hashes for ros2dev-0.1.6.tar.gz
Algorithm Hash digest
SHA256 08bb309112f40151c554bf3d8975841eedb4a3e5971ca89de516f18e9df704f8
MD5 281670cee728d382fbd9f518f8a77994
BLAKE2b-256 399394b5dbb314f130119c60131cf98dd866e85e7ffeac84501777be7bb57475

See more details on using hashes here.

File details

Details for the file ros2dev-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: ros2dev-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.5.2

File hashes

Hashes for ros2dev-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a94bc146ce20b842e7e9b53e060dd000e3a5a18f3e7efd04fe78d642d53d8b1f
MD5 83a41b4c4caaf13ba756b4498e9b1c4a
BLAKE2b-256 0f0c7e2bd39f907e9332695a1f0c3f32cbb487111d7a063f032ec9788082ef5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page