Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Remove local PickObject subtree
Browse files Browse the repository at this point in the history
  • Loading branch information
sea-bass committed Nov 13, 2023
1 parent 6718a4b commit 08e5171
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<input_port name="max_rotation" default="0.2">The maximum angle allow between the average pose and the new sample (shortest angle between two pose quaternions).</input_port>
<output_port name="avg_pose" default="{avg_pose}">The calculated average pose.</output_port>
</SubTree>
<SubTree ID="PickObject">
<SubTree ID="Pick Object">
<description>
<p>
Picks an object at the specified grasp pose.
Expand Down
15 changes: 5 additions & 10 deletions src/picknik_ur_site_config/objectives/pick_object.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
<root BTCPP_format="4" main_tree_to_execute="Pick Object">
<BehaviorTree ID="Pick Object" _description="Pick up and lift a small object" _favorite="true">
<Control ID="Sequence" name="root">
<SubTree ID="OpenGripper"/>
<Action ID="GetPoseFromUser" parameter_name="pick_object.grasp_pose" parameter_value="{grasp_pose}" />
<SubTree ID="PickObject" grasp_pose="{grasp_pose}"/>
</Control>
</BehaviorTree>
<BehaviorTree ID="PickObject">
<Control ID="Sequence" name="pick_object_main">
<SubTree ID="Open Gripper"/>
<!-- Wrap in a ForceSuccess decorator so this can be used as both a top-level tree and subtree -->
<Decorator ID="ForceSuccess">
<Action ID="GetPoseFromUser" parameter_name="pick_object.grasp_pose" parameter_value="{grasp_pose}" />
</Decorator>
<Action ID="LoadObjectiveParameters" config_file_name="pick_object_config.yaml" parameters="{parameters}"/>
<Action ID="InitializeMTCTask" task_id="pick_object" controller_names="/joint_trajectory_controller /robotiq_gripper_controller" task="{pick_object_task}"/>
<Action ID="SetupMTCCurrentState" task="{pick_object_task}"/>
Expand All @@ -23,7 +21,4 @@
<Action ID="ExecuteMTCTask" solution="{pick_object_solution}"/>
</Control>
</BehaviorTree>
<BehaviorTree ID="OpenGripper">
<Action ID="MoveGripperAction" gripper_command_action_name="/robotiq_gripper_controller/gripper_cmd" position="0.0"/>
</BehaviorTree>
</root>

0 comments on commit 08e5171

Please sign in to comment.