CarClient
- class airgen.client.CarClient(ip='', port=41451, geo=False, timeout_value=3600)
Bases:
VehicleClient
,object
- getCarControls(vehicle_name='')
- Parameters:
vehicle_name (str, optional) -- Name of vehicle
- Return type:
CarControls
- getCarState(vehicle_name='')
The position inside the returned CarState is in the frame of the vehicle's starting point
- Parameters:
vehicle_name (str, optional) -- Name of vehicle
- Return type:
CarState
- setCarControls(controls, vehicle_name='')
Control the car using throttle, steering, brake, etc.
- Parameters:
controls (CarControls) -- Struct containing control values
vehicle_name (str, optional) -- Name of vehicle to be controlled
- setCarTargetSpeed(speed, vehicle_name='')
Set a target speed for the car.
- Parameters:
speed (float) -- Target speed in m/s
vehicle_name (str, optional) -- Name of vehicle to be controlled