9 #include <rclcpp/rclcpp.hpp>
10 #include <Eigen/Eigen>
12 #include <px4_msgs/msg/vehicle_global_position.hpp>
13 #include <px4_ros2/navigation/experimental/navigation_interface_base.hpp>
34 std::optional<Eigen::Vector2d>
lat_lon {std::nullopt};
73 inline void reset() {++_lat_lon_reset_counter;}
96 rclcpp::Publisher<px4_msgs::msg::VehicleGlobalPosition>::SharedPtr _aux_global_position_pub;
98 uint8_t _lat_lon_reset_counter{0};
Base class for a global position measurement provider.
Definition: global_position_measurement_interface.hpp:49
void update(const GlobalPositionMeasurement &global_position_measurement) const
Publishes a global position measurement to the FMU. Throws an exception if the following conditions a...
void reset()
Notify the FMU that the global position estimate has been reset.
Definition: global_position_measurement_interface.hpp:73
Base class for position measurement interface.
Definition: navigation_interface_base.hpp:27
Represents a global position measurement to be passed to GlobalPositionMeasurementInterface::update.
Definition: global_position_measurement_interface.hpp:29
std::optional< float > horizontal_variance
Variance of horizontal position error (meters).
Definition: global_position_measurement_interface.hpp:36
rclcpp::Time timestamp_sample
Timestamp of the sample.
Definition: global_position_measurement_interface.hpp:31
std::optional< float > altitude_msl
Altitude in the MSL frame.
Definition: global_position_measurement_interface.hpp:39
std::optional< float > vertical_variance
Variance of vertical position error (meters).
Definition: global_position_measurement_interface.hpp:41
std::optional< Eigen::Vector2d > lat_lon
Latitude and longitude.
Definition: global_position_measurement_interface.hpp:34