Fawkes API
Fawkes Development Version
|
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>
74 int64_t timestamp_sec;
75 int64_t timestamp_usec;
77 } VisualDisplay2DInterface_data_t;
79 VisualDisplay2DInterface_data_t *data;
90 int64_t timestamp_sec;
91 int64_t timestamp_usec;
97 } AddCartLineMessage_data_t;
99 AddCartLineMessage_data_t *data;
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);
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);
136 int64_t timestamp_sec;
137 int64_t timestamp_usec;
143 } AddCartCircleMessage_data_t;
145 AddCartCircleMessage_data_t *data;
157 void set_x(
const float new_x);
160 void set_y(
const float new_y);
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);
181 int64_t timestamp_sec;
182 int64_t timestamp_usec;
189 } AddCartRectMessage_data_t;
191 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);
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);
230 int64_t timestamp_sec;
231 int64_t timestamp_usec;
239 } AddCartTextMessage_data_t;
241 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);
265 void set_size(
const float new_size);
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);
280 int64_t timestamp_sec;
281 int64_t timestamp_usec;
284 } DeleteObjectMessage_data_t;
286 DeleteObjectMessage_data_t *data;
308 int64_t timestamp_sec;
309 int64_t timestamp_usec;
310 } DeleteAllMessage_data_t;
312 DeleteAllMessage_data_t *data;
338 virtual const char *
enum_tostring(
const char *enumtype,
int val)
const;
void set_x(unsigned int index, const float new_x)
Set x value at given index.
size_t maxlenof_color() const
Get maximum length of color value.
size_t maxlenof_text() const
Get maximum length of text value.
size_t maxlenof_y() const
Get maximum length of y value.
AddCartRectMessage Fawkes BlackBoard Interface Message.
uint8_t * color() const
Get color value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
size_t maxlenof_object_id() const
Get maximum length of object_id value.
void set_anchor(const Anchor new_anchor)
Set anchor value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_color() const
Get maximum length of color value.
size_t maxlenof_x() const
Get maximum length of x value.
@ LS_DASH_DOTTED
Dashed and dotted line.
float size() const
Get size value.
void set_size(const float new_size)
Set size value.
void set_counter(const uint32_t new_counter)
Set counter value.
size_t maxlenof_width() const
Get maximum length of width value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
DeleteObjectMessage Fawkes BlackBoard Interface Message.
uint8_t * color() const
Get color value.
void set_x(const float new_x)
Set x value.
void set_color(unsigned int index, const uint8_t new_color)
Set color value at given index.
size_t maxlenof_style() const
Get maximum length of style value.
size_t maxlenof_radius() const
Get maximum length of radius value.
void set_text(const char *new_text)
Set text value.
void set_radius(const float new_radius)
Set radius value.
void set_y(const float new_y)
Set y value.
float x() const
Get x value.
void set_y(unsigned int index, const float new_y)
Set y value at given index.
const char * type() const
Get type of interface.
~AddCartTextMessage()
Destructor.
~AddCartLineMessage()
Destructor.
float y() const
Get y value.
void set_style(const LineStyle new_style)
Set style value.
~AddCartCircleMessage()
Destructor.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_y() const
Get maximum length of y value.
VisualDisplay2DInterface Fawkes BlackBoard Interface.
size_t maxlenof_color() const
Get maximum length of color value.
AddCartTextMessage Fawkes BlackBoard Interface Message.
size_t maxlenof_x() const
Get maximum length of x value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
void set_color(unsigned int index, const uint8_t new_color)
Set color value at given index.
DeleteAllMessage Fawkes BlackBoard Interface Message.
const char * tostring_Anchor(Anchor value) const
Convert Anchor constant to string.
virtual Message * clone() const
Clone this message.
~DeleteAllMessage()
Destructor.
@ CENTERED
Vertically and horitontally centered.
void set_object_id(const uint32_t new_object_id)
Set object_id value.
void set_style(const LineStyle new_style)
Set style value.
float width() const
Get width value.
AddCartLineMessage()
Constructor.
~DeleteObjectMessage()
Destructor.
uint32_t counter() const
Get counter value.
float * y() const
Get y value.
AddCartLineMessage Fawkes BlackBoard Interface Message.
DeleteAllMessage()
Constructor.
size_t maxlenof_x() const
Get maximum length of x value.
float y() const
Get y value.
void set_x(const float new_x)
Set x value.
float height() const
Get height value.
virtual Message * clone() const
Clone this message.
Fawkes library namespace.
size_t maxlenof_color() const
Get maximum length of color value.
virtual Message * create_message(const char *type) const
Create message based on type name.
AddCartRectMessage()
Constructor.
void set_height(const float new_height)
Set height value.
@ SOUTH_EAST
Bottom right.
float x() const
Get x value.
void set_x(const float new_x)
Set x value.
size_t maxlenof_y() const
Get maximum length of y value.
DeleteObjectMessage()
Constructor.
Base class for all Fawkes BlackBoard interfaces.
LineStyle style() const
Get style value.
size_t maxlenof_anchor() const
Get maximum length of anchor value.
void set_style(const LineStyle new_style)
Set style value.
std::map< int, std::string > interface_enum_map_t
Map of enum integer to string values.
virtual Message * clone() const
Clone this message.
size_t maxlenof_y() const
Get maximum length of y value.
size_t maxlenof_size() const
Get maximum length of size value.
LineStyle style() const
Get style value.
float * x() const
Get x value.
uint32_t object_id() const
Get object_id value.
void set_width(const float new_width)
Set width value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_style() const
Get maximum length of style value.
char * text() const
Get text value.
uint8_t * color() const
Get color value.
float x() const
Get x value.
AddCartCircleMessage Fawkes BlackBoard Interface Message.
const char * tostring_LineStyle(LineStyle value) const
Convert LineStyle constant to string.
AddCartCircleMessage()
Constructor.
float y() const
Get y value.
virtual Message * clone() const
Clone this message.
size_t maxlenof_style() const
Get maximum length of style value.
LineStyle style() const
Get style value.
AddCartTextMessage()
Constructor.
void set_color(unsigned int index, const uint8_t new_color)
Set color value at given index.
~AddCartRectMessage()
Destructor.
LineStyle
Enumeration defining the possible line styles.
size_t maxlenof_counter() const
Get maximum length of counter value.
size_t maxlenof_x() const
Get maximum length of x value.
void set_y(const float new_y)
Set y value.
float radius() const
Get radius value.
void set_color(unsigned int index, const uint8_t new_color)
Set color value at given index.
Anchor anchor() const
Get anchor value.
uint8_t * color() const
Get color value.
Anchor
Enumeration defining the possible anchor points.
void set_y(const float new_y)
Set y value.
size_t maxlenof_height() const
Get maximum length of height value.