OdomState
Represents robot odometry pose and velocity.
Properties:
Property | Type | Description |
|---|---|---|
|
| Odometry metadata header |
Read-only properties:
Property | Type | Description |
|---|---|---|
|
| Position |
|
| Quaternion |
|
| Linear velocity |
|
| Angular velocity |
|
| Second-precision timestamp, equivalent to |
|
| Reference frame, equivalent to |
|
| Child frame |
|
| Euler angles |
|
| Planar pose |
OdomState
Signature:
OdomState(
child_frame_id: str,
position: np.ndarray,
orientation: np.ndarray,
linear_velocity: np.ndarray | None = None,
angular_velocity: np.ndarray | None = None,
pose_covariance: np.ndarray | None = None,
twist_covariance: np.ndarray | None = None,
header: Header | None = None,
)
Description:
Construct an OdomState instance.
Parameters:
Parameter | Type | Required | Description |
|---|---|---|---|
|
| Yes | Child frame |
|
| Yes | Position |
|
| Yes | Quaternion |
|
| No | Linear velocity |
|
| No | Angular velocity |
|
| No | Pose 6x6 covariance matrix |
|
| No | Velocity 6x6 covariance matrix |
|
| No | Odometry metadata header; when not provided or set to |
Returns:
OdomState instance.
Raises:
None.
to_numpy
Signature:
OdomState.to_numpy() -> dict[str, np.ndarray]
Description:
Returns a dictionary of all available vectors and covariance matrices. Includes position / orientation / rpy; optional fields linear_velocity / angular_velocity / pose_covariance / twist_covariance are included when not empty.
Parameters:
No parameters.
Returns:
dict[str, np.ndarray].
Raises:
None.