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

Method run_step

agents/navigation/controller.py:172–182  ·  view source on GitHub ↗

Execute one step of lateral control to steer the vehicle towards a certain waypoin. :param waypoint: target waypoint :return: steering control in the range [-1, 1] where: -1 maximum steering to left +1 maximum steering to right

(self, waypoint)

Source from the content-addressed store, hash-verified

170 self._e_buffer = deque(maxlen=10)
171
172 def run_step(self, waypoint):
173 """
174 Execute one step of lateral control to steer
175 the vehicle towards a certain waypoin.
176
177 :param waypoint: target waypoint
178 :return: steering control in the range [-1, 1] where:
179 -1 maximum steering to left
180 +1 maximum steering to right
181 """
182 return self._pid_control(waypoint, self._vehicle.get_transform())
183
184 def _pid_control(self, waypoint, vehicle_transform):
185 """

Callers

nothing calls this directly

Calls 2

_pid_controlMethod · 0.95
get_transformMethod · 0.80

Tested by

no test coverage detected