ros / common_msgs

Commonly used messages in ROS. Includes messages for actions (actionlib_msgs), diagnostics (diagnostic_msgs), geometric primitives (geometry_msgs), robot navigation (nav_msgs), and common sensors (sensor_msgs), such as laser range finders, cameras, point clouds.
http://wiki.ros.org/common_msgs
179 stars 191 forks source link

posewithcovariance array? #110

Closed protobits closed 6 years ago

protobits commented 7 years ago

Would it be possible to add an array message definition for PoseWithCovariance? This would be useful to publish history of poses with covariance in a single message, which is not currently possible.

tfoote commented 7 years ago

Generally I'd rather not just add an Array datatype. There are a few left over that are kept around for backwards compatibility. A container with an array takes the same number of lines to define as using the array synatax and doesn't improve sematnic meaning.

It sounds like you have a specific use case with semantic meaning. I'd recommend making a custom msg with exactly what you want and a sematically meaningful name as well as possibly some other relevant metadata that would be relevant to making the contents of the message self contained.