This repository has been archived by the owner on Dec 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some SwitchUIPrimaryView Behaviors (#232)
- Loading branch information
Showing
2 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<root BTCPP_format="4" main_tree_to_execute="Take Snapshot"> | ||
<!-- ////////// --> | ||
<BehaviorTree ID="Take Snapshot" _description="Take a point cloud snapshot and add to collision scene" _favorite="true"> | ||
<Control ID="Sequence"> | ||
<Action ID="GetPointCloud" topic_name="/wrist_mounted_camera/depth/color/points" message_out="{point_cloud}" /> | ||
<Action ID="UpdatePlanningSceneService" point_cloud="{point_cloud}" point_cloud_service="/point_cloud_service"/> | ||
<Control ID="Fallback" name="TryGetStringFromUser"> | ||
<Action ID="GetStringFromUser" parameter_name="take_snapshot.uuid" parameter_value="{uuid}" /> | ||
<!-- if we fail to get the string from the user fallback to an empty value for the uuid --> | ||
<Action ID="Script" code="uuid := ''"/> | ||
</Control> | ||
<Action ID="SendPointCloudToUI" point_cloud="{point_cloud}" sensor_name="scene_scan_camera" pcd_topic="/pcd_pointcloud_captures" point_cloud_uuid="{uuid}"/> | ||
</Control> | ||
</BehaviorTree> | ||
<root BTCPP_format="4" main_tree_to_execute="Take Snapshot"> | ||
<!-- ////////// --> | ||
<BehaviorTree ID="Take Snapshot" _description="Take a point cloud snapshot and add to collision scene" _favorite="true"> | ||
<Control ID="Sequence"> | ||
<Action ID="SwitchUIPrimaryView" primary_view_name="Visualization"/> | ||
<Action ID="GetPointCloud" topic_name="/wrist_mounted_camera/depth/color/points" message_out="{point_cloud}"/> | ||
<Action ID="UpdatePlanningSceneService" point_cloud="{point_cloud}" point_cloud_service="/point_cloud_service"/> | ||
<Control ID="Fallback" name="TryGetStringFromUser"> | ||
<Action ID="GetStringFromUser" parameter_name="take_snapshot.uuid" parameter_value="{uuid}"/> | ||
<!-- if we fail to get the string from the user fallback to an empty value for the uuid --> | ||
<Action ID="Script" code="uuid := ''"/> | ||
</Control> | ||
<Action ID="SendPointCloudToUI" point_cloud="{point_cloud}" sensor_name="scene_scan_camera" pcd_topic="/pcd_pointcloud_captures" point_cloud_uuid="{uuid}"/> | ||
</Control> | ||
</BehaviorTree> | ||
</root> |