Welcome to Gym-CarPark’s documentation!

class gym_carpark.car.Car(length: float = 0.2, width: float = 0.1, v_limit: float = 0.5, vp_limit: float = 0.5, phi_limit: float = 0.7853981633974483, phip_limit: float = 0.7853981633974483)

Class that implements the autonomous vehicle.

act(vp_act, phi_act, dt=0.002, env=None, do_render=False)

Take one simulation step, after an action containing the acceleration and steering angle. :param vp_act: the acceleration between -1.0 and 1.0. :param phi_act: the steering angle between -1.0 and 1.0. :param dt: the simulation time step. :param env: the Gym environment. :param do_render: whether to render or not the simulation. :return:

set_state(x, y, theta)

Set the car position and orientation. :param x: :param y: :param theta:

Indices and tables