moveit2
The MoveIt Motion Planning Framework for ROS 2.
hybrid_planning_demo.launch.py
Go to the documentation of this file.
1 import launch
2 import os
3 import sys
4 
5 from launch_ros.actions import Node
6 
7 sys.path.append(os.path.dirname(__file__))
8 from hybrid_planning_common import (
9  generate_common_hybrid_launch_description,
10  get_robot_description,
11  get_robot_description_semantic,
12  load_yaml,
13 )
14 
15 
17  # generate_common_hybrid_launch_description() returns a list of nodes to launch
19  robot_description = get_robot_description()
20  robot_description_semantic = get_robot_description_semantic()
21 
22  # Demo node
23  common_hybrid_planning_param = load_yaml(
24  "moveit_hybrid_planning", "config/common_hybrid_planning_params.yaml"
25  )
26  demo_node = Node(
27  package="moveit_hybrid_planning",
28  executable="hybrid_planning_demo_node",
29  name="hybrid_planning_demo_node",
30  output="screen",
31  parameters=[
34  common_hybrid_planning_param,
35  ],
36  )
37 
38  return launch.LaunchDescription(common_launch + [demo_node])
def load_yaml(package_name, file_path)