mavsdk::FollowMe::Config Struct Reference
#include: follow_me.h
FollowMe Configuration.
See Also:
- get_config(), set_config()
- Parameter Reference (PX4 User Guide)
Public Types
Type | Description |
---|---|
enum FollowDirection | Relative position of following vehicle. |
Data Fields
float min_height_m = 8.0f - Min follow height, in meters.
float follow_distance_m = 8.0f - Horizontal follow distance to target, in meters.
FollowDirection follow_direction = FollowDirection::BEHIND - Relative position of the following vehicle.
float responsiveness = 0.5f - Responsiveness, Range (0.0-1.0)
Static Public Attributes
static constexpr const float MIN_HEIGHT_M = 8.0f - Min follow height, in meters.
static constexpr const float MIN_FOLLOW_DIST_M = 1.0f - Min follow distance, in meters.
static constexpr const float MIN_RESPONSIVENESS = 0.f - Min responsiveness.
static constexpr const float MAX_RESPONSIVENESS = 1.0f - Max responsiveness.
Static Public Member Functions
Type | Name | Description |
---|---|---|
std::string | to_str (FollowDirection direction) | Human-readable string for enum FollowDirection. |
Member Enumeration Documentation
enum FollowDirection
Relative position of following vehicle.
Value | Description |
---|---|
FRONT_RIGHT |
Follow from front right. |
BEHIND |
Follow from behind. |
FRONT |
Follow from front. |
FRONT_LEFT |
Follow from front left. |
NONE |
See Also:
Member Function Documentation
to_str()
static std::string mavsdk::FollowMe::Config::to_str(FollowDirection direction)
Human-readable string for enum FollowDirection.
Parameters
- FollowDirection direction - Follow direction
Returns
std::string - std::string representing given direction
Field Documentation
MIN_HEIGHT_M
constexpr const float mavsdk::FollowMe::Config::MIN_HEIGHT_M = 8.0f
Min follow height, in meters.
MIN_FOLLOW_DIST_M
constexpr const float mavsdk::FollowMe::Config::MIN_FOLLOW_DIST_M = 1.0f
Min follow distance, in meters.
MIN_RESPONSIVENESS
constexpr const float mavsdk::FollowMe::Config::MIN_RESPONSIVENESS = 0.f
Min responsiveness.
MAX_RESPONSIVENESS
constexpr const float mavsdk::FollowMe::Config::MAX_RESPONSIVENESS = 1.0f
Max responsiveness.
min_height_m
float mavsdk::FollowMe::Config::min_height_m = 8.0f
Min follow height, in meters.
follow_distance_m
float mavsdk::FollowMe::Config::follow_distance_m = 8.0f
Horizontal follow distance to target, in meters.
follow_direction
FollowDirection mavsdk::FollowMe::Config::follow_direction = FollowDirection::BEHIND
Relative position of the following vehicle.
responsiveness
float mavsdk::FollowMe::Config::responsiveness = 0.5f
Responsiveness, Range (0.0-1.0)