You can now create messages as structures with fields matching the message object properties. Using structures typically improves performance of creating, updating, and using ROS messages, but message fields are no longer validated when set. Message types and corresponding field values from the structures are validated when sent across the network.
To support message structures as inputs, new functions that operate on specialized ROS messages have been provided. These new functions are based on the existing object functions of message objects, but support ROS and ROS 2 message structures as inputs instead of message objects.
The object functions will be removed in a future release.
Message TypesObject Function NameNew Function NameImage
CompressedImagereadImage
writeImage
QuaternionreadQuaternion
OctomapreadOccupancyMap3D
PointStamped
PoseStamped
QuaternionStamped
Vector3Stamped
TransformStampedapply
All messagesshowdetails