Program Listing for File RouteBuilder.h

Return to documentation for file (include/lanelet2_routing/internal/RouteBuilder.h)

#pragma once
#include "lanelet2_routing/LaneletPath.h"
#include "lanelet2_routing/Route.h"
#include "lanelet2_routing/internal/Graph.h"

namespace lanelet {
namespace routing {
class RoutingGraph;

namespace internal {
class RouteBuilder {
 public:
  explicit RouteBuilder(const RoutingGraphGraph& g) : graph_{g} {}
  Optional<Route> getRouteFromShortestPath(const LaneletPath& path, bool withLaneChanges = true,
                                           RoutingCostId costId = 0);

 private:
  const RoutingGraphGraph& graph_;
};

}  // namespace internal
}  // namespace routing
}  // namespace lanelet