POSE_AXIS Class Reference

Flags selecting which degrees of freedom of a RelativePoseData are measured. More...

Static Functions

def from_string (str, name)
 Converts a string to the corresponding POSE_AXIS value. More...
 

Detailed Description

Flags selecting which degrees of freedom of a RelativePoseData are measured.

Combine them with the bitwise OR operator. An axis that is not listed is treated as completely unknown: the ZED SDK ignores the corresponding row and column of RelativePoseData.covariance and lets the images alone determine that axis.

Note
The order of the flags is also the order of the rows and columns of RelativePoseData.covariance.
X, Y and Z are the axes of your motion source itself, the ones RelativePoseData.motion is expressed along, and RelativePoseData.sensor_transform says where they point. A wheel odometry measuring forward, sideways and heading motion therefore declares POSE_AXIS.TX | POSE_AXIS.TY | POSE_AXIS.RZ, with no rewriting into another set of axes.
Enumerator
NONE No axis.
TX Translation along the X axis.
TY Translation along the Y axis.
TZ Translation along the Z axis.
RX Rotation about the X axis.
RY Rotation about the Y axis.
RZ Rotation about the Z axis.
TRANSLATION The three translation axes.
ROTATION The three rotation axes.
ALL All six degrees of freedom.

Functions

◆ from_string()

def from_string (   str,
  name 
)
static

Converts a string to the corresponding POSE_AXIS value.

Parameters
name: The axes, as returned by str(), for example "TX|TY|RZ".
Returns
The corresponding POSE_AXIS value. If the string cannot be parsed, POSE_AXIS.NONE is returned.