24 #ifndef __INTERFACES_OPENRAVEINTERFACE_H_ 25 #define __INTERFACES_OPENRAVEINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 43 typedef struct __attribute__((packed)) {
44 int64_t timestamp_sec;
45 int64_t timestamp_usec;
54 } OpenRaveInterface_data_t;
56 OpenRaveInterface_data_t *data;
64 typedef struct __attribute__((packed)) {
65 int64_t timestamp_sec;
66 int64_t timestamp_usec;
67 } StartViewerMessage_data_t;
69 StartViewerMessage_data_t *data;
77 virtual Message * clone()
const;
84 typedef struct __attribute__((packed)) {
85 int64_t timestamp_sec;
86 int64_t timestamp_usec;
89 } AddObjectMessage_data_t;
91 AddObjectMessage_data_t *data;
101 void set_name(
const char * new_name);
102 size_t maxlenof_name()
const;
104 void set_path(
const char * new_path);
105 size_t maxlenof_path()
const;
106 virtual Message * clone()
const;
113 typedef struct __attribute__((packed)) {
114 int64_t timestamp_sec;
115 int64_t timestamp_usec;
117 } DeleteObjectMessage_data_t;
119 DeleteObjectMessage_data_t *data;
129 void set_name(
const char * new_name);
130 size_t maxlenof_name()
const;
131 virtual Message * clone()
const;
138 typedef struct __attribute__((packed)) {
139 int64_t timestamp_sec;
140 int64_t timestamp_usec;
141 } DeleteAllObjectsMessage_data_t;
143 DeleteAllObjectsMessage_data_t *data;
151 virtual Message * clone()
const;
158 typedef struct __attribute__((packed)) {
159 int64_t timestamp_sec;
160 int64_t timestamp_usec;
163 } AttachObjectMessage_data_t;
165 AttachObjectMessage_data_t *data;
175 void set_name(
const char * new_name);
176 size_t maxlenof_name()
const;
177 char * manip_name()
const;
178 void set_manip_name(
const char * new_manip_name);
179 size_t maxlenof_manip_name()
const;
180 virtual Message * clone()
const;
187 typedef struct __attribute__((packed)) {
188 int64_t timestamp_sec;
189 int64_t timestamp_usec;
191 } ReleaseObjectMessage_data_t;
193 ReleaseObjectMessage_data_t *data;
203 void set_name(
const char * new_name);
204 size_t maxlenof_name()
const;
205 virtual Message * clone()
const;
212 typedef struct __attribute__((packed)) {
213 int64_t timestamp_sec;
214 int64_t timestamp_usec;
215 } ReleaseAllObjectsMessage_data_t;
217 ReleaseAllObjectsMessage_data_t *data;
225 virtual Message * clone()
const;
232 typedef struct __attribute__((packed)) {
233 int64_t timestamp_sec;
234 int64_t timestamp_usec;
239 } MoveObjectMessage_data_t;
241 MoveObjectMessage_data_t *data;
244 MoveObjectMessage(
const char * ini_name,
const float ini_x,
const float ini_y,
const float ini_z);
251 void set_name(
const char * new_name);
252 size_t maxlenof_name()
const;
254 void set_x(
const float new_x);
255 size_t maxlenof_x()
const;
257 void set_y(
const float new_y);
258 size_t maxlenof_y()
const;
260 void set_z(
const float new_z);
261 size_t maxlenof_z()
const;
262 virtual Message * clone()
const;
269 typedef struct __attribute__((packed)) {
270 int64_t timestamp_sec;
271 int64_t timestamp_usec;
277 } RotateObjectQuatMessage_data_t;
279 RotateObjectQuatMessage_data_t *data;
282 RotateObjectQuatMessage(
const char * ini_name,
const float ini_x,
const float ini_y,
const float ini_z,
const float ini_w);
289 void set_name(
const char * new_name);
290 size_t maxlenof_name()
const;
292 void set_x(
const float new_x);
293 size_t maxlenof_x()
const;
295 void set_y(
const float new_y);
296 size_t maxlenof_y()
const;
298 void set_z(
const float new_z);
299 size_t maxlenof_z()
const;
301 void set_w(
const float new_w);
302 size_t maxlenof_w()
const;
303 virtual Message * clone()
const;
310 typedef struct __attribute__((packed)) {
311 int64_t timestamp_sec;
312 int64_t timestamp_usec;
317 } RotateObjectMessage_data_t;
319 RotateObjectMessage_data_t *data;
322 RotateObjectMessage(
const char * ini_name,
const float ini_x,
const float ini_y,
const float ini_z);
329 void set_name(
const char * new_name);
330 size_t maxlenof_name()
const;
332 void set_x(
const float new_x);
333 size_t maxlenof_x()
const;
335 void set_y(
const float new_y);
336 size_t maxlenof_y()
const;
338 void set_z(
const float new_z);
339 size_t maxlenof_z()
const;
340 virtual Message * clone()
const;
347 typedef struct __attribute__((packed)) {
348 int64_t timestamp_sec;
349 int64_t timestamp_usec;
352 } RenameObjectMessage_data_t;
354 RenameObjectMessage_data_t *data;
364 void set_name(
const char * new_name);
365 size_t maxlenof_name()
const;
366 char * newName()
const;
367 void set_newName(
const char * new_newName);
368 size_t maxlenof_newName()
const;
369 virtual Message * clone()
const;
379 uint32_t
msgid()
const;
380 void set_msgid(
const uint32_t new_msgid);
394 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
RotateObjectQuatMessage Fawkes BlackBoard Interface Message.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
uint32_t error_code() const
Get error_code value.
void set_error_code(const uint32_t new_error_code)
Set error_code value.
bool is_final() const
Get final value.
void set_success(const bool new_success)
Set success value.
ReleaseAllObjectsMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_msgid() const
Get maximum length of msgid value.
Fawkes library namespace.
virtual void copy_values(const Interface *other)
Copy values from other interface.
void set_final(const bool new_final)
Set final value.
Base class for all Fawkes BlackBoard interfaces.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
RotateObjectMessage Fawkes BlackBoard Interface Message.
StartViewerMessage Fawkes BlackBoard Interface Message.
const char * type() const
Get type of interface.
void set_msgid(const uint32_t new_msgid)
Set msgid value.
AttachObjectMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_final() const
Get maximum length of final value.
DeleteAllObjectsMessage Fawkes BlackBoard Interface Message.
virtual Message * create_message(const char *type) const
Create message based on type name.
ReleaseObjectMessage Fawkes BlackBoard Interface Message.
RenameObjectMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_success() const
Get maximum length of success value.
size_t maxlenof_error_code() const
Get maximum length of error_code value.
DeleteObjectMessage Fawkes BlackBoard Interface Message.
MoveObjectMessage Fawkes BlackBoard Interface Message.
uint32_t msgid() const
Get msgid value.
bool is_success() const
Get success value.
OpenRaveInterface Fawkes BlackBoard Interface.
AddObjectMessage Fawkes BlackBoard Interface Message.