24 #ifndef __INTERFACES_LASER360INTERFACE_H_ 25 #define __INTERFACES_LASER360INTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 43 typedef struct __attribute__((packed)) {
44 int64_t timestamp_sec;
45 int64_t timestamp_usec;
55 } Laser360Interface_data_t;
57 Laser360Interface_data_t *data;
72 float distances(
unsigned int index)
const;
73 void set_distances(
unsigned int index,
const float new_distances);
82 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
Laser360Interface Fawkes BlackBoard Interface.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_frame() const
Get maximum length of frame value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_frame(const char *new_frame)
Set frame value.
bool is_clockwise_angle() const
Get clockwise_angle value.
void set_clockwise_angle(const bool new_clockwise_angle)
Set clockwise_angle value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
Fawkes library namespace.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
void set_distances(unsigned int index, const float new_distances)
Set distances value at given index.
Base class for all Fawkes BlackBoard interfaces.
size_t maxlenof_clockwise_angle() const
Get maximum length of clockwise_angle value.
const char * type() const
Get type of interface.
virtual Message * create_message(const char *type) const
Create message based on type name.
float * distances() const
Get distances value.
char * frame() const
Get frame value.
size_t maxlenof_distances() const
Get maximum length of distances value.