Skip to content

Commit

Permalink
Fixed bug with new JucntionScenarioManager (#873)
Browse files Browse the repository at this point in the history
Co-authored-by: Guillermo <g.loepzdiest@gmail.com>
  • Loading branch information
glopezdiest and Guillermo authored Mar 23, 2022
1 parent e86b492 commit 38cec5a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions srunner/scenarios/actor_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def _create_behavior(self):

sequence = py_trees.composites.Sequence()
if self.route_mode:
sequence.add_child(JunctionScenarioManager('left', True, False, True))
sequence.add_child(JunctionScenarioManager('left', False))

grp = GlobalRoutePlanner(CarlaDataProvider.get_map(), 2.0)
route = grp.trace_route(source_wp.transform.location, sink_wp.transform.location)
Expand Down Expand Up @@ -208,7 +208,7 @@ def _create_behavior(self):

sequence = py_trees.composites.Sequence()
if self.route_mode:
sequence.add_child(JunctionScenarioManager('opposite', True, True, True))
sequence.add_child(JunctionScenarioManager('opposite', True))
sequence.add_child(StopEntries())
sequence.add_child(root)

Expand Down
2 changes: 1 addition & 1 deletion srunner/scenarios/opposite_vehicle_taking_priority.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def _create_behavior(self):

root = py_trees.composites.Sequence()
if self.route_mode:
root.add_child(JunctionScenarioManager(self._direction, True, True, True))
root.add_child(JunctionScenarioManager(self._direction, True))
root.add_child(ActorTransformSetter(self.other_actors[0], self._spawn_location))
root.add_child(main_behavior)
root.add_child(ActorDestroy(self.other_actors[0]))
Expand Down
2 changes: 1 addition & 1 deletion srunner/scenarios/signalized_junction_left_turn.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _create_behavior(self):

sequence = py_trees.composites.Sequence(name="SignalizedJunctionLeftTurn")
if self.route_mode:
sequence.add_child(JunctionScenarioManager(self._direction, True, True, True))
sequence.add_child(JunctionScenarioManager(self._direction, True))
sequence.add_child(root)

return sequence
Expand Down
2 changes: 1 addition & 1 deletion srunner/scenarios/signalized_junction_right_turn.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _create_behavior(self):

sequence = py_trees.composites.Sequence(name="SignalizedJunctionRightTurn")
if self.route_mode:
sequence.add_child(JunctionScenarioManager(self._direction, True, False, True))
sequence.add_child(JunctionScenarioManager(self._direction, False))
sequence.add_child(root)

return sequence
Expand Down

0 comments on commit 38cec5a

Please sign in to comment.