moveit2
The MoveIt Motion Planning Framework for ROS 2.
test_servo_collision.test.py
Go to the documentation of this file.
1 import launch_testing
2 import os
3 import sys
4 import unittest
5 
6 sys.path.append(os.path.dirname(__file__))
7 from servo_launch_test_common import generate_servo_test_description
8 
9 
12  gtest_name="test_servo_collision",
13  start_position_path="../config/collision_start_positions.yaml",
14  )
15 
16 
17 class TestGTestWaitForCompletion(unittest.TestCase):
18  # Waits for test to complete, then waits a bit to make sure result files are generated
19  def test_gtest_run_complete(self, servo_gtest):
20  self.proc_info.assertWaitForShutdown(servo_gtest, timeout=4000.0)
21 
22 
23 @launch_testing.post_shutdown_test()
24 class TestGTestProcessPostShutdown(unittest.TestCase):
25  # Checks if the test has been completed with acceptable exit codes (successful codes)
26  def test_gtest_pass(self, proc_info, servo_gtest):
27  launch_testing.asserts.assertExitCodes(proc_info, process=servo_gtest)
def generate_servo_test_description(*args, SomeSubstitutionsType gtest_name, SomeSubstitutionsType start_position_path="")