parent
026f71934b
commit
b24f5c7c1a
@ -20,11 +20,13 @@ namespace guidance
|
|||||||
{
|
{
|
||||||
inline void print(const engine::guidance::RouteStep &step)
|
inline void print(const engine::guidance::RouteStep &step)
|
||||||
{
|
{
|
||||||
|
const auto lanes = step.intersections.front().lanes;
|
||||||
|
|
||||||
std::cout << static_cast<int>(step.maneuver.instruction.type) << " "
|
std::cout << static_cast<int>(step.maneuver.instruction.type) << " "
|
||||||
<< static_cast<int>(step.maneuver.instruction.direction_modifier) << " "
|
<< static_cast<int>(step.maneuver.instruction.direction_modifier) << " "
|
||||||
<< static_cast<int>(step.maneuver.waypoint_type) << " "
|
<< static_cast<int>(step.maneuver.waypoint_type) << " "
|
||||||
<< " Lanes: (" << static_cast<int>(step.maneuver.lanes.lanes_in_turn) << ", "
|
<< " Lanes: (" << static_cast<int>(lanes.lanes_in_turn) << ", "
|
||||||
<< static_cast<int>(step.maneuver.lanes.first_lane_from_the_right) << ")"
|
<< static_cast<int>(lanes.first_lane_from_the_right) << ")"
|
||||||
<< " Duration: " << step.duration << " Distance: " << step.distance
|
<< " Duration: " << step.duration << " Distance: " << step.distance
|
||||||
<< " Geometry: " << step.geometry_begin << " " << step.geometry_end
|
<< " Geometry: " << step.geometry_begin << " " << step.geometry_end
|
||||||
<< " exit: " << step.maneuver.exit << " Intersections: " << step.intersections.size()
|
<< " exit: " << step.maneuver.exit << " Intersections: " << step.intersections.size()
|
||||||
|
@ -22,6 +22,9 @@
|
|||||||
#include "util/static_graph.hpp"
|
#include "util/static_graph.hpp"
|
||||||
#include "util/static_rtree.hpp"
|
#include "util/static_rtree.hpp"
|
||||||
|
|
||||||
|
// Keep debug include to make sure the debug header is in sync with types.
|
||||||
|
#include "util/debug.hpp"
|
||||||
|
|
||||||
#include "extractor/tarjan_scc.hpp"
|
#include "extractor/tarjan_scc.hpp"
|
||||||
|
|
||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
|
Loading…
Reference in New Issue
Block a user