Expand description
ROS2 TF2 IO layer using the transforms crate.
This crate provides message handling for the middleware-independent
transforms crate. It supports multiple backends:
r2r- Rust bindings to ROS2 C librariesros2-client- Pure Rust ROS2 clientmt-pubsub- Minot pub/sub system
§Example
ⓘ
use transforms_io::TfListener;
// Create listener (backend-specific)
let listener = TfListener::new(&mut node);
// Lookup transform
let tf = listener.lookup_transform("base_link", "sensor", time)?;Re-exports§
pub use error::TfError;
Modules§
Structs§
- Quaternion
- A quaternion representing a rotation in 3D space.
- Registry
- A registry for managing transforms between different frames. It can traverse the parent-child tree and calculate the final transform. It will interpolate between two entries if a time is requested that lies in between.
- Timestamp
- Default concrete time type used by this crate.
- Transform
- Represents a 3D transformation with translation, rotation, and timestamp.
- Vector3
- A 3D vector with
x,y, andzcomponents.
Constants§
- DEFAULT_
BUFFER_ DURATION_ SECS - Default buffer duration for TF listeners (10 seconds). This matches the default used by ROS2 tf2.