24 #include <interfaces/NavPathInterface.h>
26 #include <core/exceptions/software.h>
56 NavPathInterface::NavPathInterface() : Interface()
58 data_size =
sizeof(NavPathInterface_data_t);
59 data_ptr = malloc(data_size);
60 data = (NavPathInterface_data_t *)data_ptr;
61 data_ts = (interface_data_ts_t *)data_ptr;
62 memset(data_ptr, 0, data_size);
63 add_fieldinfo(IFT_STRING,
"path_node_1", 64, data->path_node_1);
64 add_fieldinfo(IFT_STRING,
"path_node_2", 64, data->path_node_2);
65 add_fieldinfo(IFT_STRING,
"path_node_3", 64, data->path_node_3);
66 add_fieldinfo(IFT_STRING,
"path_node_4", 64, data->path_node_4);
67 add_fieldinfo(IFT_STRING,
"path_node_5", 64, data->path_node_5);
68 add_fieldinfo(IFT_STRING,
"path_node_6", 64, data->path_node_6);
69 add_fieldinfo(IFT_STRING,
"path_node_7", 64, data->path_node_7);
70 add_fieldinfo(IFT_STRING,
"path_node_8", 64, data->path_node_8);
71 add_fieldinfo(IFT_STRING,
"path_node_9", 64, data->path_node_9);
72 add_fieldinfo(IFT_STRING,
"path_node_10", 64, data->path_node_10);
73 add_fieldinfo(IFT_STRING,
"path_node_11", 64, data->path_node_11);
74 add_fieldinfo(IFT_STRING,
"path_node_12", 64, data->path_node_12);
75 add_fieldinfo(IFT_STRING,
"path_node_13", 64, data->path_node_13);
76 add_fieldinfo(IFT_STRING,
"path_node_14", 64, data->path_node_14);
77 add_fieldinfo(IFT_STRING,
"path_node_15", 64, data->path_node_15);
78 add_fieldinfo(IFT_STRING,
"path_node_16", 64, data->path_node_16);
79 add_fieldinfo(IFT_STRING,
"path_node_17", 64, data->path_node_17);
80 add_fieldinfo(IFT_STRING,
"path_node_18", 64, data->path_node_18);
81 add_fieldinfo(IFT_STRING,
"path_node_19", 64, data->path_node_19);
82 add_fieldinfo(IFT_STRING,
"path_node_20", 64, data->path_node_20);
83 add_fieldinfo(IFT_STRING,
"path_node_21", 64, data->path_node_21);
84 add_fieldinfo(IFT_STRING,
"path_node_22", 64, data->path_node_22);
85 add_fieldinfo(IFT_STRING,
"path_node_23", 64, data->path_node_23);
86 add_fieldinfo(IFT_STRING,
"path_node_24", 64, data->path_node_24);
87 add_fieldinfo(IFT_STRING,
"path_node_25", 64, data->path_node_25);
88 add_fieldinfo(IFT_STRING,
"path_node_26", 64, data->path_node_26);
89 add_fieldinfo(IFT_STRING,
"path_node_27", 64, data->path_node_27);
90 add_fieldinfo(IFT_STRING,
"path_node_28", 64, data->path_node_28);
91 add_fieldinfo(IFT_STRING,
"path_node_29", 64, data->path_node_29);
92 add_fieldinfo(IFT_STRING,
"path_node_30", 64, data->path_node_30);
93 add_fieldinfo(IFT_STRING,
"path_node_31", 64, data->path_node_31);
94 add_fieldinfo(IFT_STRING,
"path_node_32", 64, data->path_node_32);
95 add_fieldinfo(IFT_STRING,
"path_node_33", 64, data->path_node_33);
96 add_fieldinfo(IFT_STRING,
"path_node_34", 64, data->path_node_34);
97 add_fieldinfo(IFT_STRING,
"path_node_35", 64, data->path_node_35);
98 add_fieldinfo(IFT_STRING,
"path_node_36", 64, data->path_node_36);
99 add_fieldinfo(IFT_STRING,
"path_node_37", 64, data->path_node_37);
100 add_fieldinfo(IFT_STRING,
"path_node_38", 64, data->path_node_38);
101 add_fieldinfo(IFT_STRING,
"path_node_39", 64, data->path_node_39);
102 add_fieldinfo(IFT_STRING,
"path_node_40", 64, data->path_node_40);
103 add_fieldinfo(IFT_UINT32,
"path_length", 1, &data->path_length);
104 unsigned char tmp_hash[] = {0x9d, 0xe, 0xdb, 0x61, 0x65, 0x94, 0x3d, 0x7a, 0x87, 0x95, 0x8f, 0x85, 0x87, 0xa4, 0x5f, 0x61};
109 NavPathInterface::~NavPathInterface()
119 NavPathInterface::path_node_1()
const
121 return data->path_node_1;
129 NavPathInterface::maxlenof_path_node_1()
const
139 NavPathInterface::set_path_node_1(
const char * new_path_node_1)
141 set_field(data->path_node_1, new_path_node_1);
149 NavPathInterface::path_node_2()
const
151 return data->path_node_2;
159 NavPathInterface::maxlenof_path_node_2()
const
169 NavPathInterface::set_path_node_2(
const char * new_path_node_2)
171 set_field(data->path_node_2, new_path_node_2);
179 NavPathInterface::path_node_3()
const
181 return data->path_node_3;
189 NavPathInterface::maxlenof_path_node_3()
const
199 NavPathInterface::set_path_node_3(
const char * new_path_node_3)
201 set_field(data->path_node_3, new_path_node_3);
209 NavPathInterface::path_node_4()
const
211 return data->path_node_4;
219 NavPathInterface::maxlenof_path_node_4()
const
229 NavPathInterface::set_path_node_4(
const char * new_path_node_4)
231 set_field(data->path_node_4, new_path_node_4);
239 NavPathInterface::path_node_5()
const
241 return data->path_node_5;
249 NavPathInterface::maxlenof_path_node_5()
const
259 NavPathInterface::set_path_node_5(
const char * new_path_node_5)
261 set_field(data->path_node_5, new_path_node_5);
269 NavPathInterface::path_node_6()
const
271 return data->path_node_6;
279 NavPathInterface::maxlenof_path_node_6()
const
289 NavPathInterface::set_path_node_6(
const char * new_path_node_6)
291 set_field(data->path_node_6, new_path_node_6);
299 NavPathInterface::path_node_7()
const
301 return data->path_node_7;
309 NavPathInterface::maxlenof_path_node_7()
const
319 NavPathInterface::set_path_node_7(
const char * new_path_node_7)
321 set_field(data->path_node_7, new_path_node_7);
329 NavPathInterface::path_node_8()
const
331 return data->path_node_8;
339 NavPathInterface::maxlenof_path_node_8()
const
349 NavPathInterface::set_path_node_8(
const char * new_path_node_8)
351 set_field(data->path_node_8, new_path_node_8);
359 NavPathInterface::path_node_9()
const
361 return data->path_node_9;
369 NavPathInterface::maxlenof_path_node_9()
const
379 NavPathInterface::set_path_node_9(
const char * new_path_node_9)
381 set_field(data->path_node_9, new_path_node_9);
389 NavPathInterface::path_node_10()
const
391 return data->path_node_10;
399 NavPathInterface::maxlenof_path_node_10()
const
409 NavPathInterface::set_path_node_10(
const char * new_path_node_10)
411 set_field(data->path_node_10, new_path_node_10);
419 NavPathInterface::path_node_11()
const
421 return data->path_node_11;
429 NavPathInterface::maxlenof_path_node_11()
const
439 NavPathInterface::set_path_node_11(
const char * new_path_node_11)
441 set_field(data->path_node_11, new_path_node_11);
449 NavPathInterface::path_node_12()
const
451 return data->path_node_12;
459 NavPathInterface::maxlenof_path_node_12()
const
469 NavPathInterface::set_path_node_12(
const char * new_path_node_12)
471 set_field(data->path_node_12, new_path_node_12);
479 NavPathInterface::path_node_13()
const
481 return data->path_node_13;
489 NavPathInterface::maxlenof_path_node_13()
const
499 NavPathInterface::set_path_node_13(
const char * new_path_node_13)
501 set_field(data->path_node_13, new_path_node_13);
509 NavPathInterface::path_node_14()
const
511 return data->path_node_14;
519 NavPathInterface::maxlenof_path_node_14()
const
529 NavPathInterface::set_path_node_14(
const char * new_path_node_14)
531 set_field(data->path_node_14, new_path_node_14);
539 NavPathInterface::path_node_15()
const
541 return data->path_node_15;
549 NavPathInterface::maxlenof_path_node_15()
const
559 NavPathInterface::set_path_node_15(
const char * new_path_node_15)
561 set_field(data->path_node_15, new_path_node_15);
569 NavPathInterface::path_node_16()
const
571 return data->path_node_16;
579 NavPathInterface::maxlenof_path_node_16()
const
589 NavPathInterface::set_path_node_16(
const char * new_path_node_16)
591 set_field(data->path_node_16, new_path_node_16);
599 NavPathInterface::path_node_17()
const
601 return data->path_node_17;
609 NavPathInterface::maxlenof_path_node_17()
const
619 NavPathInterface::set_path_node_17(
const char * new_path_node_17)
621 set_field(data->path_node_17, new_path_node_17);
629 NavPathInterface::path_node_18()
const
631 return data->path_node_18;
639 NavPathInterface::maxlenof_path_node_18()
const
649 NavPathInterface::set_path_node_18(
const char * new_path_node_18)
651 set_field(data->path_node_18, new_path_node_18);
659 NavPathInterface::path_node_19()
const
661 return data->path_node_19;
669 NavPathInterface::maxlenof_path_node_19()
const
679 NavPathInterface::set_path_node_19(
const char * new_path_node_19)
681 set_field(data->path_node_19, new_path_node_19);
689 NavPathInterface::path_node_20()
const
691 return data->path_node_20;
699 NavPathInterface::maxlenof_path_node_20()
const
709 NavPathInterface::set_path_node_20(
const char * new_path_node_20)
711 set_field(data->path_node_20, new_path_node_20);
719 NavPathInterface::path_node_21()
const
721 return data->path_node_21;
729 NavPathInterface::maxlenof_path_node_21()
const
739 NavPathInterface::set_path_node_21(
const char * new_path_node_21)
741 set_field(data->path_node_21, new_path_node_21);
749 NavPathInterface::path_node_22()
const
751 return data->path_node_22;
759 NavPathInterface::maxlenof_path_node_22()
const
769 NavPathInterface::set_path_node_22(
const char * new_path_node_22)
771 set_field(data->path_node_22, new_path_node_22);
779 NavPathInterface::path_node_23()
const
781 return data->path_node_23;
789 NavPathInterface::maxlenof_path_node_23()
const
799 NavPathInterface::set_path_node_23(
const char * new_path_node_23)
801 set_field(data->path_node_23, new_path_node_23);
809 NavPathInterface::path_node_24()
const
811 return data->path_node_24;
819 NavPathInterface::maxlenof_path_node_24()
const
829 NavPathInterface::set_path_node_24(
const char * new_path_node_24)
831 set_field(data->path_node_24, new_path_node_24);
839 NavPathInterface::path_node_25()
const
841 return data->path_node_25;
849 NavPathInterface::maxlenof_path_node_25()
const
859 NavPathInterface::set_path_node_25(
const char * new_path_node_25)
861 set_field(data->path_node_25, new_path_node_25);
869 NavPathInterface::path_node_26()
const
871 return data->path_node_26;
879 NavPathInterface::maxlenof_path_node_26()
const
889 NavPathInterface::set_path_node_26(
const char * new_path_node_26)
891 set_field(data->path_node_26, new_path_node_26);
899 NavPathInterface::path_node_27()
const
901 return data->path_node_27;
909 NavPathInterface::maxlenof_path_node_27()
const
919 NavPathInterface::set_path_node_27(
const char * new_path_node_27)
921 set_field(data->path_node_27, new_path_node_27);
929 NavPathInterface::path_node_28()
const
931 return data->path_node_28;
939 NavPathInterface::maxlenof_path_node_28()
const
949 NavPathInterface::set_path_node_28(
const char * new_path_node_28)
951 set_field(data->path_node_28, new_path_node_28);
959 NavPathInterface::path_node_29()
const
961 return data->path_node_29;
969 NavPathInterface::maxlenof_path_node_29()
const
979 NavPathInterface::set_path_node_29(
const char * new_path_node_29)
981 set_field(data->path_node_29, new_path_node_29);
989 NavPathInterface::path_node_30()
const
991 return data->path_node_30;
999 NavPathInterface::maxlenof_path_node_30()
const
1009 NavPathInterface::set_path_node_30(
const char * new_path_node_30)
1011 set_field(data->path_node_30, new_path_node_30);
1019 NavPathInterface::path_node_31()
const
1021 return data->path_node_31;
1029 NavPathInterface::maxlenof_path_node_31()
const
1039 NavPathInterface::set_path_node_31(
const char * new_path_node_31)
1041 set_field(data->path_node_31, new_path_node_31);
1049 NavPathInterface::path_node_32()
const
1051 return data->path_node_32;
1059 NavPathInterface::maxlenof_path_node_32()
const
1069 NavPathInterface::set_path_node_32(
const char * new_path_node_32)
1071 set_field(data->path_node_32, new_path_node_32);
1079 NavPathInterface::path_node_33()
const
1081 return data->path_node_33;
1089 NavPathInterface::maxlenof_path_node_33()
const
1099 NavPathInterface::set_path_node_33(
const char * new_path_node_33)
1101 set_field(data->path_node_33, new_path_node_33);
1109 NavPathInterface::path_node_34()
const
1111 return data->path_node_34;
1119 NavPathInterface::maxlenof_path_node_34()
const
1129 NavPathInterface::set_path_node_34(
const char * new_path_node_34)
1131 set_field(data->path_node_34, new_path_node_34);
1139 NavPathInterface::path_node_35()
const
1141 return data->path_node_35;
1149 NavPathInterface::maxlenof_path_node_35()
const
1159 NavPathInterface::set_path_node_35(
const char * new_path_node_35)
1161 set_field(data->path_node_35, new_path_node_35);
1169 NavPathInterface::path_node_36()
const
1171 return data->path_node_36;
1179 NavPathInterface::maxlenof_path_node_36()
const
1189 NavPathInterface::set_path_node_36(
const char * new_path_node_36)
1191 set_field(data->path_node_36, new_path_node_36);
1199 NavPathInterface::path_node_37()
const
1201 return data->path_node_37;
1209 NavPathInterface::maxlenof_path_node_37()
const
1219 NavPathInterface::set_path_node_37(
const char * new_path_node_37)
1221 set_field(data->path_node_37, new_path_node_37);
1229 NavPathInterface::path_node_38()
const
1231 return data->path_node_38;
1239 NavPathInterface::maxlenof_path_node_38()
const
1249 NavPathInterface::set_path_node_38(
const char * new_path_node_38)
1251 set_field(data->path_node_38, new_path_node_38);
1259 NavPathInterface::path_node_39()
const
1261 return data->path_node_39;
1269 NavPathInterface::maxlenof_path_node_39()
const
1279 NavPathInterface::set_path_node_39(
const char * new_path_node_39)
1281 set_field(data->path_node_39, new_path_node_39);
1289 NavPathInterface::path_node_40()
const
1291 return data->path_node_40;
1299 NavPathInterface::maxlenof_path_node_40()
const
1309 NavPathInterface::set_path_node_40(
const char * new_path_node_40)
1311 set_field(data->path_node_40, new_path_node_40);
1319 NavPathInterface::path_length()
const
1321 return data->path_length;
1329 NavPathInterface::maxlenof_path_length()
const
1339 NavPathInterface::set_path_length(
const uint32_t new_path_length)
1341 set_field(data->path_length, new_path_length);
1346 NavPathInterface::create_message(
const char *type)
const
1349 "message type for this interface type.", type);
1362 type(), other->
type());
1364 memcpy(data, oi->data,
sizeof(NavPathInterface_data_t));
1368 NavPathInterface::enum_tostring(
const char *enumtype,
int val)
const
1379 NavPathInterface::message_valid(
const Message *message)
const
Base class for all Fawkes BlackBoard interfaces.
const char * type() const
Get type of interface.
Base class for all messages passed through interfaces in Fawkes BlackBoard.
NavPathInterface Fawkes BlackBoard Interface.
Fawkes library namespace.