Intersections¶
Base Intersections¶
-
class
gym_urbandriving.state.
PositionState
(data, car_model='kinematic')[source]¶ Abstract class representing the objects in a scene
-
collides_any
(agentnum, type_of_agent='background_cars')[source]¶ Returns if the agentnum object in the scene is colliding with any other object
Parameters: agentnum (int) – The index of the object to query Returns: True if this object is colliding Return type: bool
-
get_collisions
()[source]¶ Get list of all collisions in this state
Returns: - list – List of tuples, where each tuple contains a pair of coliding object indices. Dynamic_collisions contains collisions between cars and other cars.
- list – The corresponding list for collisions between dynamic objects and static objects
-