Abstract class representing the objects in a scene
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
Creates agents for objects in the scene
Get list of all collisions in this state
- 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
Returns the minimum distance between the object with id agentnum and a collideable object.
Parameters: agentnum (int) – The index of the object to query Returns: Distance to nearest collideable object Return type: float
Randomly generates car and pedestrian positions