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_ptp.yaml",
28 unittest_trajectory_generator_ptp = Node(
29 package=
"pilz_industrial_motion_planner",
30 executable=
"unittest_trajectory_generator_ptp",
31 name=
"unittest_trajectory_generator_ptp",
33 test_config.to_dict(),
41 unittest_trajectory_generator_ptp,
43 launch_testing.actions.ReadyToTest(),
46 {
"unittest_trajectory_generator_ptp": unittest_trajectory_generator_ptp},
52 proc_info.assertWaitForShutdown(
53 process=unittest_trajectory_generator_ptp, timeout=4000.0
57 @launch_testing.post_shutdown_test()
60 launch_testing.asserts.assertExitCodes(
61 proc_info, process=unittest_trajectory_generator_ptp
def test_exit_codes(self, proc_info, unittest_trajectory_generator_ptp)
def test_gtest_run_complete(self, proc_info, unittest_trajectory_generator_ptp)
def load_yaml(package_name, file_path)
def generate_test_description()