|
1 | 1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | | -<root BTCPP_format="4" main_tree_to_execute="Constrained Pick and Place"> |
| 2 | +<root BTCPP_format="4" main_tree_to_execute="Move Beakers to Burners"> |
3 | 3 | <!--//////////--> |
4 | 4 | <BehaviorTree |
5 | | - ID="Constrained Pick and Place" |
6 | | - _description="More advanced example of picking and placing an (invisible) object with orientation constraints enforced on the gripper's motion" |
7 | | - _favorite="false" |
| 5 | + ID="Move Beakers to Burners" |
| 6 | + _description="Example of picking and placing objects with orientation constraints enforced on the arm's motion" |
| 7 | + _favorite="true" |
| 8 | + _subtreeOnly="false" |
8 | 9 | > |
9 | 10 | <Control ID="Sequence"> |
10 | 11 | <SubTree |
11 | 12 | ID="Move to Waypoint" |
12 | 13 | _collapsed="true" |
13 | | - waypoint_name="Look at Table" |
| 14 | + constraints="{constraints}" |
| 15 | + waypoint_name="Beaker 1a - Pre Pick" |
14 | 16 | joint_group_name="manipulator" |
15 | 17 | controller_names="/joint_trajectory_controller" |
16 | 18 | velocity_scale_factor="1.0" |
|
20 | 22 | keep_orientation="false" |
21 | 23 | /> |
22 | 24 | <SubTree ID="Open Gripper" /> |
23 | | - <Decorator ID="KeepRunningUntilFailure"> |
24 | | - <Control ID="Sequence"> |
25 | | - <!--Move to pick location--> |
26 | | - <SubTree |
27 | | - ID="Move to Waypoint" |
28 | | - waypoint_name="Above Pick Cube" |
29 | | - joint_group_name="manipulator" |
30 | | - controller_names="/joint_trajectory_controller" |
31 | | - velocity_scale_factor="1.0" |
32 | | - acceleration_scale_factor="1.0" |
33 | | - link_padding="0.01" |
34 | | - keep_orientation_tolerance="0.05" |
35 | | - keep_orientation="true" |
36 | | - /> |
37 | | - <SubTree |
38 | | - ID="Move to Waypoint" |
39 | | - waypoint_name="Pick Cube" |
40 | | - joint_group_name="manipulator" |
41 | | - controller_names="/joint_trajectory_controller" |
42 | | - velocity_scale_factor="1.0" |
43 | | - acceleration_scale_factor="1.0" |
44 | | - link_padding="0.01" |
45 | | - keep_orientation_tolerance="0.05" |
46 | | - keep_orientation="true" |
47 | | - /> |
48 | | - <!--We force success as the gripper closes, since we are commanding a position it will never reach (fingers fully closed)--> |
49 | | - <Decorator ID="ForceSuccess"> |
50 | | - <SubTree ID="Close Gripper" /> |
51 | | - </Decorator> |
52 | | - <!--Move to place (drop) location--> |
53 | | - <SubTree |
54 | | - ID="Move to Waypoint" |
55 | | - controller_names="/joint_trajectory_controller" |
56 | | - joint_group_name="manipulator" |
57 | | - _collapsed="true" |
58 | | - waypoint_name="Above Pick Cube" |
59 | | - velocity_scale_factor="1.0" |
60 | | - acceleration_scale_factor="1.0" |
61 | | - link_padding="0.01" |
62 | | - keep_orientation_tolerance="0.05" |
63 | | - keep_orientation="true" |
64 | | - /> |
65 | | - <SubTree |
66 | | - ID="Move to Waypoint" |
67 | | - controller_names="/joint_trajectory_controller" |
68 | | - joint_group_name="manipulator" |
69 | | - _collapsed="true" |
70 | | - waypoint_name="Above Place Cube" |
71 | | - velocity_scale_factor="1.0" |
72 | | - acceleration_scale_factor="1.0" |
73 | | - link_padding="0.01" |
74 | | - keep_orientation_tolerance="0.05" |
75 | | - keep_orientation="true" |
76 | | - /> |
77 | | - <SubTree |
78 | | - ID="Move to Waypoint" |
79 | | - controller_names="/joint_trajectory_controller" |
80 | | - joint_group_name="manipulator" |
81 | | - _collapsed="true" |
82 | | - waypoint_name="Place Cube" |
83 | | - velocity_scale_factor="1.0" |
84 | | - acceleration_scale_factor="1.0" |
85 | | - link_padding="0.01" |
86 | | - keep_orientation_tolerance="0.05" |
87 | | - keep_orientation="true" |
88 | | - /> |
89 | | - <SubTree ID="Open Gripper" /> |
90 | | - <SubTree |
91 | | - ID="Move to Waypoint" |
92 | | - controller_names="/joint_trajectory_controller" |
93 | | - joint_group_name="manipulator" |
94 | | - _collapsed="true" |
95 | | - waypoint_name="Above Place Cube" |
96 | | - velocity_scale_factor="1.0" |
97 | | - acceleration_scale_factor="1.0" |
98 | | - link_padding="0.01" |
99 | | - keep_orientation_tolerance="0.05" |
100 | | - keep_orientation="true" |
101 | | - /> |
102 | | - <SubTree |
103 | | - ID="Move to Waypoint" |
104 | | - controller_names="/joint_trajectory_controller" |
105 | | - joint_group_name="manipulator" |
106 | | - _collapsed="true" |
107 | | - waypoint_name="Place Cube" |
108 | | - velocity_scale_factor="1.0" |
109 | | - acceleration_scale_factor="1.0" |
110 | | - link_padding="0.01" |
111 | | - keep_orientation_tolerance="0.05" |
112 | | - keep_orientation="true" |
113 | | - /> |
114 | | - <SubTree ID="Close Gripper" /> |
115 | | - <SubTree |
116 | | - ID="Move to Waypoint" |
117 | | - controller_names="/joint_trajectory_controller" |
118 | | - joint_group_name="manipulator" |
119 | | - _collapsed="true" |
120 | | - waypoint_name="Above Place Cube" |
121 | | - velocity_scale_factor="1.0" |
122 | | - acceleration_scale_factor="1.0" |
123 | | - link_padding="0.01" |
124 | | - keep_orientation_tolerance="0.05" |
125 | | - keep_orientation="true" |
126 | | - /> |
127 | | - <SubTree |
128 | | - ID="Move to Waypoint" |
129 | | - controller_names="/joint_trajectory_controller" |
130 | | - joint_group_name="manipulator" |
131 | | - _collapsed="true" |
132 | | - waypoint_name="Above Pick Cube" |
133 | | - velocity_scale_factor="1.0" |
134 | | - acceleration_scale_factor="1.0" |
135 | | - link_padding="0.01" |
136 | | - keep_orientation_tolerance="0.05" |
137 | | - keep_orientation="true" |
138 | | - /> |
139 | | - <SubTree |
140 | | - ID="Move to Waypoint" |
141 | | - waypoint_name="Pick Cube" |
142 | | - joint_group_name="manipulator" |
143 | | - controller_names="/joint_trajectory_controller" |
144 | | - velocity_scale_factor="1.0" |
145 | | - acceleration_scale_factor="1.0" |
146 | | - link_padding="0.01" |
147 | | - keep_orientation_tolerance="0.05" |
148 | | - keep_orientation="true" |
149 | | - /> |
150 | | - <SubTree ID="Open Gripper" /> |
151 | | - </Control> |
152 | | - </Decorator> |
| 25 | + <SubTree |
| 26 | + ID="Constrained Pick and Place Subtree" |
| 27 | + pre_pick="Beaker 1a - Pre Pick" |
| 28 | + pick="Beaker 1b - Pick" |
| 29 | + pre_place="Beaker 1c - Pre Place" |
| 30 | + place="Beaker 1d - Place" |
| 31 | + name="Beaker 1" |
| 32 | + /> |
| 33 | + <SubTree |
| 34 | + ID="Constrained Pick and Place Subtree" |
| 35 | + pre_pick="Beaker 2a - Pre Pick" |
| 36 | + pick="Beaker 2b - Pick" |
| 37 | + pre_place="Beaker 2c - Pre Place" |
| 38 | + place="Beaker 2d - Place" |
| 39 | + name="Beaker 2" |
| 40 | + /> |
| 41 | + <SubTree |
| 42 | + ID="Constrained Pick and Place Subtree" |
| 43 | + pre_pick="Beaker 3a - Pre Pick" |
| 44 | + pick="Beaker 3b - Pick" |
| 45 | + pre_place="Beaker 3c - Pre Place" |
| 46 | + place="Beaker 3d - Place" |
| 47 | + name="Beaker 3" |
| 48 | + /> |
153 | 49 | </Control> |
154 | 50 | </BehaviorTree> |
155 | 51 | <TreeNodesModel> |
156 | | - <SubTree ID="Constrained Pick and Place" /> |
| 52 | + <SubTree ID="Move Beakers to Burners" /> |
157 | 53 | </TreeNodesModel> |
158 | 54 | </root> |
0 commit comments