diff --git a/src/Navigations/Cores/move_base_core/include/move_base_core/navigation.h b/src/Navigations/Cores/move_base_core/include/move_base_core/navigation.h index 977059d..7a9057c 100755 --- a/src/Navigations/Cores/move_base_core/include/move_base_core/navigation.h +++ b/src/Navigations/Cores/move_base_core/include/move_base_core/navigation.h @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -252,6 +253,21 @@ namespace robot */ virtual void addStaticMap(const std::string &topic, robot_nav_msgs::OccupancyGrid map) = 0; + /** + * @brief Hand in a route graph compiled offline from the static map (see + * robot_sensor_msgs/RouteGraph). Optional: a global planner that can use one reads + * it from the shared sensor store; without it every planner behaves as before. + * + * @param topic Store KEY, same rule as @ref addStaticMap: must match an entry in + * `sensor_store_params.yaml` (by convention `/route_graph`) and the topic the + * consumer is configured with. Unknown key = dropped with one log line. + * @param graph The graph. Its `width/height/resolution/origin` and `map_hash` must + * describe the map passed to @ref addStaticMap; the consumer verifies that + * against its live static layer and rejects a mismatch. Push it AFTER the + * static map it belongs to. + */ + virtual void addRouteGraph(const std::string &topic, robot_sensor_msgs::RouteGraph graph) = 0; + /** * @brief Add a laser scan to the navigation system. * @param topic Logical topic this scan arrives on. See @ref addStaticMap for what