24 #ifndef _INTERFACES_SKILLERINTERFACE_H_
25 #define _INTERFACES_SKILLERINTERFACE_H_
27 #include <interface/interface.h>
28 #include <interface/message.h>
29 #include <interface/field_iterator.h>
55 int64_t timestamp_sec;
56 int64_t timestamp_usec;
77 } SkillerInterface_data_t;
79 SkillerInterface_data_t *data;
89 int64_t timestamp_sec;
90 int64_t timestamp_usec;
95 } ExecSkillMessage_data_t;
97 ExecSkillMessage_data_t *data;
118 int64_t timestamp_sec;
119 int64_t timestamp_usec;
120 } RestartInterpreterMessage_data_t;
122 RestartInterpreterMessage_data_t *data;
139 int64_t timestamp_sec;
140 int64_t timestamp_usec;
141 } StopExecMessage_data_t;
143 StopExecMessage_data_t *data;
160 int64_t timestamp_sec;
161 int64_t timestamp_usec;
168 } AcquireControlMessage_data_t;
170 AcquireControlMessage_data_t *data;
191 int64_t timestamp_sec;
192 int64_t timestamp_usec;
193 } ReleaseControlMessage_data_t;
195 ReleaseControlMessage_data_t *data;
217 char *
error()
const;
223 uint32_t
msgid()
const;
224 void set_msgid(
const uint32_t new_msgid);
232 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
Base class for all Fawkes BlackBoard interfaces.
const char * type() const
Get type of interface.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
AcquireControlMessage Fawkes BlackBoard Interface Message.
bool is_steal_control() const
Get steal_control value.
AcquireControlMessage()
Constructor.
void set_steal_control(const bool new_steal_control)
Set steal_control value.
size_t maxlenof_steal_control() const
Get maximum length of steal_control value.
virtual Message * clone() const
Clone this message.
~AcquireControlMessage()
Destructor.
ExecSkillMessage Fawkes BlackBoard Interface Message.
virtual Message * clone() const
Clone this message.
~ExecSkillMessage()
Destructor.
size_t maxlenof_skill_string() const
Get maximum length of skill_string value.
ExecSkillMessage()
Constructor.
char * skill_string() const
Get skill_string value.
void set_skill_string(const char *new_skill_string)
Set skill_string value.
ReleaseControlMessage Fawkes BlackBoard Interface Message.
~ReleaseControlMessage()
Destructor.
ReleaseControlMessage()
Constructor.
virtual Message * clone() const
Clone this message.
RestartInterpreterMessage Fawkes BlackBoard Interface Message.
~RestartInterpreterMessage()
Destructor.
RestartInterpreterMessage()
Constructor.
virtual Message * clone() const
Clone this message.
StopExecMessage Fawkes BlackBoard Interface Message.
StopExecMessage()
Constructor.
virtual Message * clone() const
Clone this message.
~StopExecMessage()
Destructor.
SkillerInterface Fawkes BlackBoard Interface.
char * error() const
Get error value.
void set_skill_string(const char *new_skill_string)
Set skill_string value.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
size_t maxlenof_error() const
Get maximum length of error value.
const char * tostring_SkillStatusEnum(SkillStatusEnum value) const
Convert SkillStatusEnum constant to string.
void set_error(const char *new_error)
Set error value.
virtual Message * create_message(const char *type) const
Create message based on type name.
SkillStatusEnum status() const
Get status value.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
SkillStatusEnum
This determines the current status of skill execution.
@ S_INACTIVE
No skill is running.
@ S_RUNNING
The execution is still running.
@ S_FAILED
The execution failed and cannot succeed anymore.
@ S_FINAL
The skill string has been successfully processed.
void set_status(const SkillStatusEnum new_status)
Set status value.
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.
void set_exclusive_controller(const char *new_exclusive_controller)
Set exclusive_controller value.
size_t maxlenof_skill_string() const
Get maximum length of skill_string value.
size_t maxlenof_exclusive_controller() const
Get maximum length of exclusive_controller value.
uint32_t msgid() const
Get msgid value.
size_t maxlenof_status() const
Get maximum length of status value.
char * skill_string() const
Get skill_string value.
char * exclusive_controller() const
Get exclusive_controller value.
Fawkes library namespace.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.