24 #ifndef __INTERFACES_FACIALEXPRESSIONINTERFACE_H_ 25 #define __INTERFACES_FACIALEXPRESSIONINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 83 typedef struct __attribute__((packed)) {
84 int64_t timestamp_sec;
85 int64_t timestamp_usec;
90 } FacialExpressionInterface_data_t;
92 FacialExpressionInterface_data_t *data;
104 typedef struct __attribute__((packed)) {
105 int64_t timestamp_sec;
106 int64_t timestamp_usec;
108 } MoveBrowsMessage_data_t;
110 MoveBrowsMessage_data_t *data;
126 virtual Message * clone()
const;
133 typedef struct __attribute__((packed)) {
134 int64_t timestamp_sec;
135 int64_t timestamp_usec;
137 } MoveEyesMessage_data_t;
139 MoveEyesMessage_data_t *data;
155 virtual Message * clone()
const;
162 typedef struct __attribute__((packed)) {
163 int64_t timestamp_sec;
164 int64_t timestamp_usec;
166 } MoveJowlMessage_data_t;
168 MoveJowlMessage_data_t *data;
184 virtual Message * clone()
const;
191 typedef struct __attribute__((packed)) {
192 int64_t timestamp_sec;
193 int64_t timestamp_usec;
195 } MoveMouthMessage_data_t;
197 MoveMouthMessage_data_t *data;
213 virtual Message * clone()
const;
238 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
eyes_t
Action types for moving eyes.
size_t maxlenof_jowl_action() const
Get maximum length of jowl_action value.
const char * tostring_jowl_t(jowl_t value) const
Convert jowl_t constant to string.
MoveEyesMessage Fawkes BlackBoard Interface Message.
Fawkes library namespace.
jowl_t jowl_action() const
Get jowl_action value.
size_t maxlenof_eyes_action() const
Get maximum length of eyes_action value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
const char * tostring_eyes_t(eyes_t value) const
Convert eyes_t constant to string.
eyes_t eyes_action() const
Get eyes_action value.
size_t maxlenof_mouth_action() const
Get maximum length of mouth_action value.
void set_jowl_action(const jowl_t new_jowl_action)
Set jowl_action value.
Base class for all Fawkes BlackBoard interfaces.
MoveBrowsMessage Fawkes BlackBoard Interface Message.
mouth_t mouth_action() const
Get mouth_action value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
MoveJowlMessage Fawkes BlackBoard Interface Message.
const char * type() const
Get type of interface.
virtual Message * create_message(const char *type) const
Create message based on type name.
void set_brows_action(const brows_t new_brows_action)
Set brows_action value.
void set_mouth_action(const mouth_t new_mouth_action)
Set mouth_action value.
FacialExpressionInterface Fawkes BlackBoard Interface.
jowl_t
Action types for moving jowl.
mouth_t
Action types for moving mouth.
size_t maxlenof_brows_action() const
Get maximum length of brows_action value.
brows_t brows_action() const
Get brows_action value.
MoveMouthMessage Fawkes BlackBoard Interface Message.
void set_eyes_action(const eyes_t new_eyes_action)
Set eyes_action value.
brows_t
Action types for moving brows.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
const char * tostring_mouth_t(mouth_t value) const
Convert mouth_t constant to string.
const char * tostring_brows_t(brows_t value) const
Convert brows_t constant to string.