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()
96 data->dummy = new_dummy;
104 if ( strncmp(
"ConstructSceneMessage",
type, INTERFACE_MESSAGE_TYPE_SIZE_) == 0 ) {
108 "message type for this interface type.",
type);
124 memcpy(data, oi->data,
sizeof(OpenraveRobotMemoryInterface_data_t));
144 data_size =
sizeof(ConstructSceneMessage_data_t);
147 data = (ConstructSceneMessage_data_t *)
data_ptr;
165 data = (ConstructSceneMessage_data_t *)
data_ptr;
void * data_ptr
Pointer to memory that contains local data.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
virtual void copy_values(const Interface *other)
Copy values from other interface.
void set_hash(unsigned char *ihash)
Set hash.
Fawkes library namespace.
Timestamp data, must be present and first entries for each interface data structs!...
ConstructSceneMessage Fawkes BlackBoard Interface Message.
Base class for all Fawkes BlackBoard interfaces.
virtual Message * create_message(const char *type) const
Create message based on type name.
message_data_ts_t * data_ts
data timestamp aliasing pointer
unsigned int data_size
Size of memory needed to hold all data.
void add_messageinfo(const char *name)
Add an entry to the message info list.
bool data_changed
Indicator if data has changed.
const char * type() const
Get type of interface.
ConstructSceneMessage()
Constructor.
void * data_ptr
Pointer to local memory storage.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
void set_dummy(const uint32_t new_dummy)
Set dummy value.
uint32_t dummy() const
Get dummy value.
OpenraveRobotMemoryInterface Fawkes BlackBoard Interface.
~ConstructSceneMessage()
Destructor.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
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.
size_t maxlenof_dummy() const
Get maximum length of dummy value.
virtual Message * clone() const
Clone this message.
32 bit unsigned integer field