Cargo Features

ros2-client has no features set by default.

[dependencies]
ros2-client = { version = "0.7.6", features = ["security", "pre-iron-gid"] }
security

declare the existence of "security" feature (Secure ROS 2 support)

Enables security of rustdds

release setting

pre-iron-gid

The ROS 2/RMW-defined Gid (global identifer) type (see src/gid.rs) has changed between ROS2 releases Humble and Iron. See https://github.com/ros2/rmw/commit/8995d9faa8ecb39f62cc4e2cb65abb63489ae4c6 These are incompatible and apparently not run-time negotiable/detectable over the wire.

ros2-client now uses the newer Iron/Jazzy/... version as a default. Use this feature to revert back to older version. There is no known easy and reliable way to talk to both Humble and Iron at the same time.

Using a wrong Gid format prevents ROS2 seeing Nodes published by ros2-client so that ros2 node list or rqt Node Graph do not show nodes. Topic communication may still work, but Services likely do not.

Affects gid::GID_LENGTH