-
Notifications
You must be signed in to change notification settings - Fork 170
Open
Description
Description:
When I attempt to build a ROS 2 Rust node that subscribes to a topic using sensor_msgs::msg::PointCloud2
messages, the colcon build
process fails. The error message indicates that the sensor_msgs
crate is yanked from crates.io, preventing the build from completing successfully.
Any help on how to make correct use of this message is appreciated.
Here is the forked repo branch: https://github.com/Santoi/ros2_rust/tree/slopez/rclrs_demo.
Error Message:
$ colcon build
. . .
Starting >>> rclrs
--- stderr: rclrs
error: failed to select a version for the requirement `sensor_msgs = "*"`
version 4.2.3 is yanked
location searched: crates.io index
required by package `rclrs_demo v0.1.0 (/workspace/src/ros2_rust/rclrs_demo)`
---
Failed <<< rclrs [2.44s, exited with code 1]
. . .
Steps to Reproduce:
- Create a new ROS2 Rust package within ros2_rust repository.
- Add a dependency on
sensor_msgs
to theCargo.toml
file. - Create a subscriber for a topic using the
sensor_msgs::msg::PointCloud2
message type. - Attempt to build the package using
colcon build
.
Additional Context:
- ros2_rust version: 0.5.1
- ROS 2 distribution: Humble
- Operating System: Ubuntu 22.04
Cargo.toml
dependencies:- rclrs = { path = "../rclrs" }
- rerun = { version = "0.25" }
- ros_pointcloud2 = { git = "https://github.com/stelzo/ros_pointcloud2", tag = "v0.5.2_rclrs" }
- sensor_msgs = "*"
Metadata
Metadata
Assignees
Labels
No labels