24 #include <interfaces/Laser720Interface.h>
26 #include <core/exceptions/software.h>
47 Laser720Interface::Laser720Interface() : Interface()
49 data_size =
sizeof(Laser720Interface_data_t);
51 data = (Laser720Interface_data_t *)
data_ptr;
57 unsigned char tmp_hash[] = {0xca, 0x5e, 0xf1, 0x60, 0x74, 0x77, 0x8d, 0x9b, 0x5c, 0x81, 0x53, 0x5f, 0xc1, 0xf6, 0x89, 0x69};
62 Laser720Interface::~Laser720Interface()
98 strncpy(data->frame, new_frame,
sizeof(data->frame)-1);
99 data->frame[
sizeof(data->frame)-1] = 0;
112 return data->distances;
127 throw Exception(
"Index value %u out of bounds (0..719)", index);
129 return data->distances[index];
151 memcpy(data->distances, new_distances,
sizeof(
float) * 720);
166 throw Exception(
"Index value %u out of bounds (0..719)", index);
168 data->distances[index] = new_distances;
180 return data->clockwise_angle;
202 data->clockwise_angle = new_clockwise_angle;
211 "message type for this interface type.",
type);
226 memcpy(data, oi->data,
sizeof(Laser720Interface_data_t));
232 throw UnknownTypeException(
"Unknown enum type %s", enumtype);