MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / __init__

Method __init__

agents/navigation/controller.py:155–170  ·  view source on GitHub ↗

Constructor method. :param vehicle: actor to apply to local planner logic onto :param K_P: Proportional term :param K_D: Differential term :param K_I: Integral term :param dt: time differential in seconds

(self, vehicle, K_P=1.0, K_D=0.0, K_I=0.0, dt=0.03)

Source from the content-addressed store, hash-verified

153 """
154
155 def __init__(self, vehicle, K_P=1.0, K_D=0.0, K_I=0.0, dt=0.03):
156 """
157 Constructor method.
158
159 :param vehicle: actor to apply to local planner logic onto
160 :param K_P: Proportional term
161 :param K_D: Differential term
162 :param K_I: Integral term
163 :param dt: time differential in seconds
164 """
165 self._vehicle = vehicle
166 self._k_p = K_P
167 self._k_d = K_D
168 self._k_i = K_I
169 self._dt = dt
170 self._e_buffer = deque(maxlen=10)
171
172 def run_step(self, waypoint):
173 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected