ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Hello !

The documentation for this message is here : http://docs.ros.org/api/geometry_msgs/html/msg/PoseWithCovariance.html

The Covariance is Row-Major order so you can access it with 2 methods :

CUSTOMIZED_MSG_NAME.covariance[0..35]

CUSTOMIZED_MSG_NAME.covariance[0..5][0..5]

Hello !

The documentation for this message is here : http://docs.ros.org/api/geometry_msgs/html/msg/PoseWithCovariance.html

The Covariance is Row-Major order so you can access it with 2 methods :

CUSTOMIZED_MSG_NAME.covariance[0..35]

CUSTOMIZED_MSG_NAME.covariance[0..5][0..5] CUSTOMIZED_MSG_NAME.covariance[06+0..56+5] (for 6*6 matrix only)

CUSTOMIZED_MSG_NAME.covariance[0..5][0..5]

click to hide/show revision 3
No.3 Revision

Hello !

The documentation for this message is here : http://docs.ros.org/api/geometry_msgs/html/msg/PoseWithCovariance.htmlhere:

# This represents a pose in free space with uncertainty.
Pose pose
# Row-major representation of the 6x6 covariance matrix
# The orientation parameters use a fixed-axis representation.
# In order, the parameters are:
# (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)
float64[36] covariance

The Covariance So covariance is Row-Major order so you can access it with 2 methods :

CUSTOMIZED_MSG_NAME.covariance[0..35]

CUSTOMIZED_MSG_NAME.covariance[0..35] or

CUSTOMIZED_MSG_NAME.covariance[06+0..56+5]

CUSTOMIZED_MSG_NAME.covariance[0*6+0..5*6+5]  (for 6*6 matrix only)

only)

CUSTOMIZED_MSG_NAME.covariance[0..5][0..5]

click to hide/show revision 4
No.4 Revision

Hello !

The documentation for this message is here:

# This represents a pose in free space with uncertainty.
Pose pose
# Row-major representation of the 6x6 covariance matrix
# The orientation parameters use a fixed-axis representation.
# In order, the parameters are:
# (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)
float64[36] covariance

So covariance is Row-Major order so you can access it with 2 methods :

CUSTOMIZED_MSG_NAME.covariance[0..35]

or

CUSTOMIZED_MSG_NAME.covariance[0*6+0..5*6+5]  (for 6*6 matrix only)

CUSTOMIZED_MSG_NAME.covariance[0..5][0..5]