22 common_launch = generate_common_hybrid_launch_description()
25 .robot_description(file_path=
"config/panda.urdf.xacro")
29 hybrid_planning_gtest = Node(
30 executable=PathJoinSubstitution(
31 [LaunchConfiguration(
"test_binary_dir"),
"test_basic_integration"]
34 moveit_config.to_dict(),
42 executable=
"static_transform_publisher",
43 name=
"static_transform_publisher",
45 arguments=[
"0.0",
"0.0",
"0.0",
"0.0",
"0.0",
"0.0",
"world",
"panda_link0"],
49 robot_state_publisher = Node(
50 package=
"robot_state_publisher",
51 executable=
"robot_state_publisher",
52 name=
"robot_state_publisher",
54 parameters=[moveit_config.robot_description],
58 ros2_controllers_path = os.path.join(
59 get_package_share_directory(
"moveit_hybrid_planning"),
61 "demo_controller.yaml",
63 ros2_control_node = Node(
64 package=
"controller_manager",
65 executable=
"ros2_control_node",
66 parameters=[moveit_config.robot_description, ros2_controllers_path],
70 joint_state_broadcaster_spawner = Node(
71 package=
"controller_manager",
74 "joint_state_broadcaster",
75 "--controller-manager",
76 "/controller_manager",
80 panda_joint_group_position_controller_spawner = Node(
81 package=
"controller_manager",
84 "panda_joint_group_position_controller",
86 "/controller_manager",
90 return LaunchDescription(
92 DeclareLaunchArgument(
93 name=
"test_binary_dir",
94 description=
"Binary directory of package "
95 "containing test executables",
97 TimerAction(period=2.0, actions=[hybrid_planning_gtest]),
98 launch_testing.actions.ReadyToTest(),
103 robot_state_publisher,
105 joint_state_broadcaster_spawner,
106 panda_joint_group_position_controller_spawner,
109 "hybrid_planning_gtest": hybrid_planning_gtest,
test_gtest_pass(self, proc_info, hybrid_planning_gtest)