#include <hil_interface.h>
Public Member Functions | |
std::vector< mavros_msgs::Mavlink > | CollectData () |
Gather data collected from ROS messages into MAVLINK messages. | |
HilSensorLevelInterface (const Eigen::Quaterniond &q_S_B) | |
Constructor. | |
virtual | ~HilSensorLevelInterface () |
Destructor. | |
Private Attributes | |
uint64_t | gps_interval_nsec_ |
Interval between outgoing HIL_GPS messages. | |
mavlink_hil_gps_t | hil_gps_msg_ |
MAVLINK HIL_GPS message. | |
mavlink_hil_sensor_t | hil_sensor_msg_ |
MAVLINK HIL_SENSOR message. | |
uint64_t | last_gps_pub_time_nsec_ |
Nanosecond portion of the last HIL_GPS message timestamp. |
Definition at line 97 of file hil_interface.h.
rotors_hil::HilSensorLevelInterface::HilSensorLevelInterface | ( | const Eigen::Quaterniond & | q_S_B | ) |
Constructor.
[in] | q_S_B | Quaternion rotation from body frame to NED frame. |
Definition at line 21 of file hil_sensor_level_interface.cpp.
Destructor.
Definition at line 80 of file hil_sensor_level_interface.cpp.
std::vector< mavros_msgs::Mavlink > rotors_hil::HilSensorLevelInterface::CollectData | ( | ) | [virtual] |
Gather data collected from ROS messages into MAVLINK messages.
Implements rotors_hil::HilInterface.
Definition at line 83 of file hil_sensor_level_interface.cpp.
uint64_t rotors_hil::HilSensorLevelInterface::gps_interval_nsec_ [private] |
Interval between outgoing HIL_GPS messages.
Definition at line 116 of file hil_interface.h.
mavlink_hil_gps_t rotors_hil::HilSensorLevelInterface::hil_gps_msg_ [private] |
MAVLINK HIL_GPS message.
Definition at line 110 of file hil_interface.h.
mavlink_hil_sensor_t rotors_hil::HilSensorLevelInterface::hil_sensor_msg_ [private] |
MAVLINK HIL_SENSOR message.
Definition at line 113 of file hil_interface.h.
uint64_t rotors_hil::HilSensorLevelInterface::last_gps_pub_time_nsec_ [private] |
Nanosecond portion of the last HIL_GPS message timestamp.
Definition at line 119 of file hil_interface.h.