|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
2 | | -<root BTCPP_format="4" main_tree_to_execute="Run SAM 2 ONNX"> |
| 1 | +<?xml version="1.0" encoding="utf-8" ?> |
| 2 | +<root |
| 3 | + BTCPP_format="4" |
| 4 | + main_tree_to_execute="Segment Point Cloud from Clicked Point" |
| 5 | +> |
3 | 6 | <!--//////////--> |
4 | | - <BehaviorTree ID="Run SAM 2 ONNX" _description="Captures a point cloud and and filters it to only include points of a segmented object. The user is prompted to select the object to be segment using clicked points." _favorite="true"> |
| 7 | + <BehaviorTree |
| 8 | + ID="Segment Point Cloud from Clicked Point" |
| 9 | + _description="Captures a point cloud and requests the user to click an object in the image to be segmented. The point cloud is then filtered to only include the selected object." |
| 10 | + _favorite="true" |
| 11 | + > |
5 | 12 | <Control ID="Sequence"> |
6 | | - <Action ID="ClearSnapshot"/> |
7 | | - <Action ID="GetImage" topic_name="/wrist_camera/color"/> |
8 | | - <Action ID="GetPointsFromUser" point_prompts="Select a prompt point 1;Select a prompt point 2" point_names="Point1;Point2" view_name="/wrist_camera/color"/> |
9 | | - <Action ID="SAM2Segmentation"/> |
10 | | - <Action ID="GetPointCloud" topic_name="/wrist_camera/points"/> |
11 | | - <Action ID="GetCameraInfo" topic_name="/wrist_camera/camera_info" message_out="{camera_info}" timeout_sec="5.000000"/> |
12 | | - <Action ID="GetMasks3DFromMasks2D"/> |
| 13 | + <Action ID="ClearSnapshot" /> |
| 14 | + <Action ID="GetImage" topic_name="/wrist_camera/color" /> |
| 15 | + <Action |
| 16 | + ID="GetPointsFromUser" |
| 17 | + point_prompts="Select the object to be segmented;" |
| 18 | + point_names="Point1;" |
| 19 | + view_name="/wrist_camera/color" |
| 20 | + /> |
| 21 | + <Action ID="SAM2Segmentation" /> |
| 22 | + <Action ID="GetPointCloud" topic_name="/wrist_camera/points" /> |
| 23 | + <Action |
| 24 | + ID="GetCameraInfo" |
| 25 | + topic_name="/wrist_camera/camera_info" |
| 26 | + message_out="{camera_info}" |
| 27 | + timeout_sec="5.000000" |
| 28 | + /> |
| 29 | + <Action ID="GetMasks3DFromMasks2D" /> |
13 | 30 | <Decorator ID="ForEachMask3D" vector_in="{masks3d}" out="{mask3d}"> |
14 | | - <Action ID="GetPointCloudFromMask3D" point_cloud="{point_cloud}"/> |
| 31 | + <Action ID="GetPointCloudFromMask3D" point_cloud="{point_cloud}" /> |
15 | 32 | </Decorator> |
16 | | - <Action ID="SendPointCloudToUI" point_cloud="{point_cloud_fragment}"/> |
17 | | - <Action ID="PublishPointCloud" point_cloud="{point_cloud_fragment}"/> |
18 | | - <Action ID="SwitchUIPrimaryView"/> |
| 33 | + <Action ID="SendPointCloudToUI" point_cloud="{point_cloud_fragment}" /> |
| 34 | + <Action ID="PublishPointCloud" point_cloud="{point_cloud_fragment}" /> |
| 35 | + <Action ID="SwitchUIPrimaryView" /> |
19 | 36 | </Control> |
20 | 37 | </BehaviorTree> |
21 | 38 | <TreeNodesModel> |
22 | | - <SubTree ID="Run SAM 2 ONNX"/> |
| 39 | + <SubTree ID="Segment Point Cloud from Clicked Point" /> |
23 | 40 | </TreeNodesModel> |
24 | 41 | </root> |
0 commit comments