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> 56 int64_t timestamp_sec;
57 int64_t timestamp_usec;
90 bool learning_in_progress;
109 } FacerInterface_data_t;
112 FacerInterface_data_t *data;
122 int64_t timestamp_sec;
123 int64_t timestamp_usec;
125 } LearnFaceMessage_data_t;
128 LearnFaceMessage_data_t *data;
138 void set_name(
const char * new_name);
149 int64_t timestamp_sec;
150 int64_t timestamp_usec;
154 } SetOpmodeMessage_data_t;
157 SetOpmodeMessage_data_t *data;
166 if_facer_opmode_t
opmode()
const;
167 void set_opmode(
const if_facer_opmode_t new_opmode);
178 int64_t timestamp_sec;
179 int64_t timestamp_usec;
182 } EnableIdentityMessage_data_t;
185 EnableIdentityMessage_data_t *data;
194 uint32_t index()
const;
195 void set_index(
const uint32_t new_index);
196 size_t maxlenof_index()
const;
197 bool is_enable()
const;
198 void set_enable(
const bool new_enable);
199 size_t maxlenof_enable()
const;
209 int64_t timestamp_sec;
210 int64_t timestamp_usec;
213 } SetNameMessage_data_t;
216 SetNameMessage_data_t *data;
225 uint32_t index()
const;
226 void set_index(
const uint32_t new_index);
227 size_t maxlenof_index()
const;
229 void set_name(
const char * new_name);
240 int64_t timestamp_sec;
241 int64_t timestamp_usec;
243 } GetNameMessage_data_t;
246 GetNameMessage_data_t *data;
255 uint32_t index()
const;
256 void set_index(
const uint32_t new_index);
257 size_t maxlenof_index()
const;
268 if_facer_opmode_t
opmode()
const;
269 void set_opmode(
const if_facer_opmode_t new_opmode);
319 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
uint32_t recognized_identity() const
Get recognized_identity value.
size_t maxlenof_slope() const
Get maximum length of slope value.
bool is_learning_in_progress() const
Get learning_in_progress value.
float sec_since_detection() const
Get sec_since_detection value.
uint32_t num_recognitions() const
Get num_recognitions value.
char * recognized_name() const
Get recognized_name 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.
size_t maxlenof_requested_name() const
Get maximum length of requested_name value.
size_t maxlenof_name() const
Get maximum length of name value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
SetOpmodeMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_recording_progress() const
Get maximum length of recording_progress value.
size_t maxlenof_sec_since_detection() const
Get maximum length of sec_since_detection value.
const char * type() const
Get message type.
SetNameMessage Fawkes BlackBoard Interface Message.
Fawkes library namespace.
size_t maxlenof_most_likely_identity() const
Get maximum length of most_likely_identity value.
char * requested_name() const
Get requested_name value.
float slope() const
Get slope value.
if_facer_opmode_t opmode() const
Get opmode value.
size_t maxlenof_recognized_name() const
Get maximum length of recognized_name value.
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.
Base class for all Fawkes BlackBoard interfaces.
size_t maxlenof_learning_in_progress() const
Get maximum length of learning_in_progress value.
void set_num_identities(const uint32_t new_num_identities)
Set num_identities value.
float recording_progress() const
Get recording_progress value.
~LearnFaceMessage()
Destructor.
GetNameMessage Fawkes BlackBoard Interface Message.
void set_sec_since_detection(const float new_sec_since_detection)
Set sec_since_detection value.
void set_slope(const float new_slope)
Set slope value.
size_t maxlenof_bearing() const
Get maximum length of bearing value.
void set_recognized_identity(const uint32_t new_recognized_identity)
Set recognized_identity value.
size_t maxlenof_visibility_history() const
Get maximum length of visibility_history value.
void set_visibility_history(const int32_t new_visibility_history)
Set visibility_history value.
Facer will detect faces, but not try to recognize them.
size_t maxlenof_requested_index() const
Get maximum length of requested_index value.
float history_ratio() const
Get history_ratio value.
uint32_t most_likely_identity() const
Get 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.
size_t maxlenof_num_detections() const
Get maximum length of num_detections value.
float bearing() const
Get bearing value.
uint32_t num_detections() const
Get num_detections value.
void set_num_detections(const uint32_t new_num_detections)
Set num_detections value.
uint32_t requested_index() const
Get requested_index value.
virtual Message * clone() const
Clone this message.
virtual Message * create_message(const char *type) const
Create message based on type name.
size_t maxlenof_recognized_identity() const
Get maximum length of recognized_identity value.
Facer will not process any images.
LearnFaceMessage Fawkes BlackBoard Interface Message.
void set_requested_name(const char *new_requested_name)
Set requested_name value.
size_t maxlenof_opmode() const
Get maximum length of opmode value.
size_t maxlenof_history_ratio() const
Get maximum length of history_ratio value.
void set_requested_index(const uint32_t new_requested_index)
Set requested_index value.
void set_opmode(const if_facer_opmode_t new_opmode)
Set opmode value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
void set_bearing(const float new_bearing)
Set bearing value.
size_t maxlenof_num_identities() const
Get maximum length of num_identities value.
Facer will gather images and learn an identity.
int32_t visibility_history() const
Get visibility_history 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.
uint32_t num_identities() const
Get num_identities value.
void set_history_ratio(const float new_history_ratio)
Set history_ratio value.
LearnFaceMessage()
Constructor.
EnableIdentityMessage Fawkes BlackBoard Interface Message.
char * name() const
Get name value.
if_facer_opmode_t
This determines the current status of skill execution.
size_t maxlenof_num_recognitions() const
Get maximum length of num_recognitions value.
void set_name(const char *new_name)
Set name value.
void set_recognized_name(const char *new_recognized_name)
Set recognized_name value.