24 #include <interfaces/VisualDisplay2DInterface.h> 26 #include <core/exceptions/software.h> 59 VisualDisplay2DInterface::VisualDisplay2DInterface() : Interface()
61 data_size =
sizeof(VisualDisplay2DInterface_data_t);
63 data = (VisualDisplay2DInterface_data_t *)
data_ptr;
66 enum_map_LineStyle[(int)LS_SOLID] =
"LS_SOLID";
67 enum_map_LineStyle[(int)LS_DASHED] =
"LS_DASHED";
68 enum_map_LineStyle[(int)LS_DOTTED] =
"LS_DOTTED";
69 enum_map_LineStyle[(int)LS_DASH_DOTTED] =
"LS_DASH_DOTTED";
70 enum_map_Anchor[(int)CENTERED] =
"CENTERED";
71 enum_map_Anchor[(int)NORTH] =
"NORTH";
72 enum_map_Anchor[(int)EAST] =
"EAST";
73 enum_map_Anchor[(int)SOUTH] =
"SOUTH";
74 enum_map_Anchor[(int)WEST] =
"WEST";
75 enum_map_Anchor[(int)NORTH_EAST] =
"NORTH_EAST";
76 enum_map_Anchor[(int)SOUTH_EAST] =
"SOUTH_EAST";
77 enum_map_Anchor[(int)SOUTH_WEST] =
"SOUTH_WEST";
78 enum_map_Anchor[(int)NORTH_WEST] =
"NORTH_WEST";
86 unsigned char tmp_hash[] = {0xd9, 0x2, 0xad, 0xbb, 0x7a, 0x47, 0x40, 0x6a, 0x4f, 0x6d, 0xfa, 0xa, 0x20, 0x35, 0xe6, 0x1};
91 VisualDisplay2DInterface::~VisualDisplay2DInterface()
103 case LS_SOLID:
return "LS_SOLID";
104 case LS_DASHED:
return "LS_DASHED";
105 case LS_DOTTED:
return "LS_DOTTED";
106 case LS_DASH_DOTTED:
return "LS_DASH_DOTTED";
107 default:
return "UNKNOWN";
118 case CENTERED:
return "CENTERED";
119 case NORTH:
return "NORTH";
120 case EAST:
return "EAST";
121 case SOUTH:
return "SOUTH";
122 case WEST:
return "WEST";
123 case NORTH_EAST:
return "NORTH_EAST";
124 case SOUTH_EAST:
return "SOUTH_EAST";
125 case SOUTH_WEST:
return "SOUTH_WEST";
126 case NORTH_WEST:
return "NORTH_WEST";
127 default:
return "UNKNOWN";
138 return data->counter;
158 data->counter = new_counter;
166 if ( strncmp(
"AddCartLineMessage", type, __INTERFACE_MESSAGE_TYPE_SIZE) == 0 ) {
168 }
else if ( strncmp(
"AddCartCircleMessage", type, __INTERFACE_MESSAGE_TYPE_SIZE) == 0 ) {
170 }
else if ( strncmp(
"AddCartRectMessage", type, __INTERFACE_MESSAGE_TYPE_SIZE) == 0 ) {
172 }
else if ( strncmp(
"AddCartTextMessage", type, __INTERFACE_MESSAGE_TYPE_SIZE) == 0 ) {
174 }
else if ( strncmp(
"DeleteObjectMessage", type, __INTERFACE_MESSAGE_TYPE_SIZE) == 0 ) {
176 }
else if ( strncmp(
"DeleteAllMessage", type, __INTERFACE_MESSAGE_TYPE_SIZE) == 0 ) {
180 "message type for this interface type.", type);
196 memcpy(data, oi->data,
sizeof(VisualDisplay2DInterface_data_t));
202 if (strcmp(enumtype,
"LineStyle") == 0) {
203 return tostring_LineStyle((
LineStyle)val);
205 if (strcmp(enumtype,
"Anchor") == 0) {
206 return tostring_Anchor((
Anchor)val);
227 data_size =
sizeof(AddCartLineMessage_data_t);
230 data = (AddCartLineMessage_data_t *)
data_ptr;
232 memcpy(data->x, ini_x,
sizeof(
float) * 2);
233 memcpy(data->y, ini_y,
sizeof(
float) * 2);
234 data->style = ini_style;
235 memcpy(data->color, ini_color,
sizeof(uint8_t) * 4);
236 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
237 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
238 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
240 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
241 enum_map_Anchor[(int)
NORTH] =
"NORTH";
242 enum_map_Anchor[(int)
EAST] =
"EAST";
243 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
244 enum_map_Anchor[(int)
WEST] =
"WEST";
245 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
246 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
247 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
248 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
257 data_size =
sizeof(AddCartLineMessage_data_t);
260 data = (AddCartLineMessage_data_t *)
data_ptr;
262 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
263 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
264 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
266 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
267 enum_map_Anchor[(int)
NORTH] =
"NORTH";
268 enum_map_Anchor[(int)
EAST] =
"EAST";
269 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
270 enum_map_Anchor[(int)
WEST] =
"WEST";
271 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
272 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
273 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
274 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
295 data = (AddCartLineMessage_data_t *)
data_ptr;
320 throw Exception(
"Index value %u out of bounds (0..2)", index);
322 return data->x[index];
342 memcpy(data->x, new_x,
sizeof(
float) * 2);
354 throw Exception(
"Index value %u out of bounds (0..2)", index);
356 data->x[index] = new_x;
380 throw Exception(
"Index value %u out of bounds (0..2)", index);
382 return data->y[index];
403 memcpy(data->y, new_y,
sizeof(
float) * 2);
416 throw Exception(
"Index value %u out of bounds (0..2)", index);
418 data->y[index] = new_y;
447 data->style = new_style;
470 throw Exception(
"Index value %u out of bounds (0..4)", index);
472 return data->color[index];
492 memcpy(data->color, new_color,
sizeof(uint8_t) * 4);
504 throw Exception(
"Index value %u out of bounds (0..4)", index);
506 data->color[index] = new_color;
534 data_size =
sizeof(AddCartCircleMessage_data_t);
537 data = (AddCartCircleMessage_data_t *)
data_ptr;
541 data->radius = ini_radius;
542 data->style = ini_style;
543 memcpy(data->color, ini_color,
sizeof(uint8_t) * 4);
544 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
545 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
546 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
548 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
549 enum_map_Anchor[(int)
NORTH] =
"NORTH";
550 enum_map_Anchor[(int)
EAST] =
"EAST";
551 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
552 enum_map_Anchor[(int)
WEST] =
"WEST";
553 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
554 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
555 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
556 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
566 data_size =
sizeof(AddCartCircleMessage_data_t);
569 data = (AddCartCircleMessage_data_t *)
data_ptr;
571 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
572 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
573 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
575 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
576 enum_map_Anchor[(int)
NORTH] =
"NORTH";
577 enum_map_Anchor[(int)
EAST] =
"EAST";
578 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
579 enum_map_Anchor[(int)
WEST] =
"WEST";
580 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
581 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
582 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
583 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
605 data = (AddCartCircleMessage_data_t *)
data_ptr;
697 data->radius = new_radius;
727 data->style = new_style;
750 throw Exception(
"Index value %u out of bounds (0..4)", index);
752 return data->color[index];
772 memcpy(data->color, new_color,
sizeof(uint8_t) * 4);
784 throw Exception(
"Index value %u out of bounds (0..4)", index);
786 data->color[index] = new_color;
815 data_size =
sizeof(AddCartRectMessage_data_t);
818 data = (AddCartRectMessage_data_t *)
data_ptr;
822 data->width = ini_width;
823 data->height = ini_height;
824 data->style = ini_style;
825 memcpy(data->color, ini_color,
sizeof(uint8_t) * 4);
826 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
827 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
828 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
830 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
831 enum_map_Anchor[(int)
NORTH] =
"NORTH";
832 enum_map_Anchor[(int)
EAST] =
"EAST";
833 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
834 enum_map_Anchor[(int)
WEST] =
"WEST";
835 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
836 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
837 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
838 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
849 data_size =
sizeof(AddCartRectMessage_data_t);
852 data = (AddCartRectMessage_data_t *)
data_ptr;
854 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
855 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
856 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
858 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
859 enum_map_Anchor[(int)
NORTH] =
"NORTH";
860 enum_map_Anchor[(int)
EAST] =
"EAST";
861 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
862 enum_map_Anchor[(int)
WEST] =
"WEST";
863 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
864 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
865 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
866 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
889 data = (AddCartRectMessage_data_t *)
data_ptr;
981 data->width = new_width;
1011 data->height = new_height;
1041 data->style = new_style;
1064 throw Exception(
"Index value %u out of bounds (0..4)", index);
1066 return data->color[index];
1086 memcpy(data->color, new_color,
sizeof(uint8_t) * 4);
1098 throw Exception(
"Index value %u out of bounds (0..4)", index);
1100 data->color[index] = new_color;
1129 data_size =
sizeof(AddCartTextMessage_data_t);
1132 data = (AddCartTextMessage_data_t *)
data_ptr;
1136 strncpy(data->text, ini_text, 128);
1137 data->anchor = ini_anchor;
1138 data->size = ini_size;
1139 memcpy(data->color, ini_color,
sizeof(uint8_t) * 4);
1140 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
1141 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
1142 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
1144 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
1145 enum_map_Anchor[(int)
NORTH] =
"NORTH";
1146 enum_map_Anchor[(int)
EAST] =
"EAST";
1147 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
1148 enum_map_Anchor[(int)
WEST] =
"WEST";
1149 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
1150 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
1151 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
1152 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
1163 data_size =
sizeof(AddCartTextMessage_data_t);
1166 data = (AddCartTextMessage_data_t *)
data_ptr;
1168 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
1169 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
1170 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
1172 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
1173 enum_map_Anchor[(int)
NORTH] =
"NORTH";
1174 enum_map_Anchor[(int)
EAST] =
"EAST";
1175 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
1176 enum_map_Anchor[(int)
WEST] =
"WEST";
1177 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
1178 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
1179 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
1180 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
1203 data = (AddCartTextMessage_data_t *)
data_ptr;
1295 strncpy(data->text, new_text,
sizeof(data->text));
1327 data->anchor = new_anchor;
1357 data->size = new_size;
1380 throw Exception(
"Index value %u out of bounds (0..4)", index);
1382 return data->color[index];
1402 memcpy(data->color, new_color,
sizeof(uint8_t) * 4);
1414 throw Exception(
"Index value %u out of bounds (0..4)", index);
1416 data->color[index] = new_color;
1440 data_size =
sizeof(DeleteObjectMessage_data_t);
1443 data = (DeleteObjectMessage_data_t *)
data_ptr;
1445 data->object_id = ini_object_id;
1446 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
1447 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
1448 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
1450 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
1451 enum_map_Anchor[(int)
NORTH] =
"NORTH";
1452 enum_map_Anchor[(int)
EAST] =
"EAST";
1453 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
1454 enum_map_Anchor[(int)
WEST] =
"WEST";
1455 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
1456 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
1457 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
1458 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
1464 data_size =
sizeof(DeleteObjectMessage_data_t);
1467 data = (DeleteObjectMessage_data_t *)
data_ptr;
1469 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
1470 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
1471 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
1473 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
1474 enum_map_Anchor[(int)
NORTH] =
"NORTH";
1475 enum_map_Anchor[(int)
EAST] =
"EAST";
1476 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
1477 enum_map_Anchor[(int)
WEST] =
"WEST";
1478 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
1479 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
1480 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
1481 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
1499 data = (DeleteObjectMessage_data_t *)
data_ptr;
1512 return data->object_id;
1533 data->object_id = new_object_id;
1556 data_size =
sizeof(DeleteAllMessage_data_t);
1559 data = (DeleteAllMessage_data_t *)
data_ptr;
1561 enum_map_LineStyle[(int)
LS_SOLID] =
"LS_SOLID";
1562 enum_map_LineStyle[(int)
LS_DASHED] =
"LS_DASHED";
1563 enum_map_LineStyle[(int)
LS_DOTTED] =
"LS_DOTTED";
1565 enum_map_Anchor[(int)
CENTERED] =
"CENTERED";
1566 enum_map_Anchor[(int)
NORTH] =
"NORTH";
1567 enum_map_Anchor[(int)
EAST] =
"EAST";
1568 enum_map_Anchor[(int)
SOUTH] =
"SOUTH";
1569 enum_map_Anchor[(int)
WEST] =
"WEST";
1570 enum_map_Anchor[(int)
NORTH_EAST] =
"NORTH_EAST";
1571 enum_map_Anchor[(int)
SOUTH_EAST] =
"SOUTH_EAST";
1572 enum_map_Anchor[(int)
SOUTH_WEST] =
"SOUTH_WEST";
1573 enum_map_Anchor[(int)
NORTH_WEST] =
"NORTH_WEST";
1590 data = (DeleteAllMessage_data_t *)
data_ptr;
AddCartRectMessage Fawkes BlackBoard Interface Message.
LineStyle
Enumeration defining the possible line styles.
size_t maxlenof_counter() const
Get maximum length of counter value.
AddCartTextMessage()
Constructor.
DeleteAllMessage()
Constructor.
void set_anchor(const Anchor new_anchor)
Set anchor value.
void set_y(const float new_y)
Set y value.
void * data_ptr
Pointer to memory that contains local data.
size_t maxlenof_x() const
Get maximum length of x value.
size_t maxlenof_x() const
Get maximum length of x value.
size_t maxlenof_anchor() const
Get maximum length of anchor value.
size_t maxlenof_color() const
Get maximum length of color value.
float x() const
Get x value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
uint8_t * color() const
Get color value.
size_t maxlenof_y() const
Get maximum length of y value.
float y() const
Get y value.
uint8_t * color() const
Get color value.
float size() const
Get size value.
void set_x(const float new_x)
Set x value.
void set_hash(unsigned char *ihash)
Set hash.
size_t maxlenof_y() const
Get maximum length of y value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
Fawkes library namespace.
uint8_t * color() const
Get color value.
const char * tostring_Anchor(Anchor value) const
Convert Anchor constant to string.
Anchor anchor() const
Get anchor value.
size_t maxlenof_radius() const
Get maximum length of radius value.
Timestamp data, must be present and first entries for each interface data structs! This leans on time...
AddCartCircleMessage Fawkes BlackBoard Interface Message.
void set_radius(const float new_radius)
Set radius value.
virtual Message * clone() const
Clone this message.
unsigned int data_size
Minimal data size to hold data storage.
~AddCartCircleMessage()
Destructor.
Anchor
Enumeration defining the possible anchor points.
size_t maxlenof_height() const
Get maximum length of height value.
uint8_t * color() const
Get color value.
size_t maxlenof_y() const
Get maximum length of y value.
size_t maxlenof_text() const
Get maximum length of text value.
~AddCartTextMessage()
Destructor.
char * text() const
Get text value.
size_t maxlenof_object_id() const
Get maximum length of object_id value.
LineStyle style() const
Get style value.
byte field, alias for uint8
float width() const
Get width value.
virtual Message * clone() const
Clone this message.
Base class for all Fawkes BlackBoard interfaces.
float x() const
Get x value.
void set_style(const LineStyle new_style)
Set style value.
void set_color(unsigned int index, const uint8_t new_color)
Set color value at given index.
float * y() const
Get y value.
AddCartTextMessage Fawkes BlackBoard Interface Message.
AddCartRectMessage()
Constructor.
size_t maxlenof_y() const
Get maximum length of y value.
~AddCartLineMessage()
Destructor.
size_t maxlenof_x() const
Get maximum length of x value.
message_data_ts_t * data_ts
data timestamp aliasing pointer
void add_fieldinfo(interface_fieldtype_t type, const char *name, size_t length, void *value, const char *enumtype=0, const interface_enum_map_t *enum_map=0)
Add an entry to the field info list.
unsigned int data_size
Size of memory needed to hold all data.
size_t maxlenof_color() const
Get maximum length of color value.
virtual Message * clone() const
Clone this message.
uint32_t object_id() const
Get object_id value.
void add_messageinfo(const char *name)
Add an entry to the message info list.
uint32_t counter() const
Get counter value.
DeleteObjectMessage Fawkes BlackBoard Interface Message.
bool data_changed
Indicator if data has changed.
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.
const char * type() const
Get type of interface.
void * data_ptr
Pointer to local memory storage.
virtual Message * clone() const
Clone this message.
Base class for exceptions in Fawkes.
size_t maxlenof_style() const
Get maximum length of style value.
float height() const
Get height value.
~DeleteAllMessage()
Destructor.
AddCartLineMessage Fawkes BlackBoard Interface Message.
void set_height(const float new_height)
Set height value.
size_t maxlenof_color() const
Get maximum length of color value.
void set_x(unsigned int index, const float new_x)
Set x value at given index.
LineStyle style() const
Get style value.
float * x() const
Get x value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
size_t maxlenof_width() const
Get maximum length of width value.
void set_y(const float new_y)
Set y value.
~AddCartRectMessage()
Destructor.
virtual Message * clone() const
Clone this message.
size_t maxlenof_style() const
Get maximum length of style value.
void set_style(const LineStyle new_style)
Set style value.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
void set_x(const float new_x)
Set x value.
Vertically and horitontally centered.
size_t maxlenof_size() const
Get maximum length of size value.
AddCartCircleMessage()
Constructor.
void set_color(unsigned int index, const uint8_t new_color)
Set color value at given index.
void set_object_id(const uint32_t new_object_id)
Set object_id value.
~DeleteObjectMessage()
Destructor.
size_t maxlenof_x() const
Get maximum length of x value.
void set_size(const float new_size)
Set size value.
size_t maxlenof_style() const
Get maximum length of style value.
void set_color(unsigned int index, const uint8_t new_color)
Set color value at given index.
float x() const
Get x value.
void set_width(const float new_width)
Set width value.
void set_y(const float new_y)
Set y value.
const char * tostring_LineStyle(LineStyle value) const
Convert LineStyle constant to string.
float radius() const
Get radius value.
virtual Message * create_message(const char *type) const
Create message based on type name.
float y() const
Get y value.
DeleteAllMessage Fawkes BlackBoard Interface Message.
LineStyle style() const
Get style value.
void set_text(const char *new_text)
Set text value.
interface_data_ts_t * data_ts
Pointer to data casted to timestamp struct.
void add_fieldinfo(interface_fieldtype_t type, const char *name, size_t length, void *value, const char *enumtype=0, const interface_enum_map_t *enum_map=0)
Add an entry to the info list.
AddCartLineMessage()
Constructor.
VisualDisplay2DInterface Fawkes BlackBoard Interface.
float y() const
Get y value.
virtual Message * clone() const
Clone this message.
32 bit unsigned integer field
field with interface specific enum type
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.
DeleteObjectMessage()
Constructor.
size_t maxlenof_color() const
Get maximum length of color value.
void set_counter(const uint32_t new_counter)
Set counter value.