Skip to content

Commit

Permalink
changed test wheel command interface to new vector interface
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidcronos committed Apr 3, 2024
1 parent a432644 commit 3f46d21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_agv_robots.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ def tearDown(self) -> None:

def test_calculate_wheel_commands(self):

wheel_commands = self.robot._calculate_wheel_comands(1, 0)
wheel_commands = self.robot._calculate_wheel_comands([1, 0])
self.assertTrue(np.allclose(wheel_commands, [10, 10]))


wheel_commands = self.robot._calculate_wheel_comands(0, 1)
wheel_commands = self.robot._calculate_wheel_comands([0, 1])
self.assertTrue(np.allclose(wheel_commands, [-2.5, 2.5]))


wheel_commands = self.robot._calculate_wheel_comands(1, 1)
wheel_commands = self.robot._calculate_wheel_comands([1, 1])
self.assertTrue(np.allclose(wheel_commands, [7.5, 12.5]))

def test_set_velocity(self):
Expand Down

0 comments on commit 3f46d21

Please sign in to comment.