carla/PythonAPI/docs/control.yml

190 lines
5.6 KiB
YAML
Raw Normal View History

2019-05-03 18:18:02 +08:00
---
2019-04-24 22:13:46 +08:00
- module_name: control
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
2019-05-03 18:18:02 +08:00
# - CLASSES ------------------------------
classes:
2019-04-24 22:13:46 +08:00
- class_name: VehiclePhysicsControl
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
VehiclePhysicsControl is used for controlling the physics parameters of a vehicle.
2019-05-03 18:18:02 +08:00
# - PROPERTIES -------------------------
instance_variables:
2019-04-24 22:13:46 +08:00
- var_name: torque_curve
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Curve that indicates the torque measured in Nm for a specific RPM of the vehicle's engine.
# --------------------------------------
- var_name: max_rpm
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
The maximum RPM of the vehicle's engine.
2019-05-03 18:18:02 +08:00
# --------------------------------------
2019-04-24 22:13:46 +08:00
- var_name: moi
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
The moment of inertia of the vehicle's engine.
2019-05-03 18:18:02 +08:00
# --------------------------------------
2019-04-24 22:13:46 +08:00
- var_name: damping_rate_full_throttle
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Damping rate when the throttle is maximum.
2019-05-03 18:18:02 +08:00
# --------------------------------------
2019-04-24 22:13:46 +08:00
- var_name: damping_rate_zero_throttle_clutch_engaged
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Damping rate when the thottle is zero with clutch engaged.
# --------------------------------------
- var_name: damping_rate_zero_throttle_clutch_disengaged
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Damping rate when the throttle is zero with clutch disengaged.
# --------------------------------------
- var_name: use_gear_autobox
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
If true, the vehicle will have automatic transmission.
# --------------------------------------
- var_name: gear_switch_time
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Switching time between gears.
2019-05-03 18:18:02 +08:00
# --------------------------------------
2019-04-24 22:13:46 +08:00
- var_name: clutch_strength
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
The clutch strength of the vehicle. Measured in Kgm^2/s.
2019-05-03 18:18:02 +08:00
# --------------------------------------
2019-04-24 22:13:46 +08:00
- var_name: mass
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
The mass of the vehicle measured in Kg.
2019-05-03 18:18:02 +08:00
# --------------------------------------
2019-04-24 22:13:46 +08:00
- var_name: drag_coefficient
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Drag coefficient of the vehicle's chassis.
# --------------------------------------
- var_name: center_of_mass
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
The center of mass of the vehicle.
# --------------------------------------
- var_name: steering_curve
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Curve that indicates the maximum steering for a specific forward speed.
# --------------------------------------
- var_name: wheels
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
List of `carla.WheelPhysicsControl` objects.
2019-05-03 18:18:02 +08:00
# - METHODS ----------------------------
methods:
- def_name: __init__
params:
- param_name: self
2019-04-24 22:13:46 +08:00
- param_name: torque_curve
type: List of carla.Vector2D
default: [[0.0,500.0], [5000.0, 500.0]]
- param_name: max_rpm
type: float
default: 5000.0
- param_name: moi
type: float
default: 1.0
- param_name: damping_rate_full_throttle
type: float
default: 0.15
- param_name: damping_rate_zero_throttle_clutch_engaged
type: float
default: 2.0
- param_name: damping_rate_zero_throttle_clutch_disengaged
type: float
default: 0.35
- param_name: use_gear_autobox
type: bool
default: True
- param_name: gear_switch_time
type: float
default: 0.5
- param_name: clutch_strength
type: float
default: 10.0
- param_name: mass
type: float
default: 1000.0
- param_name: drag_coefficient
type: float
default: 0.3
- param_name: center_of_mass
type: carla.Vector3D
default: [0.0, 0.0, 0.0]
- param_name: steering_curve
type: carla.Vector3D
default: [0.0, 0.0, 0.0]
- param_name: wheels
type: List of carla.WheelPhysicsControl
doc: >
VehiclePhysicsControl constructor
2019-05-03 18:18:02 +08:00
# --------------------------------------
- def_name: __eq__
params:
- param_name: self
2019-04-24 22:13:46 +08:00
- param_name: other
return: bool
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Returns True if `self` and `other` are equal
2019-05-03 18:18:02 +08:00
- def_name: __ne__
params:
- param_name: self
2019-04-24 22:13:46 +08:00
- param_name: other
return: bool
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Returns True if `self` and `other` are not equal
2019-05-03 18:18:02 +08:00
2019-04-24 22:13:46 +08:00
- class_name: WheelPhysicsControl
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
WheelPhysicsControl is used for controlling the physics parameters of a vehicle's wheel.
2019-05-03 18:18:02 +08:00
# - PROPERTIES -------------------------
instance_variables:
2019-04-24 22:13:46 +08:00
- var_name: tire_friction
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Scalar value that indicates the friction of the wheel.
# --------------------------------------
- var_name: damping_rate
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
The damping rate of the wheel.
# --------------------------------------
- var_name: max_steer_angle
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
The maximum angle in degrees that the wheel can steer.
# --------------------------------------
- var_name: is_steerable
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
If true, the wheel will steer.
2019-05-03 18:18:02 +08:00
# - METHODS ----------------------------
methods:
- def_name: __init__
params:
- param_name: self
2019-04-24 22:13:46 +08:00
- param_name: tire_friction
type: float
default: 2.0
- param_name: damping_rate
type: float
default: 0.25
- param_name: max_steer_angle
type: float
default: 70.0
- param_name: is_steerable
type: bool
default: True
doc: >
WheelPhysicsControl constructor
2019-05-03 18:18:02 +08:00
# --------------------------------------
- def_name: __eq__
params:
- param_name: self
2019-04-24 22:13:46 +08:00
- param_name: other
return: bool
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Returns True if `self` and `other` are equal
2019-05-03 18:18:02 +08:00
- def_name: __ne__
params:
- param_name: self
2019-04-24 22:13:46 +08:00
- param_name: other
return: bool
2019-05-03 18:18:02 +08:00
doc: >
2019-04-24 22:13:46 +08:00
Returns True if `self` and `other` are not equal
2019-05-03 18:18:02 +08:00
...