24 #include <interfaces/NavGraphGeneratorInterface.h>
26 #include <core/exceptions/software.h>
59 NavGraphGeneratorInterface::NavGraphGeneratorInterface() : Interface()
61 data_size =
sizeof(NavGraphGeneratorInterface_data_t);
62 data_ptr = malloc(data_size);
63 data = (NavGraphGeneratorInterface_data_t *)data_ptr;
64 data_ts = (interface_data_ts_t *)data_ptr;
65 memset(data_ptr, 0, data_size);
66 enum_map_ConnectionMode[(int)NOT_CONNECTED] =
"NOT_CONNECTED";
67 enum_map_ConnectionMode[(int)UNCONNECTED] =
"UNCONNECTED";
68 enum_map_ConnectionMode[(int)CLOSEST_NODE] =
"CLOSEST_NODE";
69 enum_map_ConnectionMode[(int)CLOSEST_EDGE] =
"CLOSEST_EDGE";
70 enum_map_ConnectionMode[(int)CLOSEST_EDGE_OR_NODE] =
"CLOSEST_EDGE_OR_NODE";
71 enum_map_FilterType[(int)FILTER_EDGES_BY_MAP] =
"FILTER_EDGES_BY_MAP";
72 enum_map_FilterType[(int)FILTER_ORPHAN_NODES] =
"FILTER_ORPHAN_NODES";
73 enum_map_FilterType[(int)FILTER_MULTI_GRAPH] =
"FILTER_MULTI_GRAPH";
74 enum_map_EdgeMode[(int)NO_INTERSECTION] =
"NO_INTERSECTION";
75 enum_map_EdgeMode[(int)SPLIT_INTERSECTION] =
"SPLIT_INTERSECTION";
76 enum_map_EdgeMode[(int)FORCE] =
"FORCE";
77 enum_map_Algorithm[(int)ALGORITHM_VORONOI] =
"ALGORITHM_VORONOI";
78 enum_map_Algorithm[(int)ALGORITHM_GRID] =
"ALGORITHM_GRID";
79 add_fieldinfo(IFT_UINT32,
"msgid", 1, &data->msgid);
80 add_fieldinfo(IFT_BOOL,
"final", 1, &data->final);
81 add_fieldinfo(IFT_BOOL,
"ok", 1, &data->ok);
82 add_fieldinfo(IFT_STRING,
"error_message", 128, data->error_message);
83 add_messageinfo(
"ClearMessage");
84 add_messageinfo(
"SetAlgorithmMessage");
85 add_messageinfo(
"SetAlgorithmParameterMessage");
86 add_messageinfo(
"SetBoundingBoxMessage");
87 add_messageinfo(
"SetFilterMessage");
88 add_messageinfo(
"SetFilterParamFloatMessage");
89 add_messageinfo(
"AddMapObstaclesMessage");
90 add_messageinfo(
"AddObstacleMessage");
91 add_messageinfo(
"RemoveObstacleMessage");
92 add_messageinfo(
"AddPointOfInterestMessage");
93 add_messageinfo(
"AddPointOfInterestWithOriMessage");
94 add_messageinfo(
"SetPointOfInterestPropertyMessage");
95 add_messageinfo(
"AddEdgeMessage");
96 add_messageinfo(
"SetGraphDefaultPropertyMessage");
97 add_messageinfo(
"SetCopyGraphDefaultPropertiesMessage");
98 add_messageinfo(
"RemovePointOfInterestMessage");
99 add_messageinfo(
"ComputeMessage");
100 unsigned char tmp_hash[] = {0xec, 0x52, 0xc2, 0x84, 0x36, 0x53, 0x28, 0xc3, 0xdd, 0x79, 0x9f, 0x29, 0xe0, 0x48, 0xab, 0x6};
105 NavGraphGeneratorInterface::~NavGraphGeneratorInterface()
117 case NOT_CONNECTED:
return "NOT_CONNECTED";
118 case UNCONNECTED:
return "UNCONNECTED";
119 case CLOSEST_NODE:
return "CLOSEST_NODE";
120 case CLOSEST_EDGE:
return "CLOSEST_EDGE";
121 case CLOSEST_EDGE_OR_NODE:
return "CLOSEST_EDGE_OR_NODE";
122 default:
return "UNKNOWN";
130 NavGraphGeneratorInterface::tostring_FilterType(
FilterType value)
const
133 case FILTER_EDGES_BY_MAP:
return "FILTER_EDGES_BY_MAP";
134 case FILTER_ORPHAN_NODES:
return "FILTER_ORPHAN_NODES";
135 case FILTER_MULTI_GRAPH:
return "FILTER_MULTI_GRAPH";
136 default:
return "UNKNOWN";
144 NavGraphGeneratorInterface::tostring_EdgeMode(
EdgeMode value)
const
147 case NO_INTERSECTION:
return "NO_INTERSECTION";
148 case SPLIT_INTERSECTION:
return "SPLIT_INTERSECTION";
149 case FORCE:
return "FORCE";
150 default:
return "UNKNOWN";
158 NavGraphGeneratorInterface::tostring_Algorithm(
Algorithm value)
const
161 case ALGORITHM_VORONOI:
return "ALGORITHM_VORONOI";
162 case ALGORITHM_GRID:
return "ALGORITHM_GRID";
163 default:
return "UNKNOWN";
175 NavGraphGeneratorInterface::msgid()
const
185 NavGraphGeneratorInterface::maxlenof_msgid()
const
198 NavGraphGeneratorInterface::set_msgid(
const uint32_t new_msgid)
212 NavGraphGeneratorInterface::is_final()
const
222 NavGraphGeneratorInterface::maxlenof_final()
const
236 NavGraphGeneratorInterface::set_final(
const bool new_final)
249 NavGraphGeneratorInterface::is_ok()
const
259 NavGraphGeneratorInterface::maxlenof_ok()
const
272 NavGraphGeneratorInterface::set_ok(
const bool new_ok)
285 NavGraphGeneratorInterface::error_message()
const
287 return data->error_message;
295 NavGraphGeneratorInterface::maxlenof_error_message()
const
308 NavGraphGeneratorInterface::set_error_message(
const char * new_error_message)
310 data_changed |=
change_field(data->error_message, new_error_message);
315 NavGraphGeneratorInterface::create_message(
const char *type)
const
317 if ( strncmp(
"ClearMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
319 }
else if ( strncmp(
"SetAlgorithmMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
321 }
else if ( strncmp(
"SetAlgorithmParameterMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
323 }
else if ( strncmp(
"SetBoundingBoxMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
325 }
else if ( strncmp(
"SetFilterMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
327 }
else if ( strncmp(
"SetFilterParamFloatMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
329 }
else if ( strncmp(
"AddMapObstaclesMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
331 }
else if ( strncmp(
"AddObstacleMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
333 }
else if ( strncmp(
"RemoveObstacleMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
335 }
else if ( strncmp(
"AddPointOfInterestMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
337 }
else if ( strncmp(
"AddPointOfInterestWithOriMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
339 }
else if ( strncmp(
"SetPointOfInterestPropertyMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
341 }
else if ( strncmp(
"AddEdgeMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
343 }
else if ( strncmp(
"SetGraphDefaultPropertyMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
345 }
else if ( strncmp(
"SetCopyGraphDefaultPropertiesMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
347 }
else if ( strncmp(
"RemovePointOfInterestMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
349 }
else if ( strncmp(
"ComputeMessage", type, INTERFACE_MESSAGE_TYPE_SIZE_ - 1) == 0 ) {
353 "message type for this interface type.", type);
362 NavGraphGeneratorInterface::copy_values(
const Interface *other)
367 type(), other->
type());
369 memcpy(data, oi->data,
sizeof(NavGraphGeneratorInterface_data_t));
373 NavGraphGeneratorInterface::enum_tostring(
const char *enumtype,
int val)
const
375 if (strcmp(enumtype,
"ConnectionMode") == 0) {
378 if (strcmp(enumtype,
"FilterType") == 0) {
381 if (strcmp(enumtype,
"EdgeMode") == 0) {
382 return tostring_EdgeMode((
EdgeMode)val);
384 if (strcmp(enumtype,
"Algorithm") == 0) {
385 return tostring_Algorithm((
Algorithm)val);
399 NavGraphGeneratorInterface::ClearMessage::ClearMessage() :
Message(
"ClearMessage")
404 data = (ClearMessage_data_t *)
data_ptr;
406 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
407 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
408 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
409 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
416 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
435 data = (ClearMessage_data_t *)
data_ptr;
462 data_size =
sizeof(SetAlgorithmMessage_data_t);
465 data = (SetAlgorithmMessage_data_t *)
data_ptr;
467 data->algorithm = ini_algorithm;
468 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
469 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
470 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
471 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
478 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
486 data_size =
sizeof(SetAlgorithmMessage_data_t);
489 data = (SetAlgorithmMessage_data_t *)
data_ptr;
491 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
492 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
493 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
494 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
501 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
521 data = (SetAlgorithmMessage_data_t *)
data_ptr;
579 data_size =
sizeof(SetAlgorithmParameterMessage_data_t);
582 data = (SetAlgorithmParameterMessage_data_t *)
data_ptr;
584 strncpy(data->param, ini_param, 32-1);
585 data->param[32-1] = 0;
586 strncpy(data->value, ini_value, 64-1);
587 data->value[64-1] = 0;
588 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
589 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
590 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
591 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
598 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
607 data_size =
sizeof(SetAlgorithmParameterMessage_data_t);
610 data = (SetAlgorithmParameterMessage_data_t *)
data_ptr;
612 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
613 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
614 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
615 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
622 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
643 data = (SetAlgorithmParameterMessage_data_t *)
data_ptr;
743 data_size =
sizeof(SetBoundingBoxMessage_data_t);
746 data = (SetBoundingBoxMessage_data_t *)
data_ptr;
748 data->p1_x = ini_p1_x;
749 data->p1_y = ini_p1_y;
750 data->p2_x = ini_p2_x;
751 data->p2_y = ini_p2_y;
752 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
753 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
754 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
755 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
762 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
773 data_size =
sizeof(SetBoundingBoxMessage_data_t);
776 data = (SetBoundingBoxMessage_data_t *)
data_ptr;
778 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
779 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
780 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
781 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
788 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
811 data = (SetBoundingBoxMessage_data_t *)
data_ptr;
959 data_size =
sizeof(SetFilterMessage_data_t);
962 data = (SetFilterMessage_data_t *)
data_ptr;
964 data->filter = ini_filter;
965 data->enable = ini_enable;
966 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
967 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
968 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
969 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
976 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
985 data_size =
sizeof(SetFilterMessage_data_t);
988 data = (SetFilterMessage_data_t *)
data_ptr;
990 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
991 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
992 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
993 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1000 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1021 data = (SetFilterMessage_data_t *)
data_ptr;
1066 return data->enable;
1114 data_size =
sizeof(SetFilterParamFloatMessage_data_t);
1117 data = (SetFilterParamFloatMessage_data_t *)
data_ptr;
1119 data->filter = ini_filter;
1120 strncpy(data->param, ini_param, 32-1);
1121 data->param[32-1] = 0;
1122 data->value = ini_value;
1123 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1124 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1125 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1126 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1133 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1143 data_size =
sizeof(SetFilterParamFloatMessage_data_t);
1146 data = (SetFilterParamFloatMessage_data_t *)
data_ptr;
1148 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1149 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1150 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1151 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1158 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1180 data = (SetFilterParamFloatMessage_data_t *)
data_ptr;
1303 data_size =
sizeof(AddMapObstaclesMessage_data_t);
1306 data = (AddMapObstaclesMessage_data_t *)
data_ptr;
1308 data->max_line_point_distance = ini_max_line_point_distance;
1309 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1310 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1311 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1312 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1319 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1327 data_size =
sizeof(AddMapObstaclesMessage_data_t);
1330 data = (AddMapObstaclesMessage_data_t *)
data_ptr;
1332 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1333 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1334 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1335 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1342 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1362 data = (AddMapObstaclesMessage_data_t *)
data_ptr;
1377 return data->max_line_point_distance;
1400 change_field(data->max_line_point_distance, new_max_line_point_distance);
1427 data_size =
sizeof(AddObstacleMessage_data_t);
1430 data = (AddObstacleMessage_data_t *)
data_ptr;
1432 strncpy(data->name, ini_name, 64-1);
1433 data->name[64-1] = 0;
1436 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1437 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1438 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1439 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1446 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1456 data_size =
sizeof(AddObstacleMessage_data_t);
1459 data = (AddObstacleMessage_data_t *)
data_ptr;
1461 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1462 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1463 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1464 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1471 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1493 data = (AddObstacleMessage_data_t *)
data_ptr;
1614 data_size =
sizeof(RemoveObstacleMessage_data_t);
1617 data = (RemoveObstacleMessage_data_t *)
data_ptr;
1619 strncpy(data->name, ini_name, 64-1);
1620 data->name[64-1] = 0;
1621 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1622 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1623 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1624 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1631 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1639 data_size =
sizeof(RemoveObstacleMessage_data_t);
1642 data = (RemoveObstacleMessage_data_t *)
data_ptr;
1644 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1645 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1646 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1647 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1654 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1674 data = (RemoveObstacleMessage_data_t *)
data_ptr;
1738 data_size =
sizeof(AddPointOfInterestMessage_data_t);
1741 data = (AddPointOfInterestMessage_data_t *)
data_ptr;
1743 strncpy(data->name, ini_name, 64-1);
1744 data->name[64-1] = 0;
1747 data->mode = ini_mode;
1748 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1749 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1750 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1751 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1758 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1769 data_size =
sizeof(AddPointOfInterestMessage_data_t);
1772 data = (AddPointOfInterestMessage_data_t *)
data_ptr;
1774 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1775 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1776 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1777 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1784 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1807 data = (AddPointOfInterestMessage_data_t *)
data_ptr;
1966 data_size =
sizeof(AddPointOfInterestWithOriMessage_data_t);
1969 data = (AddPointOfInterestWithOriMessage_data_t *)
data_ptr;
1971 strncpy(data->name, ini_name, 64-1);
1972 data->name[64-1] = 0;
1975 data->ori = ini_ori;
1976 data->mode = ini_mode;
1977 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
1978 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
1979 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
1980 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
1987 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
1999 data_size =
sizeof(AddPointOfInterestWithOriMessage_data_t);
2002 data = (AddPointOfInterestWithOriMessage_data_t *)
data_ptr;
2004 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2005 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2006 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2007 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2014 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2038 data = (AddPointOfInterestWithOriMessage_data_t *)
data_ptr;
2225 data_size =
sizeof(SetPointOfInterestPropertyMessage_data_t);
2228 data = (SetPointOfInterestPropertyMessage_data_t *)
data_ptr;
2230 strncpy(data->name, ini_name, 64-1);
2231 data->name[64-1] = 0;
2232 strncpy(data->property_name, ini_property_name, 64-1);
2233 data->property_name[64-1] = 0;
2234 strncpy(data->property_value, ini_property_value, 1024-1);
2235 data->property_value[1024-1] = 0;
2236 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2237 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2238 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2239 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2246 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2256 data_size =
sizeof(SetPointOfInterestPropertyMessage_data_t);
2259 data = (SetPointOfInterestPropertyMessage_data_t *)
data_ptr;
2261 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2262 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2263 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2264 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2271 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2293 data = (SetPointOfInterestPropertyMessage_data_t *)
data_ptr;
2339 return data->property_name;
2370 return data->property_value;
2391 change_field(data->property_value, new_property_value);
2419 data_size =
sizeof(AddEdgeMessage_data_t);
2422 data = (AddEdgeMessage_data_t *)
data_ptr;
2424 strncpy(data->p1, ini_p1, 64-1);
2426 strncpy(data->p2, ini_p2, 64-1);
2428 data->directed = ini_directed;
2429 data->mode = ini_mode;
2430 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2431 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2432 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2433 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2440 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2451 data_size =
sizeof(AddEdgeMessage_data_t);
2454 data = (AddEdgeMessage_data_t *)
data_ptr;
2456 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2457 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2458 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2459 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2466 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2489 data = (AddEdgeMessage_data_t *)
data_ptr;
2564 return data->directed;
2643 data_size =
sizeof(SetGraphDefaultPropertyMessage_data_t);
2646 data = (SetGraphDefaultPropertyMessage_data_t *)
data_ptr;
2648 strncpy(data->property_name, ini_property_name, 64-1);
2649 data->property_name[64-1] = 0;
2650 strncpy(data->property_value, ini_property_value, 1024-1);
2651 data->property_value[1024-1] = 0;
2652 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2653 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2654 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2655 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2662 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2671 data_size =
sizeof(SetGraphDefaultPropertyMessage_data_t);
2674 data = (SetGraphDefaultPropertyMessage_data_t *)
data_ptr;
2676 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2677 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2678 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2679 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2686 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2707 data = (SetGraphDefaultPropertyMessage_data_t *)
data_ptr;
2719 return data->property_name;
2750 return data->property_value;
2771 change_field(data->property_value, new_property_value);
2796 data_size =
sizeof(SetCopyGraphDefaultPropertiesMessage_data_t);
2799 data = (SetCopyGraphDefaultPropertiesMessage_data_t *)
data_ptr;
2801 data->enable_copy = ini_enable_copy;
2802 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2803 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2804 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2805 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2812 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2820 data_size =
sizeof(SetCopyGraphDefaultPropertiesMessage_data_t);
2823 data = (SetCopyGraphDefaultPropertiesMessage_data_t *)
data_ptr;
2825 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2826 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2827 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2828 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2835 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2855 data = (SetCopyGraphDefaultPropertiesMessage_data_t *)
data_ptr;
2868 return data->enable_copy;
2914 data_size =
sizeof(RemovePointOfInterestMessage_data_t);
2917 data = (RemovePointOfInterestMessage_data_t *)
data_ptr;
2919 strncpy(data->name, ini_name, 64-1);
2920 data->name[64-1] = 0;
2921 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2922 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2923 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2924 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2931 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2939 data_size =
sizeof(RemovePointOfInterestMessage_data_t);
2942 data = (RemovePointOfInterestMessage_data_t *)
data_ptr;
2944 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
2945 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
2946 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
2947 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
2954 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
2974 data = (RemovePointOfInterestMessage_data_t *)
data_ptr;
3033 data_size =
sizeof(ComputeMessage_data_t);
3036 data = (ComputeMessage_data_t *)
data_ptr;
3038 enum_map_ConnectionMode[(int)
NOT_CONNECTED] =
"NOT_CONNECTED";
3039 enum_map_ConnectionMode[(int)
UNCONNECTED] =
"UNCONNECTED";
3040 enum_map_ConnectionMode[(int)
CLOSEST_NODE] =
"CLOSEST_NODE";
3041 enum_map_ConnectionMode[(int)
CLOSEST_EDGE] =
"CLOSEST_EDGE";
3048 enum_map_EdgeMode[(int)
FORCE] =
"FORCE";
3067 data = (ComputeMessage_data_t *)
data_ptr;
3130 if ( m10 != NULL ) {
3134 if ( m11 != NULL ) {
3138 if ( m12 != NULL ) {
3142 if ( m13 != NULL ) {
3146 if ( m14 != NULL ) {
3150 if ( m15 != NULL ) {
3154 if ( m16 != NULL ) {