Some useful utils. More...
Namespaces | |
mavros | |
mavros::utils | |
setup | |
Functions | |
template<typename _T > | |
constexpr std::underlying_type< _T >::type | mavros::utils::enum_value (_T e) |
std::string | format (const std::string &fmt, Args...args) |
mavlink::common::LANDING_TARGET_TYPE | mavros::utils::landing_target_type_from_str (const std::string &landing_target_type) |
Retrieve landing target type from alias name. More... | |
mavlink::common::MAV_FRAME | mavros::utils::mav_frame_from_str (const std::string &mav_frame) |
Retreive MAV_FRAME from name. More... | |
mavlink::minimal::MAV_TYPE | mavros::utils::mav_type_from_str (const std::string &mav_type) |
Retreive MAV_TYPE from name. More... | |
constexpr size_t | operator""_KiB (unsigned long long sz) |
int | mavros::utils::sensor_orientation_from_str (const std::string &sensor_orientation) |
Retrieve sensor orientation number from alias name. More... | |
Eigen::Quaterniond | mavros::utils::sensor_orientation_matching (mavlink::common::MAV_SENSOR_ORIENTATION orientation) |
Function to match the received orientation received by MAVLink msg and the rotation of the sensor relative to the FCU. More... | |
bool | set_this_thread_name (const std::string &name, Args &&...args) |
timesync_mode | mavros::utils::timesync_mode_from_str (const std::string &mode) |
Retrieve timesync mode from name. More... | |
std::string | mavros::utils::to_string (timesync_mode e) |
std::string | mavros::utils::to_string (mavlink::common::MAV_SENSOR_ORIENTATION e) |
Retrieve alias of the orientation received by MAVLink msg. More... | |
std::string | mavros::utils::to_string (mavlink::minimal::MAV_AUTOPILOT e) |
std::string | mavros::utils::to_string (mavlink::minimal::MAV_TYPE e) |
std::string | mavros::utils::to_string (mavlink::minimal::MAV_STATE e) |
std::string | mavros::utils::to_string (mavlink::minimal::MAV_COMPONENT e) |
std::string | mavros::utils::to_string (mavlink::common::MAV_ESTIMATOR_TYPE e) |
std::string | mavros::utils::to_string (mavlink::common::ADSB_ALTITUDE_TYPE e) |
std::string | mavros::utils::to_string (mavlink::common::ADSB_EMITTER_TYPE e) |
std::string | mavros::utils::to_string (mavlink::common::MAV_MISSION_RESULT e) |
std::string | mavros::utils::to_string (mavlink::common::MAV_FRAME e) |
std::string | mavros::utils::to_string (mavlink::common::MAV_DISTANCE_SENSOR e) |
std::string | mavros::utils::to_string (mavlink::common::LANDING_TARGET_TYPE e) |
template<typename _T > | |
std::string | mavros::utils::to_string_enum (int e) |
const std::string | to_string_ss (T &obj) |
Some useful utils.
|
strong |
constexpr std::underlying_type<_T>::type mavros::utils::enum_value | ( | _T | e | ) |
LANDING_TARGET_TYPE mavros::utils::landing_target_type_from_str | ( | const std::string & | landing_target_type | ) |
Retrieve landing target type from alias name.
Definition at line 767 of file enum_to_string.cpp.
MAV_FRAME mavros::utils::mav_frame_from_str | ( | const std::string & | mav_frame | ) |
Retreive MAV_FRAME from name.
Definition at line 697 of file enum_to_string.cpp.
MAV_TYPE mavros::utils::mav_type_from_str | ( | const std::string & | mav_type | ) |
Retreive MAV_TYPE from name.
Definition at line 710 of file enum_to_string.cpp.
int mavros::utils::sensor_orientation_from_str | ( | const std::string & | sensor_orientation | ) |
Retrieve sensor orientation number from alias name.
Definition at line 146 of file enum_sensor_orientation.cpp.
Eigen::Quaterniond mavros::utils::sensor_orientation_matching | ( | mavlink::common::MAV_SENSOR_ORIENTATION | orientation | ) |
Function to match the received orientation received by MAVLink msg and the rotation of the sensor relative to the FCU.
timesync_mode mavros::utils::timesync_mode_from_str | ( | const std::string & | mode | ) |
Retrieve timesync mode from name.
Definition at line 328 of file enum_to_string.cpp.
std::string mavros::utils::to_string | ( | timesync_mode | e | ) |
Get string repr for timesync_mode
Definition at line 318 of file enum_to_string.cpp.
std::string mavros::utils::to_string | ( | mavlink::common::MAV_SENSOR_ORIENTATION | e | ) |
Retrieve alias of the orientation received by MAVLink msg.
std::string mavros::utils::to_string | ( | mavlink::minimal::MAV_AUTOPILOT | e | ) |
std::string mavros::utils::to_string | ( | mavlink::minimal::MAV_TYPE | e | ) |
std::string mavros::utils::to_string | ( | mavlink::minimal::MAV_STATE | e | ) |
std::string mavros::utils::to_string | ( | mavlink::minimal::MAV_COMPONENT | e | ) |
std::string mavros::utils::to_string | ( | mavlink::common::MAV_ESTIMATOR_TYPE | e | ) |
std::string mavros::utils::to_string | ( | mavlink::common::ADSB_ALTITUDE_TYPE | e | ) |
std::string mavros::utils::to_string | ( | mavlink::common::ADSB_EMITTER_TYPE | e | ) |
std::string mavros::utils::to_string | ( | mavlink::common::MAV_MISSION_RESULT | e | ) |
std::string mavros::utils::to_string | ( | mavlink::common::MAV_FRAME | e | ) |
std::string mavros::utils::to_string | ( | mavlink::common::MAV_DISTANCE_SENSOR | e | ) |
std::string mavros::utils::to_string | ( | mavlink::common::LANDING_TARGET_TYPE | e | ) |
std::string mavros::utils::to_string_enum | ( | int | e | ) |
Helper to call to_string() for enum _T