4 from ament_index_python.packages
import get_package_share_directory
5 from launch
import LaunchDescription
6 from launch_ros.actions
import Node
7 from launch_testing.util
import KeepAliveProc
12 sys.path.append(os.path.dirname(__file__))
13 from common_parameters
import load_moveit_config, load_yaml
23 "pilz_industrial_motion_planner",
24 "config/unittest_trajectory_blender_transition_window.yaml",
27 testdata_file_name = {
29 "pilz_industrial_motion_planner"
31 +
"/test_data/prbt/testdata_sequence.xml"
35 unittest_trajectory_blender_transition_window = Node(
36 package=
"pilz_industrial_motion_planner",
37 executable=
"unittest_trajectory_blender_transition_window",
38 name=
"unittest_trajectory_blender_transition_window",
40 test_config.to_dict(),
49 unittest_trajectory_blender_transition_window,
51 launch_testing.actions.ReadyToTest(),
55 "unittest_trajectory_blender_transition_window": unittest_trajectory_blender_transition_window
62 self, proc_info, unittest_trajectory_blender_transition_window
64 proc_info.assertWaitForShutdown(
65 process=unittest_trajectory_blender_transition_window, timeout=4000.0
69 @launch_testing.post_shutdown_test()
71 def test_exit_codes(self, proc_info, unittest_trajectory_blender_transition_window):
72 launch_testing.asserts.assertExitCodes(
73 proc_info, process=unittest_trajectory_blender_transition_window
def test_exit_codes(self, proc_info, unittest_trajectory_blender_transition_window)
def test_gtest_run_complete(self, proc_info, unittest_trajectory_blender_transition_window)
def load_yaml(package_name, file_path)
def get_package_share_directory(pkg_name)
def generate_test_description()