native_ros2_messages crate, generated from upstream .msg definitions at build time. The current build carries 254 messages across 22 packages, so most robotics pipelines never need a custom schema.
Import a type from its package:
sensor_msgs/Image); the pkg::Type form is normalized to pkg/Type.
List everything available on your build, grouped by package:
Packages
A bare type name that exists in several packages —
Pose2D is in both geometry_msgs and vision_msgs — must be qualified. The CLI errors and lists the candidates rather than guessing.ROS 2 to Rust type mapping
Fixed and variable fields
Fixed-size fields are read and written as plain fields. Variable-length fields (string, T[]) are read through an accessor method and written with the same plain assignment:
fill_from writes straight into the shared-memory destination — see the node macro reference.