GithubHelp home page GithubHelp logo

rerun-io / cpp-example-ros-bridge Goto Github PK

View Code? Open in Web Editor NEW
18.0 10.0 4.0 276 KB

An example implementation of a ROS to Rerun bridge

Home Page: https://rerun.io/

License: Apache License 2.0

CMake 5.48% C++ 94.52%
cpp imu-sensor ros visualization

cpp-example-ros-bridge's Introduction

C++ Example: ROS Bridge

This is an example that shows how to use Rerun's C++ API to log and visualize ROS messages.

It works by subscribing to all topics with supported types, converting the messages, and logging the data to Rerun. It further allows to remap topic names to specific entity paths, specify additional timeless transforms, and pinhole parameters via an external config file. See the launch directory for usage examples.

ros-bridge-spot.mp4

This example is built for ROS 1. For more ROS examples, also check out the ROS 2 example, and the URDF data-loader.

NOTE: Currently only geometry_msgs/{PoseStamped,TransformStamped}, nav_msgs/Odometry, tf2_msgs/TFMessage, and sensor_msgs/{Image,CameraInfo,Imu} are supported. However, extending to other messages should be straightforward.

Compile and run using pixi

The easiest way to get started is to install pixi.

The pixi environment described in pixi.toml contains all required dependencies, including rosbags, and the Rerun viewer. To run the drone example use

pixi run drone_example

and to run the Spot example use

pixi run spot_example

Compile and run using existing ROS environment

If you have an existing ROS workspace and would like to add the Rerun node to it, clone this repository into the workspace's src directory and build the workspace.

cpp-example-ros-bridge's People

Contributors

abey79 avatar nikolauswest avatar roym899 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cpp-example-ros-bridge's Issues

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.