24 #ifndef __INTERFACES_CAMERACONTROLINTERFACE_H_ 25 #define __INTERFACES_CAMERACONTROLINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 56 typedef struct __attribute__((packed)) {
57 int64_t timestamp_sec;
58 int64_t timestamp_usec;
60 bool effect_supported;
66 bool mirror_supported;
67 } CameraControlInterface_data_t;
69 CameraControlInterface_data_t *data;
78 typedef struct __attribute__((packed)) {
79 int64_t timestamp_sec;
80 int64_t timestamp_usec;
82 } SetEffectMessage_data_t;
84 SetEffectMessage_data_t *data;
97 virtual Message * clone()
const;
104 typedef struct __attribute__((packed)) {
105 int64_t timestamp_sec;
106 int64_t timestamp_usec;
108 } SetZoomMessage_data_t;
110 SetZoomMessage_data_t *data;
120 uint32_t
zoom()
const;
121 void set_zoom(
const uint32_t new_zoom);
123 virtual Message * clone()
const;
130 typedef struct __attribute__((packed)) {
131 int64_t timestamp_sec;
132 int64_t timestamp_usec;
134 } SetMirrorMessage_data_t;
136 SetMirrorMessage_data_t *data;
149 virtual Message * clone()
const;
165 uint32_t
zoom()
const;
166 void set_zoom(
const uint32_t new_zoom);
186 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
bool is_mirror() const
Get mirror value.
void set_zoom_max(const uint32_t new_zoom_max)
Set zoom_max value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_zoom_min(const uint32_t new_zoom_min)
Set zoom_min value.
void set_effect(const Effect new_effect)
Set effect value.
void set_zoom_supported(const bool new_zoom_supported)
Set zoom_supported value.
bool is_zoom_supported() const
Get zoom_supported value.
void set_mirror_supported(const bool new_mirror_supported)
Set mirror_supported value.
size_t maxlenof_mirror_supported() const
Get maximum length of mirror_supported value.
Fawkes library namespace.
uint32_t zoom_max() const
Get zoom_max value.
CameraControlInterface Fawkes BlackBoard Interface.
Base class for all Fawkes BlackBoard interfaces.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
bool is_mirror_supported() const
Get mirror_supported value.
size_t maxlenof_effect() const
Get maximum length of effect value.
size_t maxlenof_mirror() const
Get maximum length of mirror value.
uint32_t zoom_min() const
Get zoom_min value.
SetEffectMessage Fawkes BlackBoard Interface Message.
const char * type() const
Get type of interface.
size_t maxlenof_zoom() const
Get maximum length of zoom value.
void set_effect_supported(const bool new_effect_supported)
Set effect_supported value.
uint32_t zoom() const
Get zoom value.
void set_zoom(const uint32_t new_zoom)
Set zoom value.
SetZoomMessage Fawkes BlackBoard Interface Message.
void set_mirror(const bool new_mirror)
Set mirror value.
bool is_effect_supported() const
Get effect_supported value.
Effect
Enumeration defining the possible effects.
Effect effect() const
Get effect value.
size_t maxlenof_effect_supported() const
Get maximum length of effect_supported value.
SetMirrorMessage Fawkes BlackBoard Interface Message.
const char * tostring_Effect(Effect value) const
Convert Effect constant to string.
size_t maxlenof_zoom_min() const
Get maximum length of zoom_min value.
size_t maxlenof_zoom_supported() const
Get maximum length of zoom_supported value.
virtual Message * create_message(const char *type) const
Create message based on type name.
size_t maxlenof_zoom_max() const
Get maximum length of zoom_max value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
Negative/Positive Reversal.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.