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.
Fix conflicting behavior IDs in ur_site_config (#389)
- Loading branch information
Showing
4 changed files
with
70 additions
and
178 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
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
64 changes: 64 additions & 0 deletions
64
src/picknik_ur_site_config/objectives/retreat_to_initial_pose.xml
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8" ?> | ||
<root BTCPP_format="4" main_tree_to_execute="Retreat To Initial Pose"> | ||
<BehaviorTree | ||
ID="Retreat To Initial Pose" | ||
_description="" | ||
_subtreeOnly="true" | ||
> | ||
<Control ID="Sequence"> | ||
<Action | ||
ID="InitializeMTCTask" | ||
task_id="close_cabinet_door_retreat" | ||
controller_names="/joint_trajectory_controller" | ||
task="{retreat_task}" | ||
/> | ||
<Action ID="SetupMTCCurrentState" task="{retreat_task}" /> | ||
<Action | ||
ID="SetupMTCUpdateGroupCollisionRule" | ||
name="AllowGripperCollisionWithOctomap" | ||
group_name="gripper" | ||
object_name="<octomap>" | ||
allow_collision="true" | ||
task="{retreat_task}" | ||
/> | ||
<Action | ||
ID="SetupMTCCartesianMoveToJointState" | ||
joint_state="{pre_approach_robot_state}" | ||
planning_group_name="manipulator" | ||
task="{retreat_task}" | ||
/> | ||
<Action | ||
ID="SetupMTCUpdateGroupCollisionRule" | ||
name="ForbidGripperCollisionWithOctomap" | ||
group_name="gripper" | ||
object_name="<octomap>" | ||
allow_collision="false" | ||
task="{retreat_task}" | ||
/> | ||
<Action | ||
ID="SetupMTCMoveToJointState" | ||
joint_state="{initial_robot_state}" | ||
planning_group_name="manipulator" | ||
task="{retreat_task}" | ||
/> | ||
<Action | ||
ID="PlanMTCTask" | ||
solution="{return_to_initial_waypoint_solution}" | ||
task="{retreat_task}" | ||
/> | ||
<Action | ||
ID="ExecuteMTCTask" | ||
solution="{return_to_initial_waypoint_solution}" | ||
/> | ||
</Control> | ||
</BehaviorTree> | ||
<TreeNodesModel> | ||
<SubTree ID="Retreat To Initial Pose"> | ||
<input_port | ||
name="pre_approach_robot_state" | ||
default="{pre_approach_robot_state}" | ||
/> | ||
<input_port name="initial_robot_state" default="{initial_robot_state}" /> | ||
</SubTree> | ||
</TreeNodesModel> | ||
</root> |