20 .robot_description(file_path=
"config/panda.urdf.xacro")
21 .planning_pipelines(
"ompl", [
"ompl"])
22 .trajectory_execution(file_path=
"config/gripper_moveit_controllers.yaml")
26 run_move_group_node = Node(
27 package=
"moveit_ros_move_group",
28 executable=
"move_group",
30 parameters=[moveit_config.to_dict()],
35 executable=
"static_transform_publisher",
37 arguments=[
"0.0",
"0.0",
"0.0",
"0.0",
"0.0",
"0.0",
"world",
"panda_link0"],
40 robot_state_publisher = Node(
41 package=
"robot_state_publisher",
42 executable=
"robot_state_publisher",
43 name=
"robot_state_publisher",
45 parameters=[moveit_config.robot_description],
49 ros2_controllers_path = os.path.join(
50 get_package_share_directory(
"moveit_resources_panda_moveit_config"),
52 "ros2_controllers.yaml",
54 ros2_control_node = Node(
55 package=
"controller_manager",
56 executable=
"ros2_control_node",
57 parameters=[moveit_config.robot_description, ros2_controllers_path],
63 "panda_arm_controller",
64 "panda_hand_controller",
65 "joint_state_broadcaster",
69 cmd=[
"ros2 run controller_manager spawner {}".format(controller)],
76 executable=PathJoinSubstitution(
78 LaunchConfiguration(
"test_binary_dir"),
79 LaunchConfiguration(
"test_executable"),
82 parameters=[moveit_config.to_dict()],
86 return LaunchDescription(
88 DeclareLaunchArgument(
89 name=
"test_binary_dir",
90 description=
"Binary directory of package "
91 "containing test executables",
94 robot_state_publisher,
97 TimerAction(period=1.0, actions=[run_move_group_node]),
98 TimerAction(period=3.0, actions=[gtest_node]),
102 "gtest_node": gtest_node,
test_gtest_pass(self, proc_info, gtest_node)