|
11 | 11 | > |
12 | 12 | <Control ID="Sequence"> |
13 | 13 | <!--Move to pick location--> |
14 | | - <!--Note: Sampling based planners can be non-deterministic. The retry decorator improves the likelihood of success--> |
15 | | - <Decorator ID="RetryUntilSuccessful" num_attempts="3"> |
16 | | - <SubTree |
17 | | - ID="Move to Waypoint" |
18 | | - waypoint_name="{pre_pick}" |
19 | | - joint_group_name="manipulator" |
20 | | - controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
21 | | - planner_interface="moveit_default" |
22 | | - keep_orientation="true" |
23 | | - keep_orientation_tolerance="0.2" |
24 | | - /> |
25 | | - </Decorator> |
26 | | - <Decorator ID="RetryUntilSuccessful" num_attempts="3"> |
27 | | - <SubTree |
28 | | - ID="Move to Waypoint" |
29 | | - waypoint_name="{pick}" |
30 | | - joint_group_name="manipulator" |
31 | | - controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
32 | | - planner_interface="moveit_default" |
33 | | - keep_orientation="true" |
34 | | - keep_orientation_tolerance="0.2" |
35 | | - /> |
36 | | - </Decorator> |
| 14 | + <SubTree |
| 15 | + ID="Move to Waypoint" |
| 16 | + waypoint_name="{pre_pick}" |
| 17 | + joint_group_name="manipulator" |
| 18 | + controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
| 19 | + planner_interface="moveit_default" |
| 20 | + keep_orientation="true" |
| 21 | + keep_orientation_tolerance="0.2" |
| 22 | + acceleration_scale_factor="1.0" |
| 23 | + controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" |
| 24 | + link_padding="0.01" |
| 25 | + velocity_scale_factor="1.0" |
| 26 | + /> |
| 27 | + <SubTree |
| 28 | + ID="Move to Waypoint" |
| 29 | + waypoint_name="{pick}" |
| 30 | + joint_group_name="manipulator" |
| 31 | + controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
| 32 | + planner_interface="moveit_default" |
| 33 | + keep_orientation="true" |
| 34 | + keep_orientation_tolerance="0.2" |
| 35 | + acceleration_scale_factor="1.0" |
| 36 | + controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" |
| 37 | + link_padding="0.01" |
| 38 | + velocity_scale_factor="1.0" |
| 39 | + /> |
37 | 40 | <!--We force success as the gripper closes, since we are commanding a position it will never reach (fingers fully closed)--> |
38 | 41 | <Decorator ID="ForceSuccess"> |
39 | 42 | <SubTree ID="Close Gripper" /> |
40 | 43 | </Decorator> |
41 | 44 | <!--Move to place (drop) location--> |
42 | | - <Decorator ID="RetryUntilSuccessful" num_attempts="3"> |
43 | | - <SubTree |
44 | | - ID="Move to Waypoint" |
45 | | - controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
46 | | - joint_group_name="manipulator" |
47 | | - planner_interface="moveit_default" |
48 | | - keep_orientation="true" |
49 | | - keep_orientation_tolerance="0.2" |
50 | | - _collapsed="true" |
51 | | - waypoint_name="{pre_pick}" |
52 | | - /> |
53 | | - </Decorator> |
54 | | - <Decorator ID="RetryUntilSuccessful" num_attempts="3"> |
55 | | - <SubTree |
56 | | - ID="Move to Waypoint" |
57 | | - controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
58 | | - joint_group_name="manipulator" |
59 | | - planner_interface="moveit_default" |
60 | | - keep_orientation="true" |
61 | | - keep_orientation_tolerance="0.2" |
62 | | - _collapsed="true" |
63 | | - waypoint_name="{pre_place}" |
64 | | - /> |
65 | | - </Decorator> |
66 | | - <Decorator ID="RetryUntilSuccessful" num_attempts="3"> |
67 | | - <SubTree |
68 | | - ID="Move to Waypoint" |
69 | | - controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
70 | | - joint_group_name="manipulator" |
71 | | - planner_interface="moveit_default" |
72 | | - keep_orientation="true" |
73 | | - keep_orientation_tolerance="0.2" |
74 | | - _collapsed="true" |
75 | | - waypoint_name="{place}" |
76 | | - /> |
77 | | - </Decorator> |
| 45 | + <SubTree |
| 46 | + ID="Move to Waypoint" |
| 47 | + controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
| 48 | + joint_group_name="manipulator" |
| 49 | + planner_interface="moveit_default" |
| 50 | + keep_orientation="true" |
| 51 | + keep_orientation_tolerance="0.2" |
| 52 | + _collapsed="true" |
| 53 | + waypoint_name="{pre_pick}" |
| 54 | + acceleration_scale_factor="1.0" |
| 55 | + controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" |
| 56 | + link_padding="0.01" |
| 57 | + velocity_scale_factor="1.0" |
| 58 | + /> |
| 59 | + <SubTree |
| 60 | + ID="Move to Waypoint" |
| 61 | + controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
| 62 | + joint_group_name="manipulator" |
| 63 | + planner_interface="moveit_default" |
| 64 | + keep_orientation="true" |
| 65 | + keep_orientation_tolerance="0.2" |
| 66 | + _collapsed="true" |
| 67 | + waypoint_name="{pre_place}" |
| 68 | + acceleration_scale_factor="1.0" |
| 69 | + controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" |
| 70 | + link_padding="0.01" |
| 71 | + velocity_scale_factor="1.0" |
| 72 | + /> |
| 73 | + <SubTree |
| 74 | + ID="Move to Waypoint" |
| 75 | + controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
| 76 | + joint_group_name="manipulator" |
| 77 | + planner_interface="moveit_default" |
| 78 | + keep_orientation="true" |
| 79 | + keep_orientation_tolerance="0.2" |
| 80 | + _collapsed="true" |
| 81 | + waypoint_name="{place}" |
| 82 | + acceleration_scale_factor="1.0" |
| 83 | + controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" |
| 84 | + link_padding="0.01" |
| 85 | + velocity_scale_factor="1.0" |
| 86 | + /> |
78 | 87 | <SubTree ID="Open Gripper" /> |
79 | | - <Decorator ID="RetryUntilSuccessful" num_attempts="3"> |
80 | | - <SubTree |
81 | | - ID="Move to Waypoint" |
82 | | - controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
83 | | - joint_group_name="manipulator" |
84 | | - planner_interface="moveit_default" |
85 | | - keep_orientation="true" |
86 | | - keep_orientation_tolerance="0.2" |
87 | | - _collapsed="true" |
88 | | - waypoint_name="{pre_place}" |
89 | | - /> |
90 | | - </Decorator> |
| 88 | + <SubTree |
| 89 | + ID="Move to Waypoint" |
| 90 | + controller_names="/joint_trajectory_controller /robotiq_gripper_controller" |
| 91 | + joint_group_name="manipulator" |
| 92 | + planner_interface="moveit_default" |
| 93 | + keep_orientation="true" |
| 94 | + keep_orientation_tolerance="0.2" |
| 95 | + _collapsed="true" |
| 96 | + waypoint_name="{pre_place}" |
| 97 | + acceleration_scale_factor="1.0" |
| 98 | + controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" |
| 99 | + link_padding="0.01" |
| 100 | + velocity_scale_factor="1.0" |
| 101 | + /> |
91 | 102 | </Control> |
92 | 103 | </BehaviorTree> |
93 | 104 | <TreeNodesModel> |
94 | 105 | <SubTree ID="Constrained Pick and Place Subtree"> |
95 | | - <inout_port name="pre_pick" default="" /> |
96 | 106 | <inout_port name="pick" default="" /> |
97 | | - <inout_port name="pre_place" default="" /> |
98 | 107 | <inout_port name="place" default="" /> |
| 108 | + <inout_port name="pre_pick" default="" /> |
| 109 | + <inout_port name="pre_place" default="" /> |
| 110 | + <MetadataFields> |
| 111 | + <Metadata runnable="false" /> |
| 112 | + </MetadataFields> |
| 113 | + <MetadataFields> |
| 114 | + <Metadata runnable="false" /> |
| 115 | + </MetadataFields> |
99 | 116 | </SubTree> |
100 | 117 | </TreeNodesModel> |
101 | 118 | </root> |
0 commit comments