Take stop signs into account during routing
This commit is contained in:
@@ -65,7 +65,7 @@ BOOST_AUTO_TEST_CASE(long_road_test)
|
||||
GraphCompressor compressor;
|
||||
|
||||
std::unordered_set<NodeID> barrier_nodes;
|
||||
TrafficSignals traffic_lights;
|
||||
TrafficFlowControlNodes traffic_lights;
|
||||
std::vector<TurnRestriction> restrictions;
|
||||
std::vector<NodeBasedEdgeAnnotation> annotations(1);
|
||||
CompressedEdgeContainer container;
|
||||
@@ -111,7 +111,7 @@ BOOST_AUTO_TEST_CASE(loop_test)
|
||||
GraphCompressor compressor;
|
||||
|
||||
std::unordered_set<NodeID> barrier_nodes;
|
||||
TrafficSignals traffic_lights;
|
||||
TrafficFlowControlNodes traffic_lights;
|
||||
std::vector<TurnRestriction> restrictions;
|
||||
CompressedEdgeContainer container;
|
||||
std::vector<NodeBasedEdgeAnnotation> annotations(1);
|
||||
@@ -174,7 +174,7 @@ BOOST_AUTO_TEST_CASE(t_intersection)
|
||||
GraphCompressor compressor;
|
||||
|
||||
std::unordered_set<NodeID> barrier_nodes;
|
||||
TrafficSignals traffic_lights;
|
||||
TrafficFlowControlNodes traffic_lights;
|
||||
std::vector<NodeBasedEdgeAnnotation> annotations(1);
|
||||
std::vector<TurnRestriction> restrictions;
|
||||
CompressedEdgeContainer container;
|
||||
@@ -217,7 +217,7 @@ BOOST_AUTO_TEST_CASE(street_name_changes)
|
||||
GraphCompressor compressor;
|
||||
|
||||
std::unordered_set<NodeID> barrier_nodes;
|
||||
TrafficSignals traffic_lights;
|
||||
TrafficFlowControlNodes traffic_lights;
|
||||
std::vector<NodeBasedEdgeAnnotation> annotations(2);
|
||||
std::vector<TurnRestriction> restrictions;
|
||||
CompressedEdgeContainer container;
|
||||
@@ -255,7 +255,7 @@ BOOST_AUTO_TEST_CASE(direction_changes)
|
||||
GraphCompressor compressor;
|
||||
|
||||
std::unordered_set<NodeID> barrier_nodes;
|
||||
TrafficSignals traffic_lights;
|
||||
TrafficFlowControlNodes traffic_lights;
|
||||
std::vector<NodeBasedEdgeAnnotation> annotations(1);
|
||||
std::vector<TurnRestriction> restrictions;
|
||||
CompressedEdgeContainer container;
|
||||
|
||||
@@ -19,7 +19,7 @@ using Graph = util::NodeBasedDynamicGraph;
|
||||
BOOST_AUTO_TEST_CASE(simple_intersection_connectivity)
|
||||
{
|
||||
std::unordered_set<NodeID> barrier_nodes{6};
|
||||
TrafficSignals traffic_lights;
|
||||
TrafficFlowControlNodes traffic_lights;
|
||||
std::vector<NodeBasedEdgeAnnotation> annotations{
|
||||
{EMPTY_NAMEID, 0, INAVLID_CLASS_DATA, TRAVEL_MODE_DRIVING, false},
|
||||
{EMPTY_NAMEID, 1, INAVLID_CLASS_DATA, TRAVEL_MODE_DRIVING, false}};
|
||||
@@ -152,7 +152,7 @@ BOOST_AUTO_TEST_CASE(simple_intersection_connectivity)
|
||||
BOOST_AUTO_TEST_CASE(roundabout_intersection_connectivity)
|
||||
{
|
||||
std::unordered_set<NodeID> barrier_nodes;
|
||||
TrafficSignals traffic_lights;
|
||||
TrafficFlowControlNodes traffic_lights;
|
||||
std::vector<NodeBasedEdgeAnnotation> annotations;
|
||||
std::vector<TurnRestriction> restrictions;
|
||||
CompressedEdgeContainer container;
|
||||
@@ -259,7 +259,7 @@ BOOST_AUTO_TEST_CASE(roundabout_intersection_connectivity)
|
||||
BOOST_AUTO_TEST_CASE(skip_degree_two_nodes)
|
||||
{
|
||||
std::unordered_set<NodeID> barrier_nodes{1};
|
||||
TrafficSignals traffic_lights = {{2}, {}};
|
||||
TrafficFlowControlNodes traffic_lights = {{2}, {}};
|
||||
std::vector<NodeBasedEdgeAnnotation> annotations(1);
|
||||
std::vector<TurnRestriction> restrictions;
|
||||
CompressedEdgeContainer container;
|
||||
|
||||
Reference in New Issue
Block a user