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> 54 typedef struct __attribute__((packed)) {
55 int64_t timestamp_sec;
56 int64_t timestamp_usec;
76 } SkillerInterface_data_t;
78 SkillerInterface_data_t *data;
87 typedef struct __attribute__((packed)) {
88 int64_t timestamp_sec;
89 int64_t timestamp_usec;
94 } ExecSkillMessage_data_t;
96 ExecSkillMessage_data_t *data;
109 virtual Message * clone()
const;
116 typedef struct __attribute__((packed)) {
117 int64_t timestamp_sec;
118 int64_t timestamp_usec;
119 } RestartInterpreterMessage_data_t;
121 RestartInterpreterMessage_data_t *data;
130 virtual Message * clone()
const;
137 typedef struct __attribute__((packed)) {
138 int64_t timestamp_sec;
139 int64_t timestamp_usec;
140 } StopExecMessage_data_t;
142 StopExecMessage_data_t *data;
151 virtual Message * clone()
const;
158 typedef struct __attribute__((packed)) {
159 int64_t timestamp_sec;
160 int64_t timestamp_usec;
167 } AcquireControlMessage_data_t;
169 AcquireControlMessage_data_t *data;
179 bool is_steal_control()
const;
180 void set_steal_control(
const bool new_steal_control);
181 size_t maxlenof_steal_control()
const;
182 virtual Message * clone()
const;
189 typedef struct __attribute__((packed)) {
190 int64_t timestamp_sec;
191 int64_t timestamp_usec;
192 } ReleaseControlMessage_data_t;
194 ReleaseControlMessage_data_t *data;
203 virtual Message * clone()
const;
216 char *
error()
const;
222 uint32_t
msgid()
const;
223 void set_msgid(
const uint32_t new_msgid);
225 SkillStatusEnum
status()
const;
226 void set_status(
const SkillStatusEnum new_status);
231 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
char * skill_string() const
Get skill_string value.
size_t maxlenof_error() const
Get maximum length of error value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
The skill string has been successfully processed.
size_t maxlenof_skill_string() const
Get maximum length of skill_string value.
void set_exclusive_controller(const uint32_t new_exclusive_controller)
Set exclusive_controller value.
Fawkes library namespace.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
StopExecMessage Fawkes BlackBoard Interface Message.
virtual void copy_values(const Interface *other)
Copy values from other interface.
char * error() const
Get error value.
ReleaseControlMessage Fawkes BlackBoard Interface Message.
SkillStatusEnum
This determines the current status of skill execution.
uint32_t exclusive_controller() const
Get exclusive_controller value.
Base class for all Fawkes BlackBoard interfaces.
AcquireControlMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_exclusive_controller() const
Get maximum length of exclusive_controller value.
void set_error(const char *new_error)
Set error value.
const char * type() const
Get type of interface.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
SkillStatusEnum status() const
Get status value.
ExecSkillMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_status() const
Get maximum length of status value.
RestartInterpreterMessage Fawkes BlackBoard Interface Message.
The execution failed and cannot succeed anymore.
void set_skill_string(const char *new_skill_string)
Set skill_string value.
uint32_t msgid() const
Get msgid value.
SkillerInterface Fawkes BlackBoard Interface.
void set_status(const SkillStatusEnum new_status)
Set status value.
virtual Message * create_message(const char *type) const
Create message based on type name.
const char * tostring_SkillStatusEnum(SkillStatusEnum value) const
Convert SkillStatusEnum constant to string.
The execution is still running.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
void set_msgid(const uint32_t new_msgid)
Set msgid value.