12 .robot_description(file_path=
"config/panda.urdf.xacro")
14 .robot_description_kinematics()
20 "moveit_servo": ParameterBuilder(
"moveit_servo")
21 .yaml(
"config/panda_simulated_config.yaml")
26 acceleration_filter_update_period = {
"update_period": 0.01}
27 planning_group_name = {
"planning_group_name":
"panda_arm"}
31 get_package_share_directory(
"moveit_servo") +
"/config/demo_rviz_config.rviz"
33 rviz_node = launch_ros.actions.Node(
38 arguments=[
"-d", rviz_config_file],
40 moveit_config.robot_description,
41 moveit_config.robot_description_semantic,
46 ros2_controllers_path = os.path.join(
47 get_package_share_directory(
"moveit_resources_panda_moveit_config"),
49 "ros2_controllers.yaml",
51 ros2_control_node = launch_ros.actions.Node(
52 package=
"controller_manager",
53 executable=
"ros2_control_node",
54 parameters=[ros2_controllers_path],
56 (
"/controller_manager/robot_description",
"/robot_description"),
61 joint_state_broadcaster_spawner = launch_ros.actions.Node(
62 package=
"controller_manager",
65 "joint_state_broadcaster",
66 "--controller-manager-timeout",
68 "--controller-manager",
69 "/controller_manager",
73 panda_arm_controller_spawner = launch_ros.actions.Node(
74 package=
"controller_manager",
76 arguments=[
"panda_arm_controller",
"-c",
"/controller_manager"],
80 container = launch_ros.actions.ComposableNodeContainer(
81 name=
"moveit_servo_demo_container",
83 package=
"rclcpp_components",
84 executable=
"component_container_mt",
85 composable_node_descriptions=[
86 launch_ros.descriptions.ComposableNode(
87 package=
"robot_state_publisher",
88 plugin=
"robot_state_publisher::RobotStatePublisher",
89 name=
"robot_state_publisher",
90 parameters=[moveit_config.robot_description],
92 launch_ros.descriptions.ComposableNode(
94 plugin=
"tf2_ros::StaticTransformBroadcasterNode",
95 name=
"static_tf2_broadcaster",
96 parameters=[{
"child_frame_id":
"/panda_link0",
"frame_id":
"/world"}],
103 servo_node = launch_ros.actions.Node(
104 package=
"moveit_servo",
105 executable=
"demo_pose",
108 acceleration_filter_update_period,
110 moveit_config.robot_description,
111 moveit_config.robot_description_semantic,
112 moveit_config.robot_description_kinematics,
113 moveit_config.joint_limits,
118 return launch.LaunchDescription(
122 joint_state_broadcaster_spawner,
123 panda_arm_controller_spawner,