24 #include <interfaces/Position3DInterface.h>
26 #include <core/exceptions/software.h>
44 Position3DInterface::Position3DInterface() : Interface()
46 data_size =
sizeof(Position3DInterface_data_t);
48 data = (Position3DInterface_data_t *)
data_ptr;
55 unsigned char tmp_hash[] = {0xd, 0x82, 0xad, 0x13, 0x3c, 0xeb, 0x96, 0x82, 0x25, 0x6f, 0x2f, 0x62, 0xd7, 0x87, 0xec, 0x5a};
60 Position3DInterface::~Position3DInterface()
96 strncpy(data->frame, new_frame,
sizeof(data->frame));
113 return data->visibility_history;
139 data->visibility_history = new_visibility_history;
152 return data->rotation;
167 throw Exception(
"Index value %u out of bounds (0..4)", index);
169 return data->rotation[index];
191 memcpy(data->rotation, new_rotation,
sizeof(
double) * 4);
206 throw Exception(
"Index value %u out of bounds (0..4)", index);
208 data->rotation[index] = new_rotation;
220 return data->translation;
235 throw Exception(
"Index value %u out of bounds (0..3)", index);
237 return data->translation[index];
259 memcpy(data->translation, new_translation,
sizeof(
double) * 3);
274 throw Exception(
"Index value %u out of bounds (0..3)", index);
276 data->translation[index] = new_translation;
284 "message type for this interface type.", type);
299 memcpy(data, oi->data,
sizeof(Position3DInterface_data_t));