Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Idle #898

Merged
merged 1 commit into from
May 20, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion srunner/scenarios/route_scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from srunner.scenarioconfigs.scenario_configuration import ActorConfigurationData
from srunner.scenariomanager.carla_data_provider import CarlaDataProvider

from srunner.scenariomanager.scenarioatomics.atomic_behaviors import ScenarioTriggerer
from srunner.scenariomanager.scenarioatomics.atomic_behaviors import ScenarioTriggerer, Idle
from srunner.scenariomanager.scenarioatomics.atomic_trigger_conditions import WaitForBlackboardVariable
from srunner.scenariomanager.scenarioatomics.atomic_criteria import (CollisionTest,
InRouteTest,
Expand Down Expand Up @@ -364,6 +364,7 @@ def _create_criterion_tree(self, scenario, criteria):
scenario_criteria.add_child(WaitForBlackboardVariable(var_name, False, None, name=check_name))

criteria_tree.add_child(scenario_criteria)
criteria_tree.add_child(Idle()) # Avoid the indivual criteria stopping the simulation
return criteria_tree


Expand Down