Skip to content

No effect of beamngpy.Scenario.add_checkpoints() and similar in usage after beamngpy.Scenario.load() #286

Open
@omeisosis

Description

@omeisosis

The beamngpy.Scenario.add_checkpoints() does not have any effect if used after loading a scenario. This is not documented in the BeamNGpy Reference, nor is a Warning issued at runtime.

Used Version: Beamng.tech 0.30.6.0, beamngpy 1.27.1
Minimal reproducable Code (modified from examples/checkpoints.py):

from beamngpy import BeamNGpy, Scenario, Vehicle

if __name__ == "__main__":
    with BeamNGpy("localhost", 25252) as bng:
        scenario = Scenario("tech_ground", "waypoint demo")
        vehicle = Vehicle("test_car", model="etk800", rot_quat=(0, 0, 0, 1))
        scenario.add_vehicle(vehicle)

        positions = [(0, -10, 0), (0, -20, 0), (0, -30, 0)]
        scales = [(1.0, 1.0, 1.0)] * 3
        scenario.make(bng)

        bng.scenario.load(scenario)
        scenario.add_checkpoints(positions, scales)
        bng.scenario.start()
        input("Press Enter to exit...")

Expected Behavior:
Checkpoint is added, or RuntimeWarning or similar is thrown.
Actual Behavior:
No checkpoint is added (can be confirmed by checking result of scenario.find_waypoints()). No Notice about not adding the checkpoint is given.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions