Skip to content

Latest commit

 

History

History

ros2_example_bazel_installed

Bazel Project with ROS 2 as a Precompiled External

This project builds C++ and Python examples against a system-installed ROS 2 Rolling binary distribution within a Bazel workspace.

For an introduction to Bazel, refer to Getting Started with Bazel.

For documentation on the underlying Bazel infrastructure, refer to bazel_ros2_rules.

Instructions

First, install the required dependencies:

sudo ./setup/install_prereqs.sh

To build all packages:

bazel build //...

To run examples binaries directly:

bazel run //ros2_example_apps:oracle_cc
bazel run //ros2_example_apps:inquirer_py

You may also run tests:

bazel test //...