You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrate Rerun bridge from ROS 1 to ROS 2 and add CARLA example (#1)
* Migrate library from ROS 1 to ROS 2
* Start migrating VisualizerNode from ROS 1 to ROS 2
* Update README
* Fix narrowing conversion warning
* Remove duplicate LICENSE
* Fix formatting
* Fix typos
* Improve development instructions
* Get node running
* Add back subscription factory methods
* Add timers and removed factory methods
* Make yaml loading less brittle and fix message names
* Add Carla example files
* Add optional mcap support to pixi, add examples (still missing download tasks)
* Improve logging and sim time handling
* Add notes on how to generate good bag with CARLA
* Update carla example params
* Add option to clamp depth data
* Update README.md
* Add all platforms (only linux-64 tested)
* Add build workflow
* Fix typo in action
* Add colcon build dependency
* Download CARLA bag with pixi
* Improve carla example notes
* Fix typo
* Fix bag download
* Fix pixi outputs and remove custom caching
* Add pixi-less insructions to run example
This example will show how to use Rerun's C++ API to log and visualize ROS 2 messages.
2
+
3
+
This is an example that shows how to use Rerun's C++ API to log and visualize [ROS 2](https://docs.ros.org/en/humble/index.html) messages (for the ROS 1 version, see [here](https://github.com/rerun-io/cpp-example-ros-bridge)).
4
+
5
+
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](https://github.com/rerun-io/cpp-example-ros2-bridge/tree/main/rerun_bridge/launch) directory for usage examples.
This example is built for ROS 2. For more ROS examples, also check out the [ROS 2 example](https://www.rerun.io/docs/howto/ros2-nav-turtlebot), the [URDF data-loader](https://github.com/rerun-io/rerun-loader-python-example-urdf), and the [ROS 1 bridge](https://github.com/rerun-io/cpp-example-ros-bridge).
10
+
11
+
> 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.
12
+
13
+
## Compile and run using pixi
14
+
The easiest way to get started is to install [pixi](https://prefix.dev/docs/pixi/overview).
15
+
16
+
The pixi environment described in `pixi.toml` contains all required dependencies, including the example data, and the Rerun viewer. To run the [CARLA](https://carla.org/) example use
17
+
18
+
```shell
19
+
pixi run carla_example
20
+
```
21
+
22
+
## Compile and run using existing ROS environment
23
+
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.
24
+
25
+
To manually run the CARLA example, first download the [CARLA bag](https://storage.googleapis.com/rerun-example-datasets/carla_ros2.zip) and extract it to the `share` directory of the `rerun_bridge` package (typically located in `{workspace_dir}/install/rerun_bridge/share/rerun_bridge`). Then, run the following command:
26
+
27
+
```shell
28
+
ros2 launch rerun_bridge carla_example.launch
29
+
```
3
30
4
31
## Development
5
-
You can update this repository with the latest changes from the template by running:
0 commit comments