Coder Social home page Coder Social logo

ros2_rust's Introduction

ROS2 for Rust

Build status

Target Status
Ubuntu 18.04 Build Status

Introduction

This is a set of projects (bindings, code generator, examples and more) that enables developers to write ROS2 applications in Rust.

Features

The current set of features include:

  • Generation of all builtin ROS types
  • Support for publishers and subscriptions
  • Tunable QoS settings

What's missing?

Lots of things!

  • An ament build type for Cargo. The current examples use CMake to install and build the binaries... and it's really ugly.
  • Component nodes
  • Clients and services
  • Tests
  • Documentation

Limitations

  • messages are deep-copied and this can be terribly inefficient for big messages like images; the current solution leverages C typesupport implementations and might benefits from a direct serialization/deserialization
  • the current solution for crates export with CMake is not very robust
  • rclrs interface is very limited for now and might not be so much idiomatic yet, any help and suggestion on the interface would be greatly appreciated
  • due to the current ROS2 support of non-default clients, packages containing definitions of messages used in Rust crates must be present in the current workspace; otherwise message crates generation won't be triggered

Sounds great, how can I try this out?

The following steps show how to build the examples:

# first, install vcstool from PyPI or apt:
# sudo apt install python3-vcstool
# pip install vcstool

mkdir -p ~/ros2_rust_ws/src
cd ~/ros2_rust_ws
wget https://raw.githubusercontent.com/ros2-rust/ros2_rust/master/ros2_rust.repos
vcs import src < ros2_rust.repos
source /opt/ros/crystal/setup.sh
colcon build

Now you can just run a bunch of examples.

Publisher and subscriber

Publisher:

. ./install/setup.sh

ros2 run rclrs_examples rclrs_publisher

Subscriber:

. ./install/setup.sh

ros2 run rclrs_examples rclrs_subscriber

Enjoy!

ros2_rust's People

Contributors

esteve avatar lelongg avatar marcoesposito1988 avatar

Watchers

 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.