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