24 #ifndef __INTERFACES_LASERLINEINTERFACE_H_ 25 #define __INTERFACES_LASERLINEINTERFACE_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;
75 } LaserLineInterface_data_t;
77 LaserLineInterface_data_t *data;
123 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
void set_bearing(const float new_bearing)
Set bearing value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_end_point_2(unsigned int index, const float new_end_point_2)
Set end_point_2 value at given index.
void set_visibility_history(const int32_t new_visibility_history)
Set visibility_history value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
Fawkes library namespace.
void set_end_point_1(unsigned int index, const float new_end_point_1)
Set end_point_1 value at given index.
size_t maxlenof_frame_id() const
Get maximum length of frame_id value.
size_t maxlenof_line_direction() const
Get maximum length of line_direction value.
void set_length(const float new_length)
Set length value.
void set_line_direction(unsigned int index, const float new_line_direction)
Set line_direction value at given index.
float * point_on_line() const
Get point_on_line value.
char * frame_id() const
Get frame_id value.
LaserLineInterface Fawkes BlackBoard Interface.
Base class for all Fawkes BlackBoard interfaces.
size_t maxlenof_point_on_line() const
Get maximum length of point_on_line value.
float length() const
Get length value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
float * line_direction() const
Get line_direction value.
void set_point_on_line(unsigned int index, const float new_point_on_line)
Set point_on_line value at given index.
float * end_point_2() const
Get end_point_2 value.
size_t maxlenof_end_point_1() const
Get maximum length of end_point_1 value.
const char * type() const
Get type of interface.
float bearing() const
Get bearing value.
int32_t visibility_history() const
Get visibility_history value.
virtual Message * create_message(const char *type) const
Create message based on type name.
size_t maxlenof_length() const
Get maximum length of length value.
size_t maxlenof_end_point_2() const
Get maximum length of end_point_2 value.
size_t maxlenof_bearing() const
Get maximum length of bearing value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
size_t maxlenof_visibility_history() const
Get maximum length of visibility_history value.
void set_frame_id(const char *new_frame_id)
Set frame_id value.
float * end_point_1() const
Get end_point_1 value.