Giter Club home page Giter Club logo

rules_ros2's Introduction

CI

Bazel rules for ROS2

This repo aims to build ROS2 from scratch with Bazel.

Prerequisites

You will need to install Bazel, see here. Besides Bazel, you will need a C++ compiler and a Python 3 interpreter.

And no, you don't have to install any ROS2 packages via apt.

The code is developed and tested on Ubuntu 20.04 with Python 3.8.

What works?

At the moment it is supported:

  • Building of C++ and Python nodes (rclcpp and rclpy work).
  • C/C++/Python code generation for interfaces (messages, services and actions).
  • Defining ROS2 deployments with ros2_launch Bazel macro.
  • Defining ROS2 tests with ros2_test Bazel macro.
  • Only CycloneDDS middleware can be interfaced at the moment.

ROS2 packages are by default locked to versions from release-foxy-20221021.

NOTE: Unlike ROS1 genmsg which refuses to generate code if the deps between interface targets are not set correctly, code generation for ROS2 seems to not care about this. If the deps are not correctly set, you'll only see failures during compilation of the generated code. It could be that I missed setting some flags to the code generation of ROS2 interfaces.

Please take a look at the examples folder to get more info.

What's next?

The grand idea would be to get this repo at least to the level of rules_ros. In particular:

  • It has to be convenient to cross-compile a ROS2 deployment.

rules_ros2's People

Contributors

mvukov avatar evanliuav avatar sanjaer avatar kylestach avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.