smarts.core.events module

class smarts.core.events.Events(collisions: Tuple[Collision], off_road: bool, off_route: bool, on_shoulder: bool, wrong_way: bool, not_moving: bool, reached_goal: bool, reached_max_episode_steps: bool, agents_alive_done: bool, interest_done: bool)[source]

Classified observations that can trigger agent done status.

property actors_alive_done

Deprecated. Use interest_done.

agents_alive_done: bool

True if all configured co-simulating agents are done (if any), else False. This is useful for cases when the vehicle is related to other vehicles.

collisions: Tuple[Collision]

Collisions with other vehicles (if any).

interest_done: bool

True if described actors have left the simulation.

not_moving: bool

True if vehicle has not moved for the configured amount of time, else False.

off_road: bool

True if vehicle is off the road, else False.

off_route: bool

True if vehicle is off the mission route, else False.

on_shoulder: bool

True if vehicle goes on road shoulder, else False.

reached_goal: bool

True if vehicle has reached its mission goal, else False.

reached_max_episode_steps: bool

True if vehicle has reached its max episode steps, else False.

wrong_way: bool

True if vehicle is heading against the legal driving direction of the lane, else False.