Actions

Velocity Action

class gym_urbandriving.actions.velocity_action.VelocityAction(velocity=0.0)[source]

This class is a wrapper for the velocity control in the hierarchy it represents the target velocity for the car to drive at

get_value()[source]

Gets the value of the current velocity

Returns:
Return type:float
sample()[source]

Samples a random control in this class using the OpenAI Box class

Returns:
Return type:velocity in numpy array shape (1,)

Steering Action

class gym_urbandriving.actions.steering_action.SteeringAction(steering=0.0, acceleration=0.0)[source]

This class is a wrapper for the action space at the lowest level of the heirarchy it represents the steering and acceleration applied directly to the car.

get_value()[source]

Gets the numpy array of the class

Returns:
Return type:steering and acceleration in numpy array shape (2,)
sample()[source]

Samples a random control in this class using the OpenAI Box class

Returns:
Return type:steering and acceleration in numpy array shape (2,)