MCPcopy
hub / github.com/AtsushiSakai/PythonRobotics / update

Method update

Mapping/rectangle_fitting/simulator.py:27–33  ·  view source on GitHub ↗
(self, dt, a, omega)

Source from the content-addressed store, hash-verified

25 self._calc_vehicle_contour()
26
27 def update(self, dt, a, omega):
28 self.x += self.v * np.cos(self.yaw) * dt
29 self.y += self.v * np.sin(self.yaw) * dt
30 self.yaw += omega * dt
31 self.v += a * dt
32 if self.v >= self.max_v:
33 self.v = self.max_v
34
35 def plot(self):
36 plt.plot(self.x, self.y, ".b")

Callers 1

mainFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected