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>
52 int64_t timestamp_sec;
53 int64_t timestamp_usec;
78 } PanTiltInterface_data_t;
81 PanTiltInterface_data_t *data;
91 int64_t timestamp_sec;
92 int64_t timestamp_usec;
96 StopMessage_data_t *data;
113 int64_t timestamp_sec;
114 int64_t timestamp_usec;
115 } FlushMessage_data_t;
118 FlushMessage_data_t *data;
135 int64_t timestamp_sec;
136 int64_t timestamp_usec;
137 } CalibrateMessage_data_t;
140 CalibrateMessage_data_t *data;
157 int64_t timestamp_sec;
158 int64_t timestamp_usec;
159 } ParkMessage_data_t;
162 ParkMessage_data_t *data;
179 int64_t timestamp_sec;
180 int64_t timestamp_usec;
183 } GotoMessage_data_t;
186 GotoMessage_data_t *data;
189 GotoMessage(
const float ini_pan,
const float ini_tilt);
196 void set_pan(
const float new_pan);
199 void set_tilt(
const float new_tilt);
210 int64_t timestamp_sec;
211 int64_t timestamp_usec;
216 } TimedGotoMessage_data_t;
219 TimedGotoMessage_data_t *data;
222 TimedGotoMessage(
const float ini_time_sec,
const float ini_pan,
const float ini_tilt);
232 void set_pan(
const float new_pan);
235 void set_tilt(
const float new_tilt);
246 int64_t timestamp_sec;
247 int64_t timestamp_usec;
249 } SetEnabledMessage_data_t;
252 SetEnabledMessage_data_t *data;
273 int64_t timestamp_sec;
274 int64_t timestamp_usec;
277 } SetVelocityMessage_data_t;
280 SetVelocityMessage_data_t *data;
304 int64_t timestamp_sec;
305 int64_t timestamp_usec;
310 } SetMarginMessage_data_t;
313 SetMarginMessage_data_t *data;
338 uint32_t
flags()
const;
339 void set_flags(
const uint32_t new_flags);
342 void set_pan(
const float new_pan);
345 void set_tilt(
const float new_tilt);
347 uint32_t
msgid()
const;
348 void set_msgid(
const uint32_t new_msgid);
395 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
size_t maxlenof_tilt_margin() const
Get maximum length of tilt_margin value.
float tilt() const
Get tilt value.
SetMarginMessage()
Constructor.
ParkMessage()
Constructor.
float tilt_margin() const
Get tilt_margin value.
float pan() const
Get pan value.
TimedGotoMessage Fawkes BlackBoard Interface Message.
bool is_final() const
Get final value.
void set_time_sec(const float new_time_sec)
Set time_sec value.
void set_tilt_velocity(const float new_tilt_velocity)
Set tilt_velocity value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
~GotoMessage()
Destructor.
size_t maxlenof_final() const
Get maximum length of final value.
~SetMarginMessage()
Destructor.
StopMessage()
Constructor.
float pan_velocity() const
Get pan_velocity value.
static const uint32_t ERROR_PAN_OUTOFRANGE
ERROR_PAN_OUTOFRANGE constant.
virtual Message * clone() const
Clone this message.
uint32_t msgid() const
Get msgid value.
float tilt_velocity() const
Get tilt_velocity value.
static const uint32_t ERROR_COMMUNICATION
ERROR_COMMUNICATION constant.
~TimedGotoMessage()
Destructor.
static const uint32_t ERROR_UNSPECIFIC
ERROR_UNSPECIFIC constant.
uint32_t error_code() const
Get error_code value.
void set_pan_margin(const float new_pan_margin)
Set pan_margin value.
float max_tilt() const
Get max_tilt value.
void set_pan_velocity(const float new_pan_velocity)
Set pan_velocity value.
Fawkes library namespace.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
size_t maxlenof_calibrated() const
Get maximum length of calibrated value.
float min_tilt() const
Get min_tilt value.
float tilt_velocity() const
Get tilt_velocity value.
void set_max_pan_velocity(const float new_max_pan_velocity)
Set max_pan_velocity value.
SetEnabledMessage Fawkes BlackBoard Interface Message.
SetEnabledMessage()
Constructor.
void set_flags(const uint32_t new_flags)
Set flags value.
CalibrateMessage()
Constructor.
size_t maxlenof_tilt() const
Get maximum length of tilt value.
size_t maxlenof_tilt_velocity() const
Get maximum length of tilt_velocity value.
float pan_margin() const
Get pan_margin value.
size_t maxlenof_tilt_margin() const
Get maximum length of tilt_margin value.
virtual Message * clone() const
Clone this message.
float pan() const
Get pan value.
~FlushMessage()
Destructor.
~ParkMessage()
Destructor.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
Base class for all Fawkes BlackBoard interfaces.
float pan_velocity() const
Get pan_velocity value.
void set_pan_margin(const float new_pan_margin)
Set pan_margin value.
~CalibrateMessage()
Destructor.
virtual Message * clone() const
Clone this message.
virtual Message * clone() const
Clone this message.
SetVelocityMessage Fawkes BlackBoard Interface Message.
static const uint32_t ERROR_NONE
ERROR_NONE constant.
size_t maxlenof_max_tilt() const
Get maximum length of max_tilt value.
void set_pan(const float new_pan)
Set pan value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
void set_min_pan(const float new_min_pan)
Set min_pan value.
~SetVelocityMessage()
Destructor.
size_t maxlenof_min_tilt() const
Get maximum length of min_tilt value.
GotoMessage()
Constructor.
void set_tilt_margin(const float new_tilt_margin)
Set tilt_margin value.
virtual Message * clone() const
Clone this message.
ParkMessage Fawkes BlackBoard Interface Message.
~SetEnabledMessage()
Destructor.
size_t maxlenof_pan_margin() const
Get maximum length of pan_margin value.
void set_tilt(const float new_tilt)
Set tilt value.
static const uint32_t FLAG_SUPPORTS_PAN
FLAG_SUPPORTS_PAN constant.
size_t maxlenof_flags() const
Get maximum length of flags value.
virtual Message * create_message(const char *type) const
Create message based on type name.
void set_tilt_margin(const float new_tilt_margin)
Set tilt_margin value.
size_t maxlenof_tilt() const
Get maximum length of tilt value.
size_t maxlenof_max_tilt_velocity() const
Get maximum length of max_tilt_velocity value.
FlushMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_enabled() const
Get maximum length of enabled value.
size_t maxlenof_pan() const
Get maximum length of pan value.
size_t maxlenof_pan() const
Get maximum length of pan value.
FlushMessage()
Constructor.
void set_pan_velocity(const float new_pan_velocity)
Set pan_velocity value.
void set_min_tilt(const float new_min_tilt)
Set min_tilt value.
float max_pan() const
Get max_pan value.
void set_tilt(const float new_tilt)
Set tilt value.
size_t maxlenof_pan_velocity() const
Get maximum length of pan_velocity value.
size_t maxlenof_pan_velocity() const
Get maximum length of pan_velocity value.
size_t maxlenof_tilt() const
Get maximum length of tilt value.
size_t maxlenof_enabled() const
Get maximum length of enabled value.
static const uint32_t ERROR_TILT_OUTOFRANGE
ERROR_TILT_OUTOFRANGE constant.
void set_final(const bool new_final)
Set final value.
void set_calibrated(const bool new_calibrated)
Set calibrated value.
GotoMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_max_pan_velocity() const
Get maximum length of max_pan_velocity value.
bool is_calibrated() const
Get calibrated value.
void set_max_tilt(const float new_max_tilt)
Set max_tilt value.
size_t maxlenof_max_pan() const
Get maximum length of max_pan value.
float pan() const
Get pan value.
float max_pan_velocity() const
Get max_pan_velocity value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
void set_pan(const float new_pan)
Set pan value.
SetVelocityMessage()
Constructor.
float pan_margin() const
Get pan_margin value.
virtual Message * clone() const
Clone this message.
float max_tilt_velocity() const
Get max_tilt_velocity value.
void set_max_tilt_velocity(const float new_max_tilt_velocity)
Set max_tilt_velocity value.
virtual Message * clone() const
Clone this message.
bool is_enabled() const
Get enabled value.
float min_pan() const
Get min_pan value.
float tilt() const
Get tilt value.
SetMarginMessage Fawkes BlackBoard Interface Message.
void set_pan(const float new_pan)
Set pan value.
virtual Message * clone() const
Clone this message.
CalibrateMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_time_sec() const
Get maximum length of time_sec value.
static const uint32_t FLAG_SUPPORTS_TILT
FLAG_SUPPORTS_TILT constant.
PanTiltInterface Fawkes BlackBoard Interface.
~StopMessage()
Destructor.
void set_max_pan(const float new_max_pan)
Set max_pan value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
float tilt_margin() const
Get tilt_margin value.
uint32_t flags() const
Get flags value.
float time_sec() const
Get time_sec value.
float tilt() const
Get tilt value.
TimedGotoMessage()
Constructor.
void set_enabled(const bool new_enabled)
Set enabled value.
void set_tilt_velocity(const float new_tilt_velocity)
Set tilt_velocity value.
size_t maxlenof_pan_margin() const
Get maximum length of pan_margin value.
size_t maxlenof_pan() const
Get maximum length of pan value.
const char * type() const
Get type of interface.
size_t maxlenof_min_pan() const
Get maximum length of min_pan value.
void set_error_code(const uint32_t new_error_code)
Set error_code value.
void set_tilt(const float new_tilt)
Set tilt value.
size_t maxlenof_error_code() const
Get maximum length of error_code value.
bool is_enabled() const
Get enabled value.
StopMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_tilt_velocity() const
Get maximum length of tilt_velocity value.
void set_enabled(const bool new_enabled)
Set enabled value.
virtual Message * clone() const
Clone this message.