|
1 | | -<?xml version="1.0" encoding="UTF-8" ?> |
2 | 1 | <root BTCPP_format="4" main_tree_to_execute="Pick April Tag Labeled Object"> |
3 | 2 | <!--//////////--> |
4 | 3 | <BehaviorTree |
|
9 | 8 | <Control ID="Sequence" name="TopLevelSequence"> |
10 | 9 | <SubTree ID="Look at table" _collapsed="true" /> |
11 | 10 | <Action ID="ClearSnapshot" /> |
12 | | - <SubTree ID="Wrist camera snapshot" _collapsed="true" /> |
| 11 | + <SubTree ID="Take wrist camera snapshot" _collapsed="true" /> |
13 | 12 | <Control ID="Sequence" name="Setup"> |
14 | 13 | <SubTree ID="Open Gripper" /> |
15 | 14 | </Control> |
|
28 | 27 | topic_name="/wrist_camera/color" |
29 | 28 | message_out="{image}" |
30 | 29 | /> |
| 30 | + <SubTree |
| 31 | + ID="Get AprilTag Pose from Image" |
| 32 | + image="{image}" |
| 33 | + camera_info="{camera_info}" |
| 34 | + parameters="{parameters}" |
| 35 | + _collapsed="true" |
| 36 | + detection_pose="{detection_pose}" |
| 37 | + /> |
31 | 38 | <Action |
32 | | - ID="DetectAprilTags" |
| 39 | + ID="TransformPose" |
| 40 | + output_pose="{view_pose}" |
| 41 | + input_pose="{detection_pose}" |
| 42 | + quaternion_xyzw="0;0;0;1" |
| 43 | + translation_xyz="0;-0.1;-0.15" |
| 44 | + /> |
| 45 | + <SubTree |
| 46 | + ID="Plan Move To Pose" |
| 47 | + target_pose="{view_pose}" |
| 48 | + move_to_pose_solution="{move_to_pose_solution}" |
| 49 | + /> |
| 50 | + <Action ID="ExecuteMTCTask" solution="{move_to_pose_solution}" /> |
| 51 | + <SubTree |
| 52 | + ID="Get AprilTag Pose from Image" |
33 | 53 | image="{image}" |
34 | 54 | camera_info="{camera_info}" |
35 | 55 | parameters="{parameters}" |
36 | | - detections="{detections}" |
| 56 | + _collapsed="true" |
| 57 | + detection_pose="{detection_pose}" |
37 | 58 | /> |
38 | | - <Action ID="GetDetectionPose" /> |
39 | | - <Action ID="TransformPoseFrame" input_pose="{detection_pose}" /> |
40 | 59 | <Action |
41 | 60 | ID="TransformPose" |
42 | 61 | output_pose="{offset_pose}" |
43 | | - input_pose="{output_pose}" |
| 62 | + input_pose="{detection_pose}" |
44 | 63 | quaternion_xyzw="0;0;0;1" |
45 | 64 | translation_xyz="0;0;-0.01" |
46 | 65 | /> |
|
69 | 88 | <Action ID="ExecuteMTCTask" solution="{pick_object_solution}" /> |
70 | 89 | </Control> |
71 | 90 | </BehaviorTree> |
| 91 | + <TreeNodesModel> |
| 92 | + <SubTree ID="Pick April Tag Labeled Object"> |
| 93 | + <MetadataFields> |
| 94 | + <Metadata subcategory="Application - Advanced Examples" /> |
| 95 | + </MetadataFields> |
| 96 | + </SubTree> |
| 97 | + </TreeNodesModel> |
72 | 98 | </root> |
0 commit comments