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_generator_lin.yaml",
27 testdata_file_name = {
29 "pilz_industrial_motion_planner"
31 +
"/test_data/prbt/testdata_sequence.xml"
35 unittest_trajectory_generator_lin = Node(
36 package=
"pilz_industrial_motion_planner",
37 executable=
"unittest_trajectory_generator_lin",
38 name=
"unittest_trajectory_generator_lin",
40 test_config.to_dict(),
49 unittest_trajectory_generator_lin,
51 launch_testing.actions.ReadyToTest(),
54 {
"unittest_trajectory_generator_lin": unittest_trajectory_generator_lin},
60 proc_info.assertWaitForShutdown(
61 process=unittest_trajectory_generator_lin, timeout=4000.0
65 @launch_testing.post_shutdown_test()
68 launch_testing.asserts.assertExitCodes(
69 proc_info, process=unittest_trajectory_generator_lin
def test_exit_codes(self, proc_info, unittest_trajectory_generator_lin)
def test_gtest_run_complete(self, proc_info, unittest_trajectory_generator_lin)
def load_yaml(package_name, file_path)
def get_package_share_directory(pkg_name)
def generate_test_description()