14 .robot_description(file_path=
"config/panda.urdf.xacro")
20 "moveit_servo_test": ParameterBuilder(
"moveit_servo")
21 .yaml(
"config/panda_simulated_config.yaml")
26 low_pass_filter_coeff = {
"butterworth_filter_coeff": 1.5}
29 ros2_controllers_path = os.path.join(
30 get_package_share_directory(
"moveit_resources_panda_moveit_config"),
32 "ros2_controllers.yaml",
34 ros2_control_node = launch_ros.actions.Node(
35 package=
"controller_manager",
36 executable=
"ros2_control_node",
37 parameters=[ros2_controllers_path],
39 (
"/controller_manager/robot_description",
"/robot_description"),
44 joint_state_broadcaster_spawner = launch_ros.actions.Node(
45 package=
"controller_manager",
48 "joint_state_broadcaster",
49 "--controller-manager-timeout",
51 "--controller-manager",
52 "/controller_manager",
56 panda_arm_controller_spawner = launch_ros.actions.Node(
57 package=
"controller_manager",
59 arguments=[
"panda_arm_controller",
"-c",
"/controller_manager"],
63 test_container = launch_ros.actions.ComposableNodeContainer(
64 name=
"servo_utils_tests_container",
66 package=
"rclcpp_components",
67 executable=
"component_container_mt",
68 composable_node_descriptions=[
69 launch_ros.descriptions.ComposableNode(
70 package=
"robot_state_publisher",
71 plugin=
"robot_state_publisher::RobotStatePublisher",
72 name=
"robot_state_publisher",
73 parameters=[moveit_config.robot_description],
75 launch_ros.descriptions.ComposableNode(
77 plugin=
"tf2_ros::StaticTransformBroadcasterNode",
78 name=
"static_tf2_broadcaster",
79 parameters=[{
"/child_frame_id":
"panda_link0",
"/frame_id":
"world"}],
85 servo_gtest = launch_ros.actions.Node(
86 executable=launch.substitutions.PathJoinSubstitution(
88 launch.substitutions.LaunchConfiguration(
"test_binary_dir"),
89 "moveit_servo_utils_test",
94 low_pass_filter_coeff,
95 moveit_config.robot_description,
96 moveit_config.robot_description_semantic,
97 moveit_config.robot_description_kinematics,
102 return launch.LaunchDescription(
104 launch.actions.DeclareLaunchArgument(
105 name=
"test_binary_dir",
106 description=
"Binary directory of package "
107 "containing test executables",
110 joint_state_broadcaster_spawner,
111 panda_arm_controller_spawner,
113 launch.actions.TimerAction(period=2.0, actions=[servo_gtest]),
114 launch_testing.actions.ReadyToTest(),
117 "servo_gtest": servo_gtest,
test_gtest_pass(self, proc_info, servo_gtest)