Fawkes API
Fawkes Development Version
|
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>
58 int64_t timestamp_sec;
59 int64_t timestamp_usec;
65 } LaserClusterInterface_data_t;
67 LaserClusterInterface_data_t *data;
77 int64_t timestamp_sec;
78 int64_t timestamp_usec;
81 } SetMaxXMessage_data_t;
83 SetMaxXMessage_data_t *data;
104 int64_t timestamp_sec;
105 int64_t timestamp_usec;
109 } SetSelectionModeMessage_data_t;
111 SetSelectionModeMessage_data_t *data;
143 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
virtual void copy_values(const Interface *other)
Copy values from other interface.
SetMaxXMessage()
Constructor.
SetMaxXMessage Fawkes BlackBoard Interface Message.
void set_max_x(const float new_max_x)
Set max_x value.
size_t maxlenof_selection_mode() const
Get maximum length of selection_mode value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
@ SELMODE_MIN_DIST
Choose the cluster with the minimum distance in X direction of the reference frame (typically forward...
SelectionMode
Enumeration defining the possible cluster selection modes.
SetSelectionModeMessage()
Constructor.
const char * type() const
Get type of interface.
virtual Message * clone() const
Clone this message.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
SetSelectionModeMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_selection_mode() const
Get maximum length of selection_mode value.
virtual Message * create_message(const char *type) const
Create message based on type name.
size_t maxlenof_max_x() const
Get maximum length of max_x value.
void set_selection_mode(const SelectionMode new_selection_mode)
Set selection_mode value.
Fawkes library namespace.
void set_selection_mode(const SelectionMode new_selection_mode)
Set selection_mode value.
float max_x() const
Get max_x value.
~SetMaxXMessage()
Destructor.
const char * tostring_SelectionMode(SelectionMode value) const
Convert SelectionMode constant to string.
Base class for all Fawkes BlackBoard interfaces.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
SelectionMode selection_mode() const
Get selection_mode value.
~SetSelectionModeMessage()
Destructor.
float max_x() const
Get max_x value.
void set_max_x(const float new_max_x)
Set max_x value.
LaserClusterInterface Fawkes BlackBoard Interface.
@ SELMODE_MIN_ANGLE
Choose the cluster with the minimum angle difference from 0 degrees.
SelectionMode selection_mode() const
Get selection_mode value.
size_t maxlenof_max_x() const
Get maximum length of max_x value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
virtual Message * clone() const
Clone this message.