moveit2
The MoveIt Motion Planning Framework for ROS 2.
demo_panda.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="demo1.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  name="moveit_run_benchmark",
23  package="moveit_ros_benchmarks",
24  # prefix='xterm -e gdb --ex=run --args',
25  executable="moveit_run_benchmark",
26  output="screen",
27  parameters=[
28  moveit_ros_benchmarks_config,
29  moveit_configs,
30  ],
31  )
32 
33  # Warehouse mongodb server
34  mongodb_server_node = Node(
35  package="warehouse_ros_mongo",
36  executable="mongo_wrapper_ros.py",
37  parameters=[
38  {"warehouse_port": 33829},
39  {"warehouse_host": "localhost"},
40  {"warehouse_plugin": "warehouse_ros_mongo::MongoDatabaseConnection"},
41  ],
42  output="screen",
43  )
44 
45  return LaunchDescription([moveit_ros_benchmarks_node, mongodb_server_node])
def generate_launch_description()