|
|
| Odometry (Context &context) |
| |
| Eigen::Vector3f | positionNed () const |
| | Get the vehicle's position in the North-East-Down (NED) local frame. More...
|
| |
| Eigen::Vector3f | velocityNed () const |
| | Get the vehicle's linear velocity in the North-East-Down (NED) frame. More...
|
| |
| Eigen::Vector3f | angularVelocityFrd () const |
| | Get the vehicle's angular velocity in FRD frame. More...
|
| |
| Eigen::Quaternionf | attitude () const |
| | Get the vehicle's attitude. More...
|
| |
| float | roll () const |
| | Get the vehicle's roll in extrinsic RPY order. More...
|
| |
| float | pitch () const |
| | Get the vehicle's pitch in extrinsic RPY order. More...
|
| |
| float | yaw () const |
| | Get the vehicle's yaw in extrinsic RPY order. More...
|
| |
|
| Subscription (Context &context, const std::string &topic) |
| |
| void | onUpdate (const UpdateCallback &callback) |
| | Add a callback to execute when receiving a new message. More...
|
| |
| const px4_msgs::msg::VehicleOdometry & | last () const |
| | Get the last-received message. More...
|
| |
| const rclcpp::Time & | lastTime () const |
| | Get the receive-time of the last message. More...
|
| |
| bool | lastValid (const std::chrono::duration< int64_t, DurationT > max_delay=500ms) const |
| | Check whether the last message is still valid. To be valid, the message must have been received within a given time of the current time. More...
|
| |
Provides access to the vehicle's odometry estimate.
Use this wrapper when you need position, velocity, attitude, and angular rates to be strictly time-aligned from the same odometry message. This class consolidates the odometry snapshot so advanced control (e.g. MPC) or end-to-end reinforcement learning pipelines can consume a consistent state vector at a single timestamp.