add rclrs usage

This commit is contained in:
Christopher Sieh 2024-03-25 11:33:33 +01:00
parent 152fce79a3
commit 40b6ce6653
1 changed files with 8 additions and 1 deletions

View File

@ -84,13 +84,14 @@ impl From<YourROSPointCloud2> for PointCloud2Msg {
## Integrations
There are currently 2 integrations for common ROS crates such as rosrust for ROS1 and R2R for ROS2.
There are currently 3 integrations for common ROS crates.
- [rosrust_msg](https://github.com/adnanademovic/rosrust)
- [![Tests](https://github.com/stelzo/ros_pointcloud2/actions/workflows/rosrust_noetic.yml/badge.svg)](https://github.com/stelzo/ros_pointcloud2/actions/workflows/rosrust_noetic.yml)
- [r2r_msg](https://github.com/sequenceplanner/r2r)
- [![Tests](https://github.com/stelzo/ros_pointcloud2/actions/workflows/r2r_galactic.yml/badge.svg)](https://github.com/stelzo/ros_pointcloud2/actions/workflows/r2r_galactic.yml)
- [![Tests](https://github.com/stelzo/ros_pointcloud2/actions/workflows/r2r_humble.yml/badge.svg)](https://github.com/stelzo/ros_pointcloud2/actions/workflows/r2r_humble.yml)
- [![Tests](https://github.com/stelzo/ros_pointcloud2/actions/workflows/r2r_iron.yml/badge.svg)](https://github.com/stelzo/ros_pointcloud2/actions/workflows/r2r_iron.yml)
- [rclrs_msg](https://github.com/ros2-rust/ros2_rust)
You can use them by enabling the corresponding feature. Example:
```toml
@ -98,6 +99,12 @@ You can use them by enabling the corresponding feature. Example:
ros_pointcloud2 = { version = "*", features = ["r2r_msg"]}
```
For `rclrs_msg`, features do not work properly because of the way it generates the messages. You need to use tags instead:
```toml
[dependencies]
ros_pointcloud2 = { git = "https://github.com/stelzo/ros_pointcloud2", tag = "v0.3.2_rclrs", features = ["rclrs_msg"] }
```
Please open an issue or PR if you want to see support for other crates.
## Features