24 #include <interfaces/OpenraveRobotMemoryInterface.h>
26 #include <core/exceptions/software.h>
46 OpenraveRobotMemoryInterface::OpenraveRobotMemoryInterface() : Interface()
48 data_size =
sizeof(OpenraveRobotMemoryInterface_data_t);
49 data_ptr = malloc(data_size);
50 data = (OpenraveRobotMemoryInterface_data_t *)data_ptr;
51 data_ts = (interface_data_ts_t *)data_ptr;
52 memset(data_ptr, 0, data_size);
53 add_fieldinfo(IFT_UINT32,
"dummy", 1, &data->dummy);
54 add_messageinfo(
"ConstructSceneMessage");
55 unsigned char tmp_hash[] = {0x49, 0x41, 0x1e, 0x3, 0xf2, 0xeb, 0x23, 0xb8, 0x2a, 0x6e, 0x90, 0xc2, 0x3e, 0xe9, 0xa4, 0x24};
60 OpenraveRobotMemoryInterface::~OpenraveRobotMemoryInterface()
72 OpenraveRobotMemoryInterface::dummy()
const
82 OpenraveRobotMemoryInterface::maxlenof_dummy()
const
94 OpenraveRobotMemoryInterface::set_dummy(
const uint32_t new_dummy)
96 set_field(data->dummy, new_dummy);
101 OpenraveRobotMemoryInterface::create_message(
const char *type)
const
103 if ( strncmp(
"ConstructSceneMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
107 "message type for this interface type.", type);
116 OpenraveRobotMemoryInterface::copy_values(
const Interface *other)
121 type(), other->
type());
123 memcpy(data, oi->data,
sizeof(OpenraveRobotMemoryInterface_data_t));
127 OpenraveRobotMemoryInterface::enum_tostring(
const char *enumtype,
int val)
const
141 OpenraveRobotMemoryInterface::ConstructSceneMessage::ConstructSceneMessage() :
Message(
"ConstructSceneMessage")
143 data_size =
sizeof(ConstructSceneMessage_data_t);
146 data = (ConstructSceneMessage_data_t *)
data_ptr;
164 data = (ConstructSceneMessage_data_t *)
data_ptr;
Base class for all Fawkes BlackBoard interfaces.
const char * type() const
Get type of interface.
void * data_ptr
Pointer to local memory storage.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void * data_ptr
Pointer to memory that contains local data.
message_data_ts_t * data_ts
data timestamp aliasing pointer
unsigned int data_size
Size of memory needed to hold all data.
ConstructSceneMessage Fawkes BlackBoard Interface Message.
~ConstructSceneMessage()
Destructor.
ConstructSceneMessage()
Constructor.
virtual Message * clone() const
Clone this message.
OpenraveRobotMemoryInterface Fawkes BlackBoard Interface.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
Fawkes library namespace.
Timestamp data, must be present and first entries for each interface data structs!...