24 #ifndef __INTERFACES_LASERCLUSTERINTERFACE_H_ 25 #define __INTERFACES_LASERCLUSTERINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 57 typedef struct __attribute__((packed)) {
58 int64_t timestamp_sec;
59 int64_t timestamp_usec;
65 } LaserClusterInterface_data_t;
67 LaserClusterInterface_data_t *data;
76 typedef struct __attribute__((packed)) {
77 int64_t timestamp_sec;
78 int64_t timestamp_usec;
81 } SetMaxXMessage_data_t;
83 SetMaxXMessage_data_t *data;
96 virtual Message * clone()
const;
103 typedef struct __attribute__((packed)) {
104 int64_t timestamp_sec;
105 int64_t timestamp_usec;
109 } SetSelectionModeMessage_data_t;
111 SetSelectionModeMessage_data_t *data;
124 virtual Message * clone()
const;
143 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_selection_mode(const SelectionMode new_selection_mode)
Set selection_mode value.
const char * tostring_SelectionMode(SelectionMode value) const
Convert SelectionMode constant to string.
virtual Message * create_message(const char *type) const
Create message based on type name.
Choose the cluster with the minimum angle difference from 0 degrees.
LaserClusterInterface Fawkes BlackBoard Interface.
Fawkes library namespace.
SetSelectionModeMessage Fawkes BlackBoard Interface Message.
float max_x() const
Get max_x value.
SetMaxXMessage Fawkes BlackBoard Interface Message.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
Base class for all Fawkes BlackBoard interfaces.
Choose the cluster with the minimum distance in X direction of the reference frame (typically forward...
size_t maxlenof_max_x() const
Get maximum length of max_x value.
const char * type() const
Get type of interface.
size_t maxlenof_selection_mode() const
Get maximum length of selection_mode value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
void set_max_x(const float new_max_x)
Set max_x value.
SelectionMode selection_mode() const
Get selection_mode value.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
SelectionMode
Enumeration defining the possible cluster selection modes.