moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
moveit_planners
pilz_industrial_motion_planner
test
unit_tests
launch
unittest_joint_limit.test.py
Go to the documentation of this file.
1
import
launch_testing
2
import
os
3
import
sys
4
import
pytest
5
import
unittest
6
7
from
launch
import
LaunchDescription
8
from
launch_ros.actions
import
Node
9
from
launch_testing.util
import
KeepAliveProc
10
11
sys.path.append(os.path.dirname(__file__))
12
from
common_parameters
import
load_yaml
13
14
15
@pytest.mark.rostest
16
def
generate_test_description
():
17
joint_limits_yaml = load_yaml(
18
"pilz_industrial_motion_planner"
,
"config/unittest_joint_limit_config.yaml"
19
)
20
21
# run test
22
unittest_joint_limit = Node(
23
package=
"pilz_industrial_motion_planner"
,
24
executable=
"unittest_joint_limit"
,
25
name=
"unittest_joint_limit"
,
26
parameters=[
27
joint_limits_yaml,
28
],
29
output=
"screen"
,
30
)
31
return
(
32
LaunchDescription(
33
[
34
unittest_joint_limit,
35
KeepAliveProc(),
36
launch_testing.actions.ReadyToTest(),
37
]
38
),
39
{
"unittest_joint_limit"
: unittest_joint_limit},
40
)
41
42
43
class
TestTerminatingProcessStops
(unittest.TestCase):
44
def
test_gtest_run_complete
(self, proc_info, unittest_joint_limit):
45
proc_info.assertWaitForShutdown(process=unittest_joint_limit, timeout=4000.0)
46
47
48
@launch_testing.post_shutdown_test()
49
class
TestOutcome
(unittest.TestCase):
50
def
test_exit_codes
(self, proc_info, unittest_joint_limit):
51
launch_testing.asserts.assertExitCodes(proc_info, process=unittest_joint_limit)
unittest_joint_limit.TestOutcome
Definition
unittest_joint_limit.test.py:49
unittest_joint_limit.TestOutcome.test_exit_codes
test_exit_codes(self, proc_info, unittest_joint_limit)
Definition
unittest_joint_limit.test.py:50
unittest_joint_limit.TestTerminatingProcessStops
Definition
unittest_joint_limit.test.py:43
unittest_joint_limit.TestTerminatingProcessStops.test_gtest_run_complete
test_gtest_run_complete(self, proc_info, unittest_joint_limit)
Definition
unittest_joint_limit.test.py:44
unittest_joint_limit.generate_test_description
generate_test_description()
Definition
unittest_joint_limit.test.py:16
Generated by
1.9.8