24 #ifndef __INTERFACES_KICKERINTERFACE_H_ 25 #define __INTERFACES_KICKERINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 59 typedef struct __attribute__((packed)) {
60 int64_t timestamp_sec;
61 int64_t timestamp_usec;
76 } KickerInterface_data_t;
78 KickerInterface_data_t *data;
87 typedef struct __attribute__((packed)) {
88 int64_t timestamp_sec;
89 int64_t timestamp_usec;
96 KickMessage_data_t *data;
100 KickMessage(
const bool ini_left,
const bool ini_center,
const bool ini_right,
const uint32_t ini_intensity);
106 bool is_left()
const;
107 void set_left(
const bool new_left);
108 size_t maxlenof_left()
const;
109 bool is_center()
const;
110 void set_center(
const bool new_center);
111 size_t maxlenof_center()
const;
112 bool is_right()
const;
113 void set_right(
const bool new_right);
114 size_t maxlenof_right()
const;
115 uint32_t intensity()
const;
116 void set_intensity(
const uint32_t new_intensity);
117 size_t maxlenof_intensity()
const;
118 virtual Message * clone()
const;
125 typedef struct __attribute__((packed)) {
126 int64_t timestamp_sec;
127 int64_t timestamp_usec;
128 } ResetCounterMessage_data_t;
130 ResetCounterMessage_data_t *data;
139 virtual Message * clone()
const;
146 typedef struct __attribute__((packed)) {
147 int64_t timestamp_sec;
148 int64_t timestamp_usec;
150 } GuideBallMessage_data_t;
152 GuideBallMessage_data_t *data;
165 virtual Message * clone()
const;
193 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
const char * tostring_GuideBallSideEnum(GuideBallSideEnum value) const
Convert GuideBallSideEnum constant to string.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
Fawkes library namespace.
void set_num_kicks_left(const int32_t new_num_kicks_left)
Set num_kicks_left value.
Base class for all Fawkes BlackBoard interfaces.
GuideBallMessage Fawkes BlackBoard Interface Message.
void set_current_intensity(const uint32_t new_current_intensity)
Set current_intensity value.
void set_num_kicks_right(const int32_t new_num_kicks_right)
Set num_kicks_right value.
void set_num_kicks_center(const int32_t new_num_kicks_center)
Set num_kicks_center value.
int32_t num_kicks_right() const
Get num_kicks_right value.
const char * type() const
Get type of interface.
size_t maxlenof_num_kicks_right() const
Get maximum length of num_kicks_right value.
KickMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_num_kicks_center() const
Get maximum length of num_kicks_center value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
ResetCounterMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_current_intensity() const
Get maximum length of current_intensity value.
KickerInterface Fawkes BlackBoard Interface.
Constant defining that the kicker shall activate the ball guidance device in such a way that the left...
size_t maxlenof_guide_ball_side() const
Get maximum length of guide_ball_side value.
GuideBallSideEnum guide_ball_side() const
Get guide_ball_side value.
GuideBallSideEnum
Enumeration defining on which side of the robot the ball shall be guided (and thus on which side the ...
virtual Message * create_message(const char *type) const
Create message based on type name.
virtual void copy_values(const Interface *other)
Copy values from other interface.
void set_guide_ball_side(const GuideBallSideEnum new_guide_ball_side)
Set guide_ball_side value.
Constant defining that the kicker shall activate the ball guidance device in such a way that the righ...
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_num_kicks_left() const
Get maximum length of num_kicks_left value.
uint32_t current_intensity() const
Get current_intensity value.
int32_t num_kicks_left() const
Get num_kicks_left value.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
int32_t num_kicks_center() const
Get num_kicks_center value.