Skip to content

Commit

Permalink
[PYTHON][EXAMPLE] Corrected typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rlagneau committed May 28, 2024
1 parent e885c41 commit d1140dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/python/examples/ukf-nonlinear-complex-example.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def generate_commands() -> List[ColVector]:
@return List[ColVector] The list of commands to use in the simulation
"""
cmds = []
# Starting by an straight line acceleration
# Starting by a straight line acceleration
nbSteps = 30
dv = (1.1 - 0.001) / float(nbSteps - 1)
for i in range(nbSteps):
Expand Down Expand Up @@ -290,7 +290,7 @@ def compute_motion(self, u: ColVector, x: ColVector, dt: float) -> ColVector:
if (abs(steeringAngle) > 0.001):
# The robot is turning
beta = (distance / self._w) * np.tan(steeringAngle)
radius = self._w / np.tan(steeringAngle);
radius = self._w / np.tan(steeringAngle)
sinh = np.sin(heading)
sinhb = np.sin(heading + beta)
cosh = np.cos(heading)
Expand Down

0 comments on commit d1140dc

Please sign in to comment.