24 #ifndef __INTERFACES_VISUALDISPLAY2DINTERFACE_H_ 25 #define __INTERFACES_VISUALDISPLAY2DINTERFACE_H_ 27 #include <interface/interface.h> 28 #include <interface/message.h> 29 #include <interface/field_iterator.h> 75 int64_t timestamp_sec;
76 int64_t timestamp_usec;
78 } VisualDisplay2DInterface_data_t;
81 VisualDisplay2DInterface_data_t *data;
91 int64_t timestamp_sec;
92 int64_t timestamp_usec;
98 } AddCartLineMessage_data_t;
101 AddCartLineMessage_data_t *data;
104 AddCartLineMessage(
const float * ini_x,
const float * ini_y,
const LineStyle ini_style,
const uint8_t * ini_color);
111 float x(
unsigned int index)
const;
112 void set_x(
unsigned int index,
const float new_x);
113 void set_x(
const float * new_x);
116 float y(
unsigned int index)
const;
117 void set_y(
unsigned int index,
const float new_y);
118 void set_y(
const float * new_y);
120 LineStyle
style()
const;
121 void set_style(
const LineStyle new_style);
123 uint8_t *
color()
const;
124 uint8_t
color(
unsigned int index)
const;
125 void set_color(
unsigned int index,
const uint8_t new_color);
126 void set_color(
const uint8_t * new_color);
137 int64_t timestamp_sec;
138 int64_t timestamp_usec;
144 } AddCartCircleMessage_data_t;
147 AddCartCircleMessage_data_t *data;
150 AddCartCircleMessage(
const float ini_x,
const float ini_y,
const float ini_radius,
const LineStyle ini_style,
const uint8_t * ini_color);
157 void set_x(
const float new_x);
160 void set_y(
const float new_y);
162 float radius()
const;
163 void set_radius(
const float new_radius);
164 size_t maxlenof_radius()
const;
165 LineStyle
style()
const;
166 void set_style(
const LineStyle new_style);
168 uint8_t *
color()
const;
169 uint8_t
color(
unsigned int index)
const;
170 void set_color(
unsigned int index,
const uint8_t new_color);
171 void set_color(
const uint8_t * new_color);
182 int64_t timestamp_sec;
183 int64_t timestamp_usec;
190 } AddCartRectMessage_data_t;
193 AddCartRectMessage_data_t *data;
196 AddCartRectMessage(
const float ini_x,
const float ini_y,
const float ini_width,
const float ini_height,
const LineStyle ini_style,
const uint8_t * ini_color);
203 void set_x(
const float new_x);
206 void set_y(
const float new_y);
209 void set_width(
const float new_width);
210 size_t maxlenof_width()
const;
211 float height()
const;
212 void set_height(
const float new_height);
213 size_t maxlenof_height()
const;
214 LineStyle
style()
const;
215 void set_style(
const LineStyle new_style);
217 uint8_t *
color()
const;
218 uint8_t
color(
unsigned int index)
const;
219 void set_color(
unsigned int index,
const uint8_t new_color);
220 void set_color(
const uint8_t * new_color);
231 int64_t timestamp_sec;
232 int64_t timestamp_usec;
240 } AddCartTextMessage_data_t;
243 AddCartTextMessage_data_t *data;
246 AddCartTextMessage(
const float ini_x,
const float ini_y,
const char * ini_text,
const Anchor ini_anchor,
const float ini_size,
const uint8_t * ini_color);
253 void set_x(
const float new_x);
256 void set_y(
const float new_y);
259 void set_text(
const char * new_text);
260 size_t maxlenof_text()
const;
261 Anchor anchor()
const;
262 void set_anchor(
const Anchor new_anchor);
263 size_t maxlenof_anchor()
const;
265 void set_size(
const float new_size);
266 size_t maxlenof_size()
const;
267 uint8_t *
color()
const;
268 uint8_t
color(
unsigned int index)
const;
269 void set_color(
unsigned int index,
const uint8_t new_color);
270 void set_color(
const uint8_t * new_color);
281 int64_t timestamp_sec;
282 int64_t timestamp_usec;
285 } DeleteObjectMessage_data_t;
288 DeleteObjectMessage_data_t *data;
297 uint32_t object_id()
const;
298 void set_object_id(
const uint32_t new_object_id);
299 size_t maxlenof_object_id()
const;
309 int64_t timestamp_sec;
310 int64_t timestamp_usec;
311 } DeleteAllMessage_data_t;
314 DeleteAllMessage_data_t *data;
338 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
AddCartRectMessage Fawkes BlackBoard Interface Message.
LineStyle
Enumeration defining the possible line styles.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
size_t maxlenof_x() const
Get maximum length of x value.
size_t maxlenof_color() const
Get maximum length of color value.
const char * type() const
Get message type.
Fawkes library namespace.
AddCartCircleMessage Fawkes BlackBoard Interface Message.
Anchor
Enumeration defining the possible anchor points.
LineStyle style() const
Get style value.
size_t maxlenof_y() const
Get maximum length of y value.
Base class for all Fawkes BlackBoard interfaces.
float * x() const
Get x value.
uint8_t * color() const
Get color value.
size_t maxlenof_counter() const
Get maximum length of counter value.
AddCartTextMessage Fawkes BlackBoard Interface Message.
~AddCartLineMessage()
Destructor.
float * y() const
Get y value.
size_t maxlenof_style() const
Get maximum length of style value.
DeleteObjectMessage Fawkes BlackBoard Interface Message.
void set_color(unsigned int index, const uint8_t new_color)
Set color value at given index.
AddCartLineMessage Fawkes BlackBoard Interface Message.
void set_x(unsigned int index, const float new_x)
Set x value at given index.
const char * tostring_LineStyle(LineStyle value) const
Convert LineStyle constant to string.
uint32_t counter() const
Get counter value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
Vertically and horitontally centered.
const char * tostring_Anchor(Anchor value) const
Convert Anchor constant to string.
virtual Message * clone() const
Clone this message.
virtual Message * create_message(const char *type) const
Create message based on type name.
DeleteAllMessage Fawkes BlackBoard Interface Message.
AddCartLineMessage()
Constructor.
VisualDisplay2DInterface Fawkes BlackBoard Interface.
void set_y(unsigned int index, const float new_y)
Set y value at given index.
void set_style(const LineStyle new_style)
Set style value.
void set_counter(const uint32_t new_counter)
Set counter value.