Closed AndyZe closed 2 years ago
With a client, we started using a launch_common.py script that defines these functions / variables:
launch_common.py
def load_file(package_name, file_path): def load_yaml(package_name, file_path): def load_robot_description(); planning_pipeline_config
It can be used from other Python files like this:
import launch_common ... parameters=[ robot_description, launch_common.robot_description_semantic, launch_common.robot_description_planning, launch_common.robot_description_kinematics, ompl_planning_pipeline_config ] ... ompl_planning_yaml = launch_common.load_yaml( 'moveit_resources_panda_moveit_config', 'config/ompl_planning.yaml' )
This reduces copy/paste a lot!
Should be fixed with https://github.com/ros-planning/moveit2/pull/591, I'll finish the remaining work today and ask you for a review
Can be closed?
With a client, we started using a
launch_common.py
script that defines these functions / variables:It can be used from other Python files like this:
This reduces copy/paste a lot!