Fawkes API
Fawkes Development Version
|
24 #include <interfaces/OpenraveRobotMemoryInterface.h>
26 #include <core/exceptions/software.h>
46 OpenraveRobotMemoryInterface::OpenraveRobotMemoryInterface() : Interface()
48 data_size =
sizeof(OpenraveRobotMemoryInterface_data_t);
50 data = (OpenraveRobotMemoryInterface_data_t *)
data_ptr;
55 unsigned char tmp_hash[] = {0x49, 0x41, 0x1e, 0x3, 0xf2, 0xeb, 0x23, 0xb8, 0x2a, 0x6e, 0x90, 0xc2, 0x3e, 0xe9, 0xa4, 0x24};
60 OpenraveRobotMemoryInterface::~OpenraveRobotMemoryInterface()
103 if ( strncmp(
"ConstructSceneMessage",
type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
107 "message type for this interface type.",
type);
123 memcpy(data, oi->data,
sizeof(OpenraveRobotMemoryInterface_data_t));
143 data_size =
sizeof(ConstructSceneMessage_data_t);
146 data = (ConstructSceneMessage_data_t *)
data_ptr;
164 data = (ConstructSceneMessage_data_t *)
data_ptr;
void * data_ptr
Pointer to local memory storage.
virtual Message * create_message(const char *type) const
Create message based on type name.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void * data_ptr
Pointer to memory that contains local data.
uint32_t dummy() const
Get dummy value.
message_data_ts_t * data_ts
data timestamp aliasing pointer
ConstructSceneMessage Fawkes BlackBoard Interface Message.
@ IFT_UINT32
32 bit unsigned integer field
const char * type() const
Get type of interface.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
Timestamp data, must be present and first entries for each interface data structs!...
bool data_changed
Indicator if data has changed.
Fawkes library namespace.
void set_hash(unsigned char *ihash)
Set hash.
unsigned int data_size
Size of memory needed to hold all data.
ConstructSceneMessage()
Constructor.
Base class for all Fawkes BlackBoard interfaces.
size_t maxlenof_dummy() const
Get maximum length of dummy value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
void add_fieldinfo(interface_fieldtype_t type, const char *name, size_t length, void *value, const char *enumtype=0, const interface_enum_map_t *enum_map=0)
Add an entry to the info list.
virtual Message * clone() const
Clone this message.
virtual void copy_values(const Interface *other)
Copy values from other interface.
void set_dummy(const uint32_t new_dummy)
Set dummy value.
~ConstructSceneMessage()
Destructor.
void add_messageinfo(const char *name)
Add an entry to the message info list.
bool change_field(FieldT &field, const DataT &value)
Set a field and return whether it changed.
OpenraveRobotMemoryInterface Fawkes BlackBoard Interface.