![]() |
VSM C++ SDK
Vehicle Specific Modules SDK
|
Camera control action. More...
#include <camera_control_action.h>
Public Types | |
typedef std::shared_ptr < Camera_control_action > | Ptr |
Pointer type. | |
typedef std::weak_ptr < Camera_control_action > | Weak_ptr |
Pointer type. | |
![]() | |
enum | Type { Type::MOVE, Type::WAIT, Type::PAYLOAD_STEERING, Type::TAKEOFF, Type::LANDING, Type::CHANGE_SPEED, Type::SET_HOME, Type::POI, Type::HEADING, Type::CAMERA_CONTROL, Type::CAMERA_TRIGGER, Type::PANORAMA, Type::TASK_ATTRIBUTES, Type::CAMERA_SERIES_BY_TIME, Type::CAMERA_SERIES_BY_DISTANCE, Type::SET_PARAMETER, Type::SET_SERVO, Type::REPEAT_SERVO, Type::VTOL_TRANSITION } |
Types of vehicle actions as part of task (mission). More... | |
typedef std::shared_ptr< Action > | Ptr |
Pointer type. | |
typedef std::weak_ptr< Action > | Weak_ptr |
Pointer type. | |
Public Member Functions | |
Camera_control_action (double tilt, double roll, double yaw, double zoom) | |
Construct camera control action explicitly. More... | |
Camera_control_action (const Property_list &p) | |
Construct action from protobuf command. | |
![]() | |
VSM_DEFINE_EXCEPTION (Format_exception) | |
Thrown when internal action representation is in a wrong format. More... | |
Action (Type type) | |
Construct action of specific type. More... | |
virtual | ~Action () |
Make sure Action is polymorphic. More... | |
Type | Get_type () const |
Get action type. More... | |
void | Set_id (int id) |
std::string | Get_name () |
Get human readable name of the action. More... | |
template<Type type_val> | |
Mapper< type_val >::type::Ptr | Get_action () |
Get pointer to specific action as determined by Get_type. More... | |
Static Public Member Functions | |
template<typename... Args> | |
static Ptr | Create (Args &&...args) |
Create an instance. More... | |
![]() | |
template<typename... Args> | |
static Ptr | Create (Args &&...args) |
Create an instance. More... | |
Public Attributes | |
double | tilt |
Target camera tilt value in radians: [-Pi/2, Pi/2], where -Pi/2 stands for looking backward, 0 for full down and Pi/2 for looking straight forward. | |
double | roll |
Target camera roll value in radians: [-Pi/2, Pi/2], where -Pi/2 stands for left and Pi/2 for right. | |
double | yaw |
Target camera yaw value in radians: [-Pi/2, Pi/2], where -Pi/2 stands for left and Pi/2 for right. | |
double | zoom |
Device specific camera zoom level. More... | |
![]() | |
int | command_id = -1 |
Camera control action.
Controls an on-board camera controller system.
|
inline |
Construct camera control action explicitly.
|
inlinestatic |
Create an instance.
double ugcs::vsm::Camera_control_action::zoom |
Device specific camera zoom level.