Coder Social home page Coder Social logo

ros2_d's Introduction

ros2_d - ROS2 client library written in Dlang

workflow

Document

This is a ROS2 client library written in Dlang that does not depend on ROS2 build infrastructure (colcon).

Sub packages

  • rcl_bind : D binding package of rcl
  • msg_gen : Message generator that reads IDL files
  • rcld : ROS2 client library API for D

Getting started

Prerequisites

  • libclang-dev (tested with libclang-10-dev)
  • clang (tested with clang-10)

Build

  1. Execute this command at your project root.

    • This will generate D message packages from visible ROS2 message packages.
    dub run ros2_d:msg_gen -- .dub/packages
  2. Add ros2_d to your project

    dub add ros2_d:rcld
  3. Add message packages you want to use

    • Open dub.json and add (e.g.) "std_msgs": ">=0.0.1" to dependencies section
  4. Build

    dub build

Before you execute that procedure, please be sure that necessary environment varialbles for ROS2. This means, you need to execute the following command before setting up.

source /opt/ros/$ROS_DISTRO/setup.bash

And if you have your own message type, please do the following command too.

source <your-ament-workspace>/install/setup.bash

When some of ROS2 message type definitions are changed, please do the following command again.

dub run ros2_d:msg_gen -- .dub/packages -r

Here is a example pacakge.

Supporting environments

  • OS
    • Linux (tested with Ubuntu 20.04)
  • ROS2 distribution
    • Foxy
    • Galactic
    • Rolling
  • Dlang
    • dmd (tested with dmd-2.098.0)
  • CPU
    • x86_64

For developer

Getting started

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.