moveit2
The MoveIt Motion Planning Framework for ROS 2.
moveit_ros
moveit_servo
test
launch
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
10
def
generate_test_description
():
11
return
generate_servo_test_description
(
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)
test_servo_collision.TestGTestProcessPostShutdown
Definition:
test_servo_collision.test.py:24
test_servo_collision.TestGTestProcessPostShutdown.test_gtest_pass
def test_gtest_pass(self, proc_info, servo_gtest)
Definition:
test_servo_collision.test.py:26
test_servo_collision.TestGTestWaitForCompletion
Definition:
test_servo_collision.test.py:17
test_servo_collision.TestGTestWaitForCompletion.test_gtest_run_complete
def test_gtest_run_complete(self, servo_gtest)
Definition:
test_servo_collision.test.py:19
servo_launch_test_common.generate_servo_test_description
def generate_servo_test_description(*args, SomeSubstitutionsType gtest_name, SomeSubstitutionsType start_position_path="")
Definition:
servo_launch_test_common.py:20
test_servo_collision.generate_test_description
def generate_test_description()
Definition:
test_servo_collision.test.py:10
Generated by
1.9.1