#include <interfaces/FacialExpressionInterface.h>
Inheritance diagram for fawkes::FacialExpressionInterface:
Public Types | |
BROWS_DEFAULT | |
Reset. | |
BROWS_FROWN | |
Frown. | |
BROWS_LIFT | |
Lift. | |
EYES_DEFAULT | |
Reset. | |
EYES_UP | |
Up. | |
EYES_DOWN | |
Down. | |
EYES_LEFT | |
Left. | |
EYES_RIGHT | |
Right. | |
EYES_COOL | |
Cool. | |
EYES_CROSS | |
Cross. | |
EYES_HEART | |
Heart. | |
EYES_DOLLAR | |
Dollar. | |
JOWL_DEFAULT | |
Reset. | |
JOWL_BLUSH | |
Blush. | |
JOWL_TEARS | |
Tears. | |
MOUTH_DEFAULT | |
Reset. | |
MOUTH_OPEN | |
Open. | |
MOUTH_CLOSE | |
Close. | |
MOUTH_SMILE | |
Smile. | |
MOUTH_SCOWL | |
Scowl. | |
enum | brows_t { BROWS_DEFAULT, BROWS_FROWN, BROWS_LIFT } |
Action types for moving brows. More... | |
enum | eyes_t { EYES_DEFAULT, EYES_UP, EYES_DOWN, EYES_LEFT, EYES_RIGHT, EYES_COOL, EYES_CROSS, EYES_HEART, EYES_DOLLAR } |
Action types for moving eyes. More... | |
enum | jowl_t { JOWL_DEFAULT, JOWL_BLUSH, JOWL_TEARS } |
Action types for moving jowl. More... | |
enum | mouth_t { MOUTH_DEFAULT, MOUTH_OPEN, MOUTH_CLOSE, MOUTH_SMILE, MOUTH_SCOWL } |
Action types for moving mouth. More... | |
Public Member Functions | |
const char * | tostring_brows_t (brows_t value) const |
Convert brows_t constant to string. | |
const char * | tostring_eyes_t (eyes_t value) const |
Convert eyes_t constant to string. | |
const char * | tostring_jowl_t (jowl_t value) const |
Convert jowl_t constant to string. | |
const char * | tostring_mouth_t (mouth_t value) const |
Convert mouth_t constant to string. | |
virtual bool | message_valid (const Message *message) const |
Check if message is valid and can be enqueued. | |
brows_t | brows_action () const |
Get brows_action value. | |
void | set_brows_action (const brows_t new_brows_action) |
Set brows_action value. | |
size_t | maxlenof_brows_action () const |
Get maximum length of brows_action value. | |
eyes_t | eyes_action () const |
Get eyes_action value. | |
void | set_eyes_action (const eyes_t new_eyes_action) |
Set eyes_action value. | |
size_t | maxlenof_eyes_action () const |
Get maximum length of eyes_action value. | |
jowl_t | jowl_action () const |
Get jowl_action value. | |
void | set_jowl_action (const jowl_t new_jowl_action) |
Set jowl_action value. | |
size_t | maxlenof_jowl_action () const |
Get maximum length of jowl_action value. | |
mouth_t | mouth_action () const |
Get mouth_action value. | |
void | set_mouth_action (const mouth_t new_mouth_action) |
Set mouth_action value. | |
size_t | maxlenof_mouth_action () const |
Get maximum length of mouth_action value. | |
virtual Message * | create_message (const char *type) const |
Create message based on type name. | |
virtual void | copy_values (const Interface *other) |
Copy values from other interface. | |
virtual const char * | enum_tostring (const char *enumtype, int val) const |
Convert arbitrary enum value to string. | |
Classes | |
struct | FacialExpressionInterface_data_t |
Internal data storage, do NOT modify! | |
class | MoveBrowsMessage |
MoveBrowsMessage Fawkes BlackBoard Interface Message. More... | |
class | MoveEyesMessage |
MoveEyesMessage Fawkes BlackBoard Interface Message. More... | |
class | MoveJowlMessage |
MoveJowlMessage Fawkes BlackBoard Interface Message. More... | |
class | MoveMouthMessage |
MoveMouthMessage Fawkes BlackBoard Interface Message. More... |
Interface to acces facial expressions on display (RCSoft)
Definition at line 33 of file FacialExpressionInterface.h.
Action types for moving eyes.
EYES_DEFAULT | Reset. |
EYES_UP | Up. |
EYES_DOWN | Down. |
EYES_LEFT | Left. |
EYES_RIGHT | Right. |
EYES_COOL | Cool. |
EYES_CROSS | Cross. |
EYES_HEART | Heart. |
EYES_DOLLAR | Dollar. |
Definition at line 50 of file FacialExpressionInterface.h.
Action types for moving mouth.
MOUTH_DEFAULT | Reset. |
MOUTH_OPEN | Open. |
MOUTH_CLOSE | Close. |
MOUTH_SMILE | Smile. |
MOUTH_SCOWL | Scowl. |
Definition at line 72 of file FacialExpressionInterface.h.
FacialExpressionInterface::brows_t fawkes::FacialExpressionInterface::brows_action | ( | ) | const |
Get brows_action value.
Type of action of brows
Definition at line 138 of file FacialExpressionInterface.cpp.
void fawkes::FacialExpressionInterface::copy_values | ( | const Interface * | other | ) | [virtual] |
Copy values from other interface.
other | other interface to copy values from |
Implements fawkes::Interface.
Definition at line 280 of file FacialExpressionInterface.cpp.
References data, and fawkes::Interface::type().
Message * fawkes::FacialExpressionInterface::create_message | ( | const char * | type | ) | const [virtual] |
Create message based on type name.
This will create a new message of the given type. The type must be given without the InterfaceName:: prefix but just the plain class name of the message.
type | message type |
UnknownTypeException | thrown if this interface cannot create a message of the given type. |
Implements fawkes::Interface.
Definition at line 259 of file FacialExpressionInterface.cpp.
const char * fawkes::FacialExpressionInterface::enum_tostring | ( | const char * | enumtype, | |
int | val | |||
) | const [virtual] |
Convert arbitrary enum value to string.
Given the string representation of the enum type and the value this method returns the string representation of the specific value, or the string UNKNOWN if the value is not defined. An exception is thrown if the enum type is invalid.
enumtype | enum type as string | |
val | value to convert |
UnknownTypeException | thrown if enumtype is not specified for interface. |
Implements fawkes::Interface.
Definition at line 291 of file FacialExpressionInterface.cpp.
References tostring_brows_t(), tostring_eyes_t(), tostring_jowl_t(), and tostring_mouth_t().
FacialExpressionInterface::eyes_t fawkes::FacialExpressionInterface::eyes_action | ( | ) | const |
Get eyes_action value.
Type of action of eyes
Definition at line 169 of file FacialExpressionInterface.cpp.
FacialExpressionInterface::jowl_t fawkes::FacialExpressionInterface::jowl_action | ( | ) | const |
Get jowl_action value.
Type of action of jown
Definition at line 200 of file FacialExpressionInterface.cpp.
size_t fawkes::FacialExpressionInterface::maxlenof_brows_action | ( | ) | const |
Get maximum length of brows_action value.
Definition at line 148 of file FacialExpressionInterface.cpp.
size_t fawkes::FacialExpressionInterface::maxlenof_eyes_action | ( | ) | const |
Get maximum length of eyes_action value.
Definition at line 179 of file FacialExpressionInterface.cpp.
size_t fawkes::FacialExpressionInterface::maxlenof_jowl_action | ( | ) | const |
Get maximum length of jowl_action value.
Definition at line 210 of file FacialExpressionInterface.cpp.
size_t fawkes::FacialExpressionInterface::maxlenof_mouth_action | ( | ) | const |
Get maximum length of mouth_action value.
Definition at line 241 of file FacialExpressionInterface.cpp.
bool fawkes::FacialExpressionInterface::message_valid | ( | const Message * | message | ) | const [virtual] |
Check if message is valid and can be enqueued.
message | Message to check |
Implements fawkes::Interface.
Definition at line 674 of file FacialExpressionInterface.cpp.
FacialExpressionInterface::mouth_t fawkes::FacialExpressionInterface::mouth_action | ( | ) | const |
Get mouth_action value.
Type of action of mouth
Definition at line 231 of file FacialExpressionInterface.cpp.
void fawkes::FacialExpressionInterface::set_brows_action | ( | const brows_t | new_brows_action | ) |
Set brows_action value.
Type of action of brows
new_brows_action | new brows_action value |
Definition at line 158 of file FacialExpressionInterface.cpp.
References fawkes::Interface::data_changed.
void fawkes::FacialExpressionInterface::set_eyes_action | ( | const eyes_t | new_eyes_action | ) |
Set eyes_action value.
Type of action of eyes
new_eyes_action | new eyes_action value |
Definition at line 189 of file FacialExpressionInterface.cpp.
References fawkes::Interface::data_changed.
void fawkes::FacialExpressionInterface::set_jowl_action | ( | const jowl_t | new_jowl_action | ) |
Set jowl_action value.
Type of action of jown
new_jowl_action | new jowl_action value |
Definition at line 220 of file FacialExpressionInterface.cpp.
References fawkes::Interface::data_changed.
void fawkes::FacialExpressionInterface::set_mouth_action | ( | const mouth_t | new_mouth_action | ) |
Set mouth_action value.
Type of action of mouth
new_mouth_action | new mouth_action value |
Definition at line 251 of file FacialExpressionInterface.cpp.
References fawkes::Interface::data_changed.
const char * fawkes::FacialExpressionInterface::tostring_brows_t | ( | brows_t | value | ) | const |
Convert brows_t constant to string.
value | value to convert to string |
Definition at line 73 of file FacialExpressionInterface.cpp.
References BROWS_DEFAULT, BROWS_FROWN, and BROWS_LIFT.
Referenced by enum_tostring().
const char * fawkes::FacialExpressionInterface::tostring_eyes_t | ( | eyes_t | value | ) | const |
Convert eyes_t constant to string.
value | value to convert to string |
Definition at line 87 of file FacialExpressionInterface.cpp.
References EYES_COOL, EYES_CROSS, EYES_DEFAULT, EYES_DOLLAR, EYES_DOWN, EYES_HEART, EYES_LEFT, EYES_RIGHT, and EYES_UP.
Referenced by enum_tostring().
const char * fawkes::FacialExpressionInterface::tostring_jowl_t | ( | jowl_t | value | ) | const |
Convert jowl_t constant to string.
value | value to convert to string |
Definition at line 107 of file FacialExpressionInterface.cpp.
References JOWL_BLUSH, JOWL_DEFAULT, and JOWL_TEARS.
Referenced by enum_tostring().
const char * fawkes::FacialExpressionInterface::tostring_mouth_t | ( | mouth_t | value | ) | const |
Convert mouth_t constant to string.
value | value to convert to string |
Definition at line 121 of file FacialExpressionInterface.cpp.
References MOUTH_CLOSE, MOUTH_DEFAULT, MOUTH_OPEN, MOUTH_SCOWL, and MOUTH_SMILE.
Referenced by enum_tostring().