Fawkes API
Fawkes Development Version
|
24 #ifndef _INTERFACES_PANTILTINTERFACE_H_
25 #define _INTERFACES_PANTILTINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
33 class PanTiltInterface :
public Interface
36 INTERFACE_MGMT_FRIENDS(PanTiltInterface)
51 int64_t timestamp_sec;
52 int64_t timestamp_usec;
77 } PanTiltInterface_data_t;
79 PanTiltInterface_data_t *data;
83 class StopMessage :
public Message
88 int64_t timestamp_sec;
89 int64_t timestamp_usec;
92 StopMessage_data_t *data;
108 int64_t timestamp_sec;
109 int64_t timestamp_usec;
110 } FlushMessage_data_t;
112 FlushMessage_data_t *data;
128 int64_t timestamp_sec;
129 int64_t timestamp_usec;
130 } CalibrateMessage_data_t;
132 CalibrateMessage_data_t *data;
148 int64_t timestamp_sec;
149 int64_t timestamp_usec;
150 } ParkMessage_data_t;
152 ParkMessage_data_t *data;
168 int64_t timestamp_sec;
169 int64_t timestamp_usec;
172 } GotoMessage_data_t;
174 GotoMessage_data_t *data;
177 GotoMessage(
const float ini_pan,
const float ini_tilt);
184 void set_pan(
const float new_pan);
187 void set_tilt(
const float new_tilt);
197 int64_t timestamp_sec;
198 int64_t timestamp_usec;
203 } TimedGotoMessage_data_t;
205 TimedGotoMessage_data_t *data;
208 TimedGotoMessage(
const float ini_time_sec,
const float ini_pan,
const float ini_tilt);
218 void set_pan(
const float new_pan);
221 void set_tilt(
const float new_tilt);
231 int64_t timestamp_sec;
232 int64_t timestamp_usec;
234 } SetEnabledMessage_data_t;
236 SetEnabledMessage_data_t *data;
256 int64_t timestamp_sec;
257 int64_t timestamp_usec;
260 } SetVelocityMessage_data_t;
262 SetVelocityMessage_data_t *data;
285 int64_t timestamp_sec;
286 int64_t timestamp_usec;
291 } SetMarginMessage_data_t;
293 SetMarginMessage_data_t *data;
318 uint32_t
flags()
const;
319 void set_flags(
const uint32_t new_flags);
322 void set_pan(
const float new_pan);
325 void set_tilt(
const float new_tilt);
327 uint32_t
msgid()
const;
328 void set_msgid(
const uint32_t new_msgid);
375 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
bool is_enabled() const
Get enabled value.
float max_tilt_velocity() const
Get max_tilt_velocity value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_pan() const
Get maximum length of pan value.
size_t maxlenof_tilt_velocity() const
Get maximum length of tilt_velocity value.
void set_enabled(const bool new_enabled)
Set enabled value.
size_t maxlenof_time_sec() const
Get maximum length of time_sec value.
size_t maxlenof_pan_margin() const
Get maximum length of pan_margin value.
void set_max_tilt(const float new_max_tilt)
Set max_tilt value.
size_t maxlenof_calibrated() const
Get maximum length of calibrated value.
void set_min_tilt(const float new_min_tilt)
Set min_tilt value.
size_t maxlenof_error_code() const
Get maximum length of error_code value.
size_t maxlenof_pan_velocity() const
Get maximum length of pan_velocity value.
size_t maxlenof_max_tilt_velocity() const
Get maximum length of max_tilt_velocity value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_max_pan() const
Get maximum length of max_pan value.
float pan_velocity() const
Get pan_velocity value.
float tilt() const
Get tilt value.
float tilt_margin() const
Get tilt_margin value.
float pan() const
Get pan value.
void set_calibrated(const bool new_calibrated)
Set calibrated value.
void set_pan_velocity(const float new_pan_velocity)
Set pan_velocity value.
size_t maxlenof_tilt() const
Get maximum length of tilt value.
uint32_t error_code() const
Get error_code value.
size_t maxlenof_pan_velocity() const
Get maximum length of pan_velocity value.
float pan_velocity() const
Get pan_velocity value.
void set_pan(const float new_pan)
Set pan value.
uint32_t flags() const
Get flags value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_max_tilt() const
Get maximum length of max_tilt value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
void set_tilt(const float new_tilt)
Set tilt value.
~FlushMessage()
Destructor.
void set_pan_margin(const float new_pan_margin)
Set pan_margin value.
float pan_margin() const
Get pan_margin value.
virtual Message * clone() const
Clone this message.
uint32_t msgid() const
Get msgid value.
size_t maxlenof_enabled() const
Get maximum length of enabled value.
const char * type() const
Get type of interface.
virtual Message * clone() const
Clone this message.
static const uint32_t FLAG_SUPPORTS_PAN
FLAG_SUPPORTS_PAN constant.
float pan() const
Get pan value.
static const uint32_t ERROR_UNSPECIFIC
ERROR_UNSPECIFIC constant.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
float pan_margin() const
Get pan_margin value.
void set_max_pan_velocity(const float new_max_pan_velocity)
Set max_pan_velocity value.
void set_pan(const float new_pan)
Set pan value.
SetMarginMessage()
Constructor.
virtual const char * enum_tostring(const char *enumtype, int val) const
FlushMessage()
Constructor.
TimedGotoMessage()
Constructor.
bool is_calibrated() const
Get calibrated value.
float tilt() const
Get tilt value.
virtual Message * clone() const
Clone this message.
void set_tilt_margin(const float new_tilt_margin)
Set tilt_margin value.
bool is_final() const
Get final value.
void set_tilt(const float new_tilt)
Set tilt value.
void set_max_pan(const float new_max_pan)
Set max_pan value.
void set_tilt_velocity(const float new_tilt_velocity)
Set tilt_velocity value.
size_t maxlenof_tilt_velocity() const
Get maximum length of tilt_velocity value.
size_t maxlenof_pan() const
Get maximum length of pan value.
float time_sec() const
Get time_sec value.
SetVelocityMessage()
Constructor.
static const uint32_t FLAG_SUPPORTS_TILT
FLAG_SUPPORTS_TILT constant.
void set_pan_margin(const float new_pan_margin)
Set pan_margin value.
size_t maxlenof_max_pan_velocity() const
Get maximum length of max_pan_velocity value.
void set_enabled(const bool new_enabled)
Set enabled value.
void set_pan_velocity(const float new_pan_velocity)
Set pan_velocity value.
void set_pan(const float new_pan)
Set pan value.
float max_tilt() const
Get max_tilt value.
~StopMessage()
Destructor.
~SetMarginMessage()
Destructor.
size_t maxlenof_min_tilt() const
Get maximum length of min_tilt value.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
size_t maxlenof_tilt_margin() const
Get maximum length of tilt_margin value.
static const uint32_t ERROR_PAN_OUTOFRANGE
ERROR_PAN_OUTOFRANGE constant.
float tilt_velocity() const
Get tilt_velocity value.
CalibrateMessage()
Constructor.
SetEnabledMessage()
Constructor.
size_t maxlenof_tilt_margin() const
Get maximum length of tilt_margin value.
float min_tilt() const
Get min_tilt value.
float tilt_margin() const
Get tilt_margin value.
static const uint32_t ERROR_COMMUNICATION
ERROR_COMMUNICATION constant.
~SetEnabledMessage()
Destructor.
GotoMessage()
Constructor.
~TimedGotoMessage()
Destructor.
void set_error_code(const uint32_t new_error_code)
Set error_code value.
float pan() const
Get pan value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_flags() const
Get maximum length of flags value.
size_t maxlenof_min_pan() const
Get maximum length of min_pan value.
static const uint32_t ERROR_NONE
ERROR_NONE constant.
virtual Message * clone() const
Clone this message.
size_t maxlenof_enabled() const
Get maximum length of enabled value.
size_t maxlenof_pan_margin() const
Get maximum length of pan_margin value.
StopMessage()
Constructor.
void set_time_sec(const float new_time_sec)
Set time_sec value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_tilt() const
Get maximum length of tilt value.
size_t maxlenof_final() const
Get maximum length of final value.
void set_flags(const uint32_t new_flags)
Set flags value.
bool is_enabled() const
Get enabled value.
~GotoMessage()
Destructor.
float min_pan() const
Get min_pan value.
virtual Message * create_message(const char *type) const
void set_tilt_margin(const float new_tilt_margin)
Set tilt_margin value.
float max_pan_velocity() const
Get max_pan_velocity value.
void set_tilt_velocity(const float new_tilt_velocity)
Set tilt_velocity value.
~ParkMessage()
Destructor.
float tilt_velocity() const
Get tilt_velocity value.
size_t maxlenof_pan() const
Get maximum length of pan value.
ParkMessage()
Constructor.
virtual Message * clone() const
Clone this message.
~SetVelocityMessage()
Destructor.
void set_min_pan(const float new_min_pan)
Set min_pan value.
void set_final(const bool new_final)
Set final value.
~CalibrateMessage()
Destructor.
float max_pan() const
Get max_pan value.
float tilt() const
Get tilt value.
size_t maxlenof_tilt() const
Get maximum length of tilt value.
void set_tilt(const float new_tilt)
Set tilt value.
void set_max_tilt_velocity(const float new_max_tilt_velocity)
Set max_tilt_velocity value.
static const uint32_t ERROR_TILT_OUTOFRANGE
ERROR_TILT_OUTOFRANGE constant.