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)
| 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 | """ |
nothing calls this directly
no test coverage detected