24 #include <interfaces/NavPathInterface.h> 26 #include <core/exceptions/software.h> 56 NavPathInterface::NavPathInterface() : Interface()
58 data_size =
sizeof(NavPathInterface_data_t);
60 data = (NavPathInterface_data_t *)
data_ptr;
104 unsigned char tmp_hash[] = {0x9d, 0xe, 0xdb, 0x61, 0x65, 0x94, 0x3d, 0x7a, 0x87, 0x95, 0x8f, 0x85, 0x87, 0xa4, 0x5f, 0x61};
109 NavPathInterface::~NavPathInterface()
121 return data->path_node_1;
141 strncpy(data->path_node_1, new_path_node_1,
sizeof(data->path_node_1));
152 return data->path_node_2;
172 strncpy(data->path_node_2, new_path_node_2,
sizeof(data->path_node_2));
183 return data->path_node_3;
203 strncpy(data->path_node_3, new_path_node_3,
sizeof(data->path_node_3));
214 return data->path_node_4;
234 strncpy(data->path_node_4, new_path_node_4,
sizeof(data->path_node_4));
245 return data->path_node_5;
265 strncpy(data->path_node_5, new_path_node_5,
sizeof(data->path_node_5));
276 return data->path_node_6;
296 strncpy(data->path_node_6, new_path_node_6,
sizeof(data->path_node_6));
307 return data->path_node_7;
327 strncpy(data->path_node_7, new_path_node_7,
sizeof(data->path_node_7));
338 return data->path_node_8;
358 strncpy(data->path_node_8, new_path_node_8,
sizeof(data->path_node_8));
369 return data->path_node_9;
389 strncpy(data->path_node_9, new_path_node_9,
sizeof(data->path_node_9));
400 return data->path_node_10;
420 strncpy(data->path_node_10, new_path_node_10,
sizeof(data->path_node_10));
431 return data->path_node_11;
451 strncpy(data->path_node_11, new_path_node_11,
sizeof(data->path_node_11));
462 return data->path_node_12;
482 strncpy(data->path_node_12, new_path_node_12,
sizeof(data->path_node_12));
493 return data->path_node_13;
513 strncpy(data->path_node_13, new_path_node_13,
sizeof(data->path_node_13));
524 return data->path_node_14;
544 strncpy(data->path_node_14, new_path_node_14,
sizeof(data->path_node_14));
555 return data->path_node_15;
575 strncpy(data->path_node_15, new_path_node_15,
sizeof(data->path_node_15));
586 return data->path_node_16;
606 strncpy(data->path_node_16, new_path_node_16,
sizeof(data->path_node_16));
617 return data->path_node_17;
637 strncpy(data->path_node_17, new_path_node_17,
sizeof(data->path_node_17));
648 return data->path_node_18;
668 strncpy(data->path_node_18, new_path_node_18,
sizeof(data->path_node_18));
679 return data->path_node_19;
699 strncpy(data->path_node_19, new_path_node_19,
sizeof(data->path_node_19));
710 return data->path_node_20;
730 strncpy(data->path_node_20, new_path_node_20,
sizeof(data->path_node_20));
741 return data->path_node_21;
761 strncpy(data->path_node_21, new_path_node_21,
sizeof(data->path_node_21));
772 return data->path_node_22;
792 strncpy(data->path_node_22, new_path_node_22,
sizeof(data->path_node_22));
803 return data->path_node_23;
823 strncpy(data->path_node_23, new_path_node_23,
sizeof(data->path_node_23));
834 return data->path_node_24;
854 strncpy(data->path_node_24, new_path_node_24,
sizeof(data->path_node_24));
865 return data->path_node_25;
885 strncpy(data->path_node_25, new_path_node_25,
sizeof(data->path_node_25));
896 return data->path_node_26;
916 strncpy(data->path_node_26, new_path_node_26,
sizeof(data->path_node_26));
927 return data->path_node_27;
947 strncpy(data->path_node_27, new_path_node_27,
sizeof(data->path_node_27));
958 return data->path_node_28;
978 strncpy(data->path_node_28, new_path_node_28,
sizeof(data->path_node_28));
989 return data->path_node_29;
1009 strncpy(data->path_node_29, new_path_node_29,
sizeof(data->path_node_29));
1020 return data->path_node_30;
1040 strncpy(data->path_node_30, new_path_node_30,
sizeof(data->path_node_30));
1051 return data->path_node_31;
1071 strncpy(data->path_node_31, new_path_node_31,
sizeof(data->path_node_31));
1082 return data->path_node_32;
1102 strncpy(data->path_node_32, new_path_node_32,
sizeof(data->path_node_32));
1113 return data->path_node_33;
1133 strncpy(data->path_node_33, new_path_node_33,
sizeof(data->path_node_33));
1144 return data->path_node_34;
1164 strncpy(data->path_node_34, new_path_node_34,
sizeof(data->path_node_34));
1175 return data->path_node_35;
1195 strncpy(data->path_node_35, new_path_node_35,
sizeof(data->path_node_35));
1206 return data->path_node_36;
1226 strncpy(data->path_node_36, new_path_node_36,
sizeof(data->path_node_36));
1237 return data->path_node_37;
1257 strncpy(data->path_node_37, new_path_node_37,
sizeof(data->path_node_37));
1268 return data->path_node_38;
1288 strncpy(data->path_node_38, new_path_node_38,
sizeof(data->path_node_38));
1299 return data->path_node_39;
1319 strncpy(data->path_node_39, new_path_node_39,
sizeof(data->path_node_39));
1330 return data->path_node_40;
1350 strncpy(data->path_node_40, new_path_node_40,
sizeof(data->path_node_40));
1361 return data->path_length;
1381 data->path_length = new_path_length;
1390 "message type for this interface type.", type);
1405 memcpy(data, oi->data,
sizeof(NavPathInterface_data_t));
size_t maxlenof_path_node_12() const
Get maximum length of path_node_12 value.
char * path_node_16() const
Get path_node_16 value.
virtual Message * create_message(const char *type) const
Create message based on type name.
size_t maxlenof_path_node_3() const
Get maximum length of path_node_3 value.
void set_path_node_37(const char *new_path_node_37)
Set path_node_37 value.
size_t maxlenof_path_node_9() const
Get maximum length of path_node_9 value.
char * path_node_22() const
Get path_node_22 value.
void set_path_node_29(const char *new_path_node_29)
Set path_node_29 value.
void * data_ptr
Pointer to memory that contains local data.
virtual bool message_valid(const Message *message) const
Check if message is valid and can be enqueued.
size_t maxlenof_path_node_34() const
Get maximum length of path_node_34 value.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
void set_path_node_26(const char *new_path_node_26)
Set path_node_26 value.
void set_path_node_14(const char *new_path_node_14)
Set path_node_14 value.
virtual const char * enum_tostring(const char *enumtype, int val) const
Convert arbitrary enum value to string.
size_t maxlenof_path_node_17() const
Get maximum length of path_node_17 value.
void set_path_node_16(const char *new_path_node_16)
Set path_node_16 value.
char * path_node_38() const
Get path_node_38 value.
void set_path_node_1(const char *new_path_node_1)
Set path_node_1 value.
void set_path_node_15(const char *new_path_node_15)
Set path_node_15 value.
char * path_node_12() const
Get path_node_12 value.
void set_hash(unsigned char *ihash)
Set hash.
void set_path_node_27(const char *new_path_node_27)
Set path_node_27 value.
void set_path_node_19(const char *new_path_node_19)
Set path_node_19 value.
size_t maxlenof_path_node_27() const
Get maximum length of path_node_27 value.
char * path_node_18() const
Get path_node_18 value.
Fawkes library namespace.
char * path_node_15() const
Get path_node_15 value.
char * path_node_28() const
Get path_node_28 value.
void set_path_node_6(const char *new_path_node_6)
Set path_node_6 value.
size_t maxlenof_path_length() const
Get maximum length of path_length value.
size_t maxlenof_path_node_16() const
Get maximum length of path_node_16 value.
size_t maxlenof_path_node_7() const
Get maximum length of path_node_7 value.
char * path_node_2() const
Get path_node_2 value.
char * path_node_10() const
Get path_node_10 value.
void set_path_node_18(const char *new_path_node_18)
Set path_node_18 value.
size_t maxlenof_path_node_38() const
Get maximum length of path_node_38 value.
void set_path_node_30(const char *new_path_node_30)
Set path_node_30 value.
char * path_node_5() const
Get path_node_5 value.
void set_path_node_25(const char *new_path_node_25)
Set path_node_25 value.
char * path_node_25() const
Get path_node_25 value.
size_t maxlenof_path_node_15() const
Get maximum length of path_node_15 value.
void set_path_node_36(const char *new_path_node_36)
Set path_node_36 value.
Base class for all Fawkes BlackBoard interfaces.
void set_path_node_11(const char *new_path_node_11)
Set path_node_11 value.
char * path_node_35() const
Get path_node_35 value.
char * path_node_29() const
Get path_node_29 value.
char * path_node_14() const
Get path_node_14 value.
void set_path_node_24(const char *new_path_node_24)
Set path_node_24 value.
void set_path_node_28(const char *new_path_node_28)
Set path_node_28 value.
message_data_ts_t * data_ts
data timestamp aliasing pointer
void set_path_node_22(const char *new_path_node_22)
Set path_node_22 value.
size_t maxlenof_path_node_1() const
Get maximum length of path_node_1 value.
unsigned int data_size
Size of memory needed to hold all data.
void set_path_node_35(const char *new_path_node_35)
Set path_node_35 value.
char * path_node_8() const
Get path_node_8 value.
size_t maxlenof_path_node_28() const
Get maximum length of path_node_28 value.
char * path_node_39() const
Get path_node_39 value.
char * path_node_4() const
Get path_node_4 value.
bool data_changed
Indicator if data has changed.
void set_path_node_32(const char *new_path_node_32)
Set path_node_32 value.
char * path_node_30() const
Get path_node_30 value.
char * path_node_24() const
Get path_node_24 value.
void set_path_node_31(const char *new_path_node_31)
Set path_node_31 value.
void set_path_node_13(const char *new_path_node_13)
Set path_node_13 value.
size_t maxlenof_path_node_25() const
Get maximum length of path_node_25 value.
size_t maxlenof_path_node_24() const
Get maximum length of path_node_24 value.
const char * type() const
Get type of interface.
char * path_node_1() const
Get path_node_1 value.
void set_path_node_17(const char *new_path_node_17)
Set path_node_17 value.
size_t maxlenof_path_node_6() const
Get maximum length of path_node_6 value.
void set_path_node_40(const char *new_path_node_40)
Set path_node_40 value.
void set_path_node_38(const char *new_path_node_38)
Set path_node_38 value.
char * path_node_23() const
Get path_node_23 value.
char * path_node_17() const
Get path_node_17 value.
void set_path_node_12(const char *new_path_node_12)
Set path_node_12 value.
char * path_node_26() const
Get path_node_26 value.
char * path_node_37() const
Get path_node_37 value.
size_t maxlenof_path_node_29() const
Get maximum length of path_node_29 value.
char * path_node_34() const
Get path_node_34 value.
char * path_node_7() const
Get path_node_7 value.
char * path_node_20() const
Get path_node_20 value.
void set_path_node_2(const char *new_path_node_2)
Set path_node_2 value.
size_t maxlenof_path_node_21() const
Get maximum length of path_node_21 value.
void set_path_length(const uint32_t new_path_length)
Set path_length value.
size_t maxlenof_path_node_23() const
Get maximum length of path_node_23 value.
size_t maxlenof_path_node_14() const
Get maximum length of path_node_14 value.
char * path_node_21() const
Get path_node_21 value.
char * path_node_33() const
Get path_node_33 value.
char * path_node_3() const
Get path_node_3 value.
char * path_node_13() const
Get path_node_13 value.
void set_path_node_10(const char *new_path_node_10)
Set path_node_10 value.
char * path_node_32() const
Get path_node_32 value.
size_t maxlenof_path_node_10() const
Get maximum length of path_node_10 value.
void set_path_node_4(const char *new_path_node_4)
Set path_node_4 value.
size_t maxlenof_path_node_20() const
Get maximum length of path_node_20 value.
size_t maxlenof_path_node_31() const
Get maximum length of path_node_31 value.
size_t maxlenof_path_node_35() const
Get maximum length of path_node_35 value.
size_t maxlenof_path_node_18() const
Get maximum length of path_node_18 value.
void set_path_node_9(const char *new_path_node_9)
Set path_node_9 value.
size_t maxlenof_path_node_30() const
Get maximum length of path_node_30 value.
char * path_node_31() const
Get path_node_31 value.
char * path_node_9() const
Get path_node_9 value.
size_t maxlenof_path_node_8() const
Get maximum length of path_node_8 value.
char * path_node_27() const
Get path_node_27 value.
size_t maxlenof_path_node_19() const
Get maximum length of path_node_19 value.
size_t maxlenof_path_node_13() const
Get maximum length of path_node_13 value.
char * path_node_11() const
Get path_node_11 value.
size_t maxlenof_path_node_4() const
Get maximum length of path_node_4 value.
size_t maxlenof_path_node_33() const
Get maximum length of path_node_33 value.
char * path_node_40() const
Get path_node_40 value.
void set_path_node_34(const char *new_path_node_34)
Set path_node_34 value.
size_t maxlenof_path_node_32() const
Get maximum length of path_node_32 value.
void set_path_node_33(const char *new_path_node_33)
Set path_node_33 value.
void set_path_node_20(const char *new_path_node_20)
Set path_node_20 value.
void set_path_node_21(const char *new_path_node_21)
Set path_node_21 value.
uint32_t path_length() const
Get path_length value.
void set_path_node_8(const char *new_path_node_8)
Set path_node_8 value.
void set_path_node_7(const char *new_path_node_7)
Set path_node_7 value.
size_t maxlenof_path_node_39() const
Get maximum length of path_node_39 value.
void set_path_node_23(const char *new_path_node_23)
Set path_node_23 value.
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.
NavPathInterface Fawkes BlackBoard Interface.
void set_path_node_5(const char *new_path_node_5)
Set path_node_5 value.
void set_path_node_39(const char *new_path_node_39)
Set path_node_39 value.
size_t maxlenof_path_node_5() const
Get maximum length of path_node_5 value.
void set_path_node_3(const char *new_path_node_3)
Set path_node_3 value.
char * path_node_36() const
Get path_node_36 value.
const char * type() const
Get message type.
char * path_node_19() const
Get path_node_19 value.
char * path_node_6() const
Get path_node_6 value.
size_t maxlenof_path_node_40() const
Get maximum length of path_node_40 value.
size_t maxlenof_path_node_36() const
Get maximum length of path_node_36 value.
virtual void copy_values(const Interface *other)
Copy values from other interface.
32 bit unsigned integer field
size_t maxlenof_path_node_22() const
Get maximum length of path_node_22 value.
size_t maxlenof_path_node_2() const
Get maximum length of path_node_2 value.
size_t maxlenof_path_node_26() const
Get maximum length of path_node_26 value.
size_t maxlenof_path_node_37() const
Get maximum length of path_node_37 value.
size_t maxlenof_path_node_11() const
Get maximum length of path_node_11 value.