Skip to content

Commit

Permalink
Added feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Dec 14, 2023
1 parent fc1b7d2 commit 88ab851
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python_pybind11/test/MecanumDriveOdometry_TEST.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

import datetime
import math
import time
import unittest

from ignition.math import MecanumDriveOdometry, Angle


Expand All @@ -38,7 +40,7 @@ def test_constructor(self):

# Setup the wheel parameters, and initialize
odom.set_wheel_params(wheelSeparation, wheelRadius, wheelRadius,wheelRadius)
startTime = datetime.datetime.now()
startTime = datetime.timedelta(time.monotonic())
odom.init(datetime.timedelta())

# Sleep for a little while, then update the odometry with the new wheel
Expand Down Expand Up @@ -75,7 +77,7 @@ def test_constructor(self):
self.assertAlmostEqual(0.0, odom.angular_velocity().radian(), delta=1e-3)

# Initialize again, and odom values should be reset.
startTime = datetime.datetime.now()
startTime = datetime.timedelta(time.monotonic())
odom.init(datetime.timedelta())
self.assertAlmostEqual(0.0, odom.heading().radian())
self.assertAlmostEqual(0.0, odom.x())
Expand Down

0 comments on commit 88ab851

Please sign in to comment.