Skip to content

Commit

Permalink
Fix: Remove duplicate clean method calls (#1096)
Browse files Browse the repository at this point in the history
* [fix]rename compound_symbol.py

* [fix]Remove duplicate clean method calls

* Fix Atomic_behaviors AddActor Func

No return status
  • Loading branch information
starrye authored Nov 6, 2024
1 parent b10e14d commit 5832584
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scenario_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ def _cleanup(self):
except RuntimeError:
sys.exit(-1)

self.manager.cleanup()
# self.manager.cleanup()

CarlaDataProvider.cleanup()
# CarlaDataProvider.cleanup()

for i, _ in enumerate(self.ego_vehicles):
if self.ego_vehicles[i]:
Expand Down Expand Up @@ -660,4 +660,4 @@ def main():


if __name__ == "__main__":
sys.exit(main())
sys.exit(main())
4 changes: 3 additions & 1 deletion srunner/scenariomanager/scenarioatomics/atomic_behaviors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4593,7 +4593,9 @@ def update(self):
new_status = py_trees.common.Status.SUCCESS
except: # pylint: disable=bare-except
print("ActorSource unable to spawn actor")

new_status = py_trees.common.Status.FAILURE
finally:
return new_status

class SwitchWrongDirectionTest(AtomicBehavior):

Expand Down

0 comments on commit 5832584

Please sign in to comment.