24 #ifndef __INTERFACES_FACERINTERFACE_H_ 25 #define __INTERFACES_FACERINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 55 typedef struct __attribute__((packed)) {
56 int64_t timestamp_sec;
57 int64_t timestamp_usec;
93 bool learning_in_progress;
97 bool searching_person;
120 } FacerInterface_data_t;
122 FacerInterface_data_t *data;
131 typedef struct __attribute__((packed)) {
132 int64_t timestamp_sec;
133 int64_t timestamp_usec;
135 } LearnFaceMessage_data_t;
137 LearnFaceMessage_data_t *data;
148 void set_name(
const char * new_name);
149 size_t maxlenof_name()
const;
150 virtual Message * clone()
const;
157 typedef struct __attribute__((packed)) {
158 int64_t timestamp_sec;
159 int64_t timestamp_usec;
163 } SetOpmodeMessage_data_t;
165 SetOpmodeMessage_data_t *data;
175 if_facer_opmode_t
opmode()
const;
176 void set_opmode(
const if_facer_opmode_t new_opmode);
178 virtual Message * clone()
const;
185 typedef struct __attribute__((packed)) {
186 int64_t timestamp_sec;
187 int64_t timestamp_usec;
190 } EnableIdentityMessage_data_t;
192 EnableIdentityMessage_data_t *data;
202 uint32_t index()
const;
203 void set_index(
const uint32_t new_index);
204 size_t maxlenof_index()
const;
205 bool is_enable()
const;
206 void set_enable(
const bool new_enable);
207 size_t maxlenof_enable()
const;
208 virtual Message * clone()
const;
215 typedef struct __attribute__((packed)) {
216 int64_t timestamp_sec;
217 int64_t timestamp_usec;
220 } SetNameMessage_data_t;
222 SetNameMessage_data_t *data;
232 uint32_t index()
const;
233 void set_index(
const uint32_t new_index);
234 size_t maxlenof_index()
const;
236 void set_name(
const char * new_name);
237 size_t maxlenof_name()
const;
238 virtual Message * clone()
const;
245 typedef struct __attribute__((packed)) {
246 int64_t timestamp_sec;
247 int64_t timestamp_usec;
249 } GetNameMessage_data_t;
251 GetNameMessage_data_t *data;
261 uint32_t index()
const;
262 void set_index(
const uint32_t new_index);
263 size_t maxlenof_index()
const;
264 virtual Message * clone()
const;
271 typedef struct __attribute__((packed)) {
272 int64_t timestamp_sec;
273 int64_t timestamp_usec;
275 } StartSearchPersonMessage_data_t;
277 StartSearchPersonMessage_data_t *data;
287 uint32_t index()
const;
288 void set_index(
const uint32_t new_index);
289 size_t maxlenof_index()
const;
290 virtual Message * clone()
const;
297 typedef struct __attribute__((packed)) {
298 int64_t timestamp_sec;
299 int64_t timestamp_usec;
300 } StopSearchPersonMessage_data_t;
302 StopSearchPersonMessage_data_t *data;
311 virtual Message * clone()
const;
321 if_facer_opmode_t
opmode()
const;
322 void set_opmode(
const if_facer_opmode_t new_opmode);
381 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
size_t maxlenof_index_last_learned() const
Get maximum length of index_last_learned value.
StopSearchPersonMessage Fawkes BlackBoard Interface Message.
char * recognized_name() const
Get recognized_name value.
Facer will detect faces and try to identify the gender of the faces.
uint32_t num_detections() const
Get num_detections value.
void set_index_last_learned(const uint32_t new_index_last_learned)
Set index_last_learned value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_most_likely_identity(const uint32_t new_most_likely_identity)
Set most_likely_identity value.
SetOpmodeMessage Fawkes BlackBoard Interface Message.
uint32_t recognized_identity() const
Get recognized_identity value.
SetNameMessage Fawkes BlackBoard Interface Message.
float history_ratio() const
Get history_ratio value.
size_t maxlenof_history_ratio() const
Get maximum length of history_ratio value.
size_t maxlenof_most_likely_gender() const
Get maximum length of most_likely_gender value.
Fawkes library namespace.
size_t maxlenof_num_identities() const
Get maximum length of num_identities value.
size_t maxlenof_sec_since_detection() const
Get maximum length of sec_since_detection value.
size_t maxlenof_bearing() const
Get maximum length of bearing value.
uint32_t most_likely_identity() const
Get most_likely_identity value.
size_t maxlenof_learning_in_progress() const
Get maximum length of learning_in_progress value.
size_t maxlenof_most_likely_identity() const
Get maximum length of most_likely_identity value.
const char * tostring_if_facer_opmode_t(if_facer_opmode_t value) const
Convert if_facer_opmode_t constant to string.
virtual void copy_values(const Interface *other)
Copy values from other interface.
Facer will detect faces, and then try to recognize the most dominant face.
size_t maxlenof_recording_progress() const
Get maximum length of recording_progress value.
char * most_likely_gender() const
Get most_likely_gender value.
size_t maxlenof_searching_person() const
Get maximum length of searching_person value.
Base class for all Fawkes BlackBoard interfaces.
void set_num_identities(const uint32_t new_num_identities)
Set num_identities value.
GetNameMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_visibility_history() const
Get maximum length of visibility_history value.
void set_sec_since_detection(const float new_sec_since_detection)
Set sec_since_detection value.
if_facer_opmode_t opmode() const
Get opmode value.
void set_slope(const float new_slope)
Set slope value.
void set_recognized_identity(const uint32_t new_recognized_identity)
Set recognized_identity value.
size_t maxlenof_requested_index() const
Get maximum length of requested_index value.
void set_visibility_history(const int32_t new_visibility_history)
Set visibility_history value.
size_t maxlenof_opmode() const
Get maximum length of opmode value.
Facer will detect faces, but not try to recognize them.
bool is_searching_person() const
Get searching_person value.
uint32_t index_last_learned() const
Get index_last_learned value.
uint32_t num_identities() const
Get num_identities value.
uint32_t requested_index() const
Get requested_index value.
float sec_since_detection() const
Get sec_since_detection value.
const char * type() const
Get type of interface.
void set_searching_person(const bool new_searching_person)
Set searching_person value.
size_t maxlenof_requested_name() const
Get maximum length of requested_name value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
float slope() const
Get slope value.
void set_num_detections(const uint32_t new_num_detections)
Set num_detections value.
virtual Message * create_message(const char *type) const
Create message based on type name.
StartSearchPersonMessage Fawkes BlackBoard Interface Message.
Facer will not process any images.
int32_t visibility_history() const
Get visibility_history value.
LearnFaceMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_num_recognitions() const
Get maximum length of num_recognitions value.
void set_requested_name(const char *new_requested_name)
Set requested_name value.
size_t maxlenof_num_detections() const
Get maximum length of num_detections value.
void set_requested_index(const uint32_t new_requested_index)
Set requested_index value.
bool is_learning_in_progress() const
Get learning_in_progress value.
void set_opmode(const if_facer_opmode_t new_opmode)
Set opmode value.
void set_bearing(const float new_bearing)
Set bearing value.
size_t maxlenof_recognized_name() const
Get maximum length of recognized_name value.
Facer will gather images and learn an identity.
size_t maxlenof_recognized_identity() const
Get maximum length of recognized_identity value.
void set_num_recognitions(const uint32_t new_num_recognitions)
Set num_recognitions value.
FacerInterface Fawkes BlackBoard Interface.
void set_learning_in_progress(const bool new_learning_in_progress)
Set learning_in_progress value.
void set_recording_progress(const float new_recording_progress)
Set recording_progress value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
uint32_t num_recognitions() const
Get num_recognitions value.
void set_most_likely_gender(const char *new_most_likely_gender)
Set most_likely_gender value.
void set_history_ratio(const float new_history_ratio)
Set history_ratio value.
size_t maxlenof_slope() const
Get maximum length of slope value.
EnableIdentityMessage Fawkes BlackBoard Interface Message.
char * requested_name() const
Get requested_name value.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
if_facer_opmode_t
This determines the current status of skill execution.
float recording_progress() const
Get recording_progress value.
float bearing() const
Get bearing value.
void set_recognized_name(const char *new_recognized_name)
Set recognized_name value.