27 bool positionXYValid()
const
32 bool positionZValid()
const
37 Eigen::Vector3f positionNed()
const
39 const px4_msgs::msg::VehicleLocalPosition & pos =
last();
40 return {pos.x, pos.y, pos.z};
43 bool velocityXYValid()
const
48 bool velocityZValid()
const
52 Eigen::Vector3f velocityNed()
const
54 const px4_msgs::msg::VehicleLocalPosition & pos =
last();
55 return {pos.vx, pos.vy, pos.vz};
58 Eigen::Vector3f accelerationNed()
const
60 const px4_msgs::msg::VehicleLocalPosition & pos =
last();
61 return {pos.ax, pos.ay, pos.az};
71 const px4_msgs::msg::VehicleLocalPosition & pos =
last();
75 float distanceGround()
const
77 const px4_msgs::msg::VehicleLocalPosition & pos =
last();
78 return pos.dist_bottom;
Definition context.hpp:20
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 withi...
Definition subscription.hpp:84