moveit2
The MoveIt Motion Planning Framework for ROS 2.
Loading...
Searching...
No Matches
test_moveit_resources_configs.py
Go to the documentation of this file.
1from moveit_configs_utils import MoveItConfigsBuilder
2
3
5 for pkg_name in ["moveit_resources_fanuc", "moveit_resources_panda"]:
6 try:
7 config = MoveItConfigsBuilder(pkg_name)
8 assert config.to_dict()
9 except RuntimeError as e:
10 assert False, f"Default {pkg_name} configuration failed to build: {e}"
11
12
14 try:
15 moveit_config = (
16 MoveItConfigsBuilder("moveit_resources_panda")
17 .robot_description(file_path="config/panda.urdf.xacro")
18 .robot_description_semantic(file_path="config/panda.srdf")
19 .trajectory_execution(file_path="config/gripper_moveit_controllers.yaml")
20 )
21 assert moveit_config.to_dict()
22 except RuntimeError as e:
23 assert False, f"moveit_resources_panda gripper config failed to build: {e}"