Namespaces | Enumerations | Functions
Mavutils

Some useful utils. More...

Collaboration diagram for Mavutils:

Namespaces

 mavros
 
 mavros::utils
 
 setup
 

Enumerations

enum  mavros::utils::timesync_mode { mavros::utils::timesync_mode::NONE = 0, mavros::utils::timesync_mode::MAVLINK, mavros::utils::timesync_mode::ONBOARD, mavros::utils::timesync_mode::PASSTHROUGH }
 

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)
 

Detailed Description

Some useful utils.

Enumeration Type Documentation

◆ timesync_mode

Possible modes of timesync operation

Used by UAS class, but it can't be defined inside because enum is used in utils.

Enumerator
NONE 

Disabled.

MAVLINK 

Via TIMESYNC message.

ONBOARD 
PASSTHROUGH 

Definition at line 44 of file utils.h.

Function Documentation

◆ enum_value()

template<typename _T >
constexpr std::underlying_type<_T>::type mavros::utils::enum_value ( _T  e)

Helper to get enum value from strongly typed enum (enum class).

Examples:
dummy.cpp.

Definition at line 55 of file utils.h.

◆ landing_target_type_from_str()

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_from_str()

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_from_str()

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.

◆ sensor_orientation_from_str()

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.

◆ sensor_orientation_matching()

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_from_str()

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.

◆ to_string() [1/13]

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.

◆ to_string() [2/13]

std::string mavros::utils::to_string ( mavlink::common::MAV_SENSOR_ORIENTATION  e)

Retrieve alias of the orientation received by MAVLink msg.

◆ to_string() [3/13]

std::string mavros::utils::to_string ( mavlink::minimal::MAV_AUTOPILOT  e)

◆ to_string() [4/13]

std::string mavros::utils::to_string ( mavlink::minimal::MAV_TYPE  e)

◆ to_string() [5/13]

std::string mavros::utils::to_string ( mavlink::minimal::MAV_STATE  e)

◆ to_string() [6/13]

std::string mavros::utils::to_string ( mavlink::minimal::MAV_COMPONENT  e)

◆ to_string() [7/13]

std::string mavros::utils::to_string ( mavlink::common::MAV_ESTIMATOR_TYPE  e)

◆ to_string() [8/13]

std::string mavros::utils::to_string ( mavlink::common::ADSB_ALTITUDE_TYPE  e)

◆ to_string() [9/13]

std::string mavros::utils::to_string ( mavlink::common::ADSB_EMITTER_TYPE  e)

◆ to_string() [10/13]

std::string mavros::utils::to_string ( mavlink::common::MAV_MISSION_RESULT  e)

◆ to_string() [11/13]

std::string mavros::utils::to_string ( mavlink::common::MAV_FRAME  e)

◆ to_string() [12/13]

std::string mavros::utils::to_string ( mavlink::common::MAV_DISTANCE_SENSOR  e)

◆ to_string() [13/13]

std::string mavros::utils::to_string ( mavlink::common::LANDING_TARGET_TYPE  e)

◆ to_string_enum()

template<typename _T >
std::string mavros::utils::to_string_enum ( int  e)

Helper to call to_string() for enum _T

Definition at line 85 of file utils.h.



mavros
Author(s): Vladimir Ermakov
autogenerated on Tue Jun 1 2021 02:16:10