From 14f406a93b4adf303df6e307e6a4a1ada9fe7b74 Mon Sep 17 00:00:00 2001 From: qhdwight Date: Wed, 17 Apr 2024 21:57:43 -0400 Subject: [PATCH] Fix auton unit test, add spirv tools to ansible --- ansible/roles/build/tasks/main.yml | 1 + test/navigation/drive_test.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ansible/roles/build/tasks/main.yml b/ansible/roles/build/tasks/main.yml index 6d91a9651..f816bfa99 100644 --- a/ansible/roles/build/tasks/main.yml +++ b/ansible/roles/build/tasks/main.yml @@ -89,6 +89,7 @@ - ros-{{ ros_distro }}-rosbash - libbullet-dev - libglfw3-dev + - spirv-tools - libx11-xcb-dev - libnl-3-dev - libnl-route-3-dev diff --git a/test/navigation/drive_test.py b/test/navigation/drive_test.py index ce8db9fe7..3ca31840c 100755 --- a/test/navigation/drive_test.py +++ b/test/navigation/drive_test.py @@ -45,7 +45,7 @@ def test_turn_right(self): print(cmd) print(done) self.assertLess(cmd.angular.z, 0.0) - self.assertEqual(cmd.angular.z, -1.0) + self.assertEqual(cmd.angular.z, -0.7) self.assertEqual(cmd.linear.x, 0.0) def test_turn_left(self): @@ -59,7 +59,7 @@ def test_turn_left(self): print(cmd) print(done) self.assertGreater(cmd.angular.z, 0.0) - self.assertEqual(cmd.angular.z, 1.0) + self.assertEqual(cmd.angular.z, 0.7) self.assertEqual(cmd.linear.x, 0.0) def test_straight_angle(self):