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

fix: add blueprint for test_brake for CARLA simulator tests #292

Merged
merged 10 commits into from
Jul 26, 2024
8 changes: 5 additions & 3 deletions tests/simulators/carla/test_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ def test_brake(getCarlaSimulator):

behavior DriveThenBrake():
do DriveWithThrottle() for 2 steps
do Brake() for 4 steps
do Brake() for 6 steps

ego = new Car at (369, -326), with behavior DriveThenBrake
ego = new Car at (369, -326),
with blueprint 'vehicle.toyota.prius',
with behavior DriveThenBrake
record final ego.speed as CarSpeed
terminate after 6 steps
terminate after 8 steps
"""
scenario = compileScenic(code, mode2D=True)
scene = sampleScene(scenario)
Expand Down
Loading