moveit2
The MoveIt Motion Planning Framework for ROS 2.
demo_panda_predefined_poses.launch.py
Go to the documentation of this file.
1 from launch import LaunchDescription
2 from launch_ros.actions import Node
3 from moveit_configs_utils import MoveItConfigsBuilder
4 from launch_param_builder import ParameterBuilder
5 
6 
8 
9  moveit_ros_benchmarks_config = (
10  ParameterBuilder("moveit_ros_benchmarks")
11  .yaml(
12  parameter_namespace="benchmark_config",
13  file_path="demo_panda_predefined_poses.yaml",
14  )
15  .to_dict()
16  )
17 
18  moveit_configs = MoveItConfigsBuilder("moveit_resources_panda").to_dict()
19 
20  # moveit_ros_benchmark demo executable
21  moveit_ros_benchmarks_node = Node(
22  node_name="moveit_run_benchmark",
23  package="moveit_ros_benchmarks",
24  # prefix='xterm -e gdb --ex=run --args',
25  node_executable="moveit_combine_predefined_poses_benchmark",
26  output="screen",
27  parameters=[
28  moveit_ros_benchmarks_config,
29  moveit_configs,
30  ],
31  )
32 
33  return LaunchDescription([moveit_ros_benchmarks_node])