24 #include <interfaces/Laser360Interface.h>
26 #include <core/exceptions/software.h>
48 Laser360Interface::Laser360Interface() : Interface()
50 data_size =
sizeof(Laser360Interface_data_t);
52 data = (Laser360Interface_data_t *)
data_ptr;
58 unsigned char tmp_hash[] = {0x5c, 0x1, 0x85, 0x24, 0x85, 0x28, 0x1f, 0xc6, 0xae, 0x4c, 0x46, 0x66, 0xe9, 0xcb, 0xe9, 0x4e};
63 Laser360Interface::~Laser360Interface()
99 strncpy(data->frame, new_frame,
sizeof(data->frame));
112 return data->distances;
127 throw Exception(
"Index value %u out of bounds (0..360)", index);
129 return data->distances[index];
151 memcpy(data->distances, new_distances,
sizeof(
float) * 360);
166 throw Exception(
"Index value %u out of bounds (0..360)", 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(Laser360Interface_data_t));