|
| 1 | +<?xml version='1.0' encoding='UTF-8'?> |
| 2 | +<root BTCPP_format="4" main_tree_to_execute="Parallel Sort"> |
| 3 | + <BehaviorTree ID="Parallel Sort" _description="pleak" _favorite="false"> |
| 4 | + <Control ID="Sequence"> |
| 5 | + <Action ID="StopwatchBegin" timepoint="{timepoint}"/> |
| 6 | + <Control ID="Parallel" success_count="1" failure_count="1"> |
| 7 | + <Control ID="Sequence"> |
| 8 | + <SubTree ID="Find Red Block" _collapsed="true" object_centroid="{object_centroid}"/> |
| 9 | + <Action ID="Script" code="found:='red'"/> |
| 10 | + </Control> |
| 11 | + <Control ID="Sequence"> |
| 12 | + <SubTree ID="Find Green Block" _collapsed="true" object_centroid="{object_centroid}"/> |
| 13 | + <Action ID="Script" code="found:='green'"/> |
| 14 | + </Control> |
| 15 | + </Control> |
| 16 | + <Control ID="Sequence"> |
| 17 | + <SubTree ID="Open Right Gripper" _collapsed="true"/> |
| 18 | + <Action ID="InitializeMTCTask" task="{mtc_task}" timeout="-1.000000" trajectory_monitoring="false" controller_names="joint_trajectory_controller" task_id="right_grasp_task"/> |
| 19 | + <Action ID="SetupMTCCurrentState" task="{mtc_task}"/> |
| 20 | + <Action ID="SetupMTCPlanToPose" acceleration_scale_factor="1.000000" ik_frame="right_fr3_hand_tcp" keep_orientation="false" keep_orientation_link_names="right_fr3_hand_tcp" keep_orientation_tolerance="0.100000" link_padding="0.000000" max_iterations="5000" monitored_stage="current state" planning_group_name="right_arm" target_pose="{object_centroid}" task="{mtc_task}" trajectory_sampling_rate="100" velocity_scale_factor="1.000000"/> |
| 21 | + <Action ID="PlanMTCTask" solution="{mtc_solution}" task="{mtc_task}"/> |
| 22 | + <Action ID="ExecuteMTCTask" goal_duration_tolerance="-1.000000" solution="{mtc_solution}"/> |
| 23 | + <SubTree ID="Close Right Gripper" _collapsed="true"/> |
| 24 | + <Action ID="InitializeMTCTask" task="{mtc_task}" timeout="-1.000000" trajectory_monitoring="false" controller_names="joint_trajectory_controller" task_id="right_place_task"/> |
| 25 | + <Action ID="SetupMTCCurrentState" task="{mtc_task}"/> |
| 26 | + <Action ID="RetrieveWaypoint" joint_group_name="right_arm" waypoint_joint_state="{target_joint_state}" waypoint_name="Place Right"/> |
| 27 | + <Action ID="SetupMTCPlanToJointState" acceleration_scale_factor="1.000000" joint_state="{target_joint_state}" keep_orientation="false" keep_orientation_link_names="grasp_link" keep_orientation_tolerance="0.100000" link_padding="0.000000" max_iterations="5000" planning_group_name="manipulator" seed="0" task="{mtc_task}" trajectory_sampling_rate="100" velocity_scale_factor="1.000000"/> |
| 28 | + <Action ID="PlanMTCTask" solution="{mtc_solution}" task="{mtc_task}"/> |
| 29 | + <Action ID="ExecuteMTCTask" goal_duration_tolerance="-1.000000" solution="{mtc_solution}"/> |
| 30 | + <SubTree ID="Open Right Gripper" _collapsed="true"/> |
| 31 | + <SubTree ID="Move to Waypoint" _collapsed="true" acceleration_scale_factor="1.0" controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" controller_names="joint_trajectory_controller" joint_group_name="manipulator" keep_orientation="false" keep_orientation_tolerance="0.05" link_padding="0.01" seed="0" velocity_scale_factor="1.0" waypoint_name="Home"/> |
| 32 | + </Control> |
| 33 | + <Control ID="Fallback"> |
| 34 | + <Decorator ID="Precondition" else="FAILURE" if="found == "red""> |
| 35 | + <SubTree ID="Find Green Block" _collapsed="true" object_centroid="{object_centroid}"/> |
| 36 | + </Decorator> |
| 37 | + <SubTree ID="Find Red Block" _collapsed="true" object_centroid="{object_centroid}"/> |
| 38 | + </Control> |
| 39 | + <Control ID="Sequence"> |
| 40 | + <SubTree ID="Open Left Gripper" _collapsed="true"/> |
| 41 | + <Action ID="InitializeMTCTask" task="{mtc_task}" timeout="-1.000000" trajectory_monitoring="false" controller_names="joint_trajectory_controller" task_id="left_grasp_task"/> |
| 42 | + <Action ID="SetupMTCCurrentState" task="{mtc_task}"/> |
| 43 | + <Action ID="SetupMTCMoveAlongFrameAxis" acceleration_scale="1.000000" axis_frame="world" axis_x="0.000000" axis_y="0.000000" axis_z="1.000000" hand_frame="left_fr3_hand_tcp" ignore_environment_collisions="false" max_distance="0.1" min_distance="0.100000" planning_group_name="left_arm" task="{mtc_task}" velocity_scale="1.000000"/> |
| 44 | + <Action ID="SetupMTCPlanToPose" acceleration_scale_factor="1.000000" ik_frame="left_fr3_hand_tcp" keep_orientation="false" keep_orientation_link_names="left_fr3_hand_tcp" keep_orientation_tolerance="0.100000" link_padding="0.000000" max_iterations="5000" monitored_stage="current state" planning_group_name="left_arm" target_pose="{object_centroid}" task="{mtc_task}" trajectory_sampling_rate="100" velocity_scale_factor="1.000000"/> |
| 45 | + <Action ID="PlanMTCTask" solution="{mtc_solution}" task="{mtc_task}"/> |
| 46 | + <Action ID="ExecuteMTCTask" goal_duration_tolerance="-1.000000" solution="{mtc_solution}"/> |
| 47 | + <SubTree ID="Close Left Gripper" _collapsed="true"/> |
| 48 | + <Action ID="InitializeMTCTask" task="{mtc_task}" timeout="-1.000000" trajectory_monitoring="false" controller_names="joint_trajectory_controller" task_id="left_place_task"/> |
| 49 | + <Action ID="SetupMTCCurrentState" task="{mtc_task}"/> |
| 50 | + <Action ID="RetrieveWaypoint" joint_group_name="left_arm" waypoint_joint_state="{target_joint_state}" waypoint_name="Place Left"/> |
| 51 | + <Action ID="SetupMTCPlanToJointState" acceleration_scale_factor="1.000000" joint_state="{target_joint_state}" keep_orientation="false" keep_orientation_link_names="grasp_link" keep_orientation_tolerance="0.100000" link_padding="0.000000" max_iterations="5000" planning_group_name="manipulator" seed="0" task="{mtc_task}" trajectory_sampling_rate="100" velocity_scale_factor="1.000000"/> |
| 52 | + <Action ID="PlanMTCTask" solution="{mtc_solution}" task="{mtc_task}"/> |
| 53 | + <Action ID="ExecuteMTCTask" goal_duration_tolerance="-1.000000" solution="{mtc_solution}"/> |
| 54 | + <SubTree ID="Open Left Gripper" _collapsed="true"/> |
| 55 | + <SubTree ID="Move to Waypoint" _collapsed="true" acceleration_scale_factor="1.0" controller_action_server="/joint_trajectory_controller/follow_joint_trajectory" controller_names="joint_trajectory_controller" joint_group_name="manipulator" keep_orientation="false" keep_orientation_tolerance="0.05" link_padding="0.01" seed="0" velocity_scale_factor="1.0" waypoint_name="Home"/> |
| 56 | + </Control> |
| 57 | + <Action ID="StopwatchEnd" timepoint="{timepoint}"/> |
| 58 | + </Control> |
| 59 | + </BehaviorTree> |
| 60 | + <TreeNodesModel> |
| 61 | + <SubTree ID="Parallel Sort"> |
| 62 | + <MetadataFields> |
| 63 | + <Metadata subcategory="Motion - Execute"/> |
| 64 | + <Metadata runnable="true"/> |
| 65 | + </MetadataFields> |
| 66 | + </SubTree> |
| 67 | + </TreeNodesModel> |
| 68 | +</root> |
0 commit comments