Skip to content

Commit 6256577

Browse files
committed
Make sure tests use floating point numbers
1 parent 875b3ee commit 6256577

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ur_robot_driver/test/integration_test_force_mode.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -480,14 +480,14 @@ def test_params_out_of_range_fails(self, tf_prefix):
480480
self.assertFalse(res.success)
481481

482482
res = self._force_mode_controller_interface.start_force_mode(
483-
task_frame=frame_stamp, gain_scaling=0
483+
task_frame=frame_stamp, gain_scaling=0.0
484484
)
485485
self.assertTrue(res.success)
486486
res = self._force_mode_controller_interface.stop_force_mode()
487487
self.assertTrue(res.success)
488488

489489
res = self._force_mode_controller_interface.start_force_mode(
490-
task_frame=frame_stamp, gain_scaling=2
490+
task_frame=frame_stamp, gain_scaling=2.0
491491
)
492492
self.assertTrue(res.success)
493493
res = self._force_mode_controller_interface.stop_force_mode()
@@ -505,14 +505,14 @@ def test_params_out_of_range_fails(self, tf_prefix):
505505
self.assertFalse(res.success)
506506

507507
res = self._force_mode_controller_interface.start_force_mode(
508-
task_frame=frame_stamp, damping_factor=0
508+
task_frame=frame_stamp, damping_factor=0.0
509509
)
510510
self.assertTrue(res.success)
511511
res = self._force_mode_controller_interface.stop_force_mode()
512512
self.assertTrue(res.success)
513513

514514
res = self._force_mode_controller_interface.start_force_mode(
515-
task_frame=frame_stamp, damping_factor=1
515+
task_frame=frame_stamp, damping_factor=1.0
516516
)
517517
self.assertTrue(res.success)
518518
res = self._force_mode_controller_interface.stop_force_mode()

0 commit comments

Comments
 (0)