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.
* refactored teleoperate so that it does not use subtrees, and make the subtrees that were used now useable elsewhere --------- Co-authored-by: Sebastian Jahr <[email protected]>
- Loading branch information
Showing
10 changed files
with
135 additions
and
97 deletions.
There are no files selected for viewing
33 changes: 15 additions & 18 deletions
33
src/picknik_ur_base_config/objectives/interpolate_to_joint_state.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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<root BTCPP_format="4" main_tree_to_execute="Interpolate to Joint State"> | ||
<BehaviorTree ID="Interpolate to Joint State" _description="Move to a specified joint state using joint interpolation"> | ||
<Control ID="Fallback" name="root"> | ||
<Control ID="Sequence"> | ||
<Action ID="RetrieveJointStateParameter" timeout_sec="-1" joint_state="{target_joint_state}"/> | ||
<Action ID="InitializeMTCTask" task_id="interpolate_to_joint_state" controller_names="/joint_trajectory_controller /robotiq_gripper_controller" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="SetupMTCInterpolateToJointState" joint_state="{target_joint_state}" name="SetupMTCInterpolateToJointState_First" planning_group_name="manipulator" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="PlanMTCTask" solution="{interpolate_to_waypoint_solution}" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="ExecuteMTCTask" solution="{interpolate_to_waypoint_solution}"/> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
</Control> | ||
<Control ID="Sequence"> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
<Action ID="AlwaysFailure"/> | ||
</Control> | ||
</Control> | ||
</BehaviorTree> | ||
<BehaviorTree ID="Interpolate to Joint State" _description="Move to a specified joint state using joint interpolation"> | ||
<Control ID="Sequence"> | ||
<Action ID="InitializeMTCTask" task_id="interpolate_to_joint_state" controller_names="/joint_trajectory_controller /robotiq_gripper_controller" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="SetupMTCInterpolateToJointState" joint_state="{target_joint_state}" name="SetupMTCInterpolateToJointState_First" planning_group_name="manipulator" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="PlanMTCTask" solution="{interpolate_to_waypoint_solution}" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="ExecuteMTCTask" solution="{interpolate_to_waypoint_solution}"/> | ||
</Control> | ||
</BehaviorTree> | ||
<TreeNodesModel> | ||
<SubTree ID="Interpolate to Joint State"> | ||
<input_port name="target_joint_state" default="{target_joint_state}"/> | ||
</SubTree> | ||
</TreeNodesModel> | ||
</root> |
33 changes: 15 additions & 18 deletions
33
src/picknik_ur_base_config/objectives/move_to_joint_state.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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<root BTCPP_format="4" main_tree_to_execute="Move to Joint State"> | ||
<BehaviorTree ID="Move to Joint State" _description="Move to a specified joint state"> | ||
<Control ID="Fallback" name="root"> | ||
<Control ID="Sequence"> | ||
<Action ID="RetrieveJointStateParameter" timeout_sec="-1" joint_state="{target_joint_state}"/> | ||
<Action ID="InitializeMTCTask" task_id="move_to_joint_state" controller_names="/joint_trajectory_controller /robotiq_gripper_controller" task="{move_to_waypoint_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{move_to_waypoint_task}"/> | ||
<Action ID="SetupMTCMoveToJointState" joint_state="{target_joint_state}" name="SetupMTCMoveToJointState_First" planning_group_name="manipulator" task="{move_to_waypoint_task}" planner_interface="moveit_default" /> | ||
<Action ID="PlanMTCTask" solution="{move_to_waypoint_solution}" task="{move_to_waypoint_task}"/> | ||
<Action ID="ExecuteMTCTask" solution="{move_to_waypoint_solution}"/> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
</Control> | ||
<Control ID="Sequence"> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
<Action ID="AlwaysFailure"/> | ||
</Control> | ||
</Control> | ||
</BehaviorTree> | ||
<BehaviorTree ID="Move to Joint State" _description="Move to a specified joint state"> | ||
<Control ID="Sequence"> | ||
<Action ID="InitializeMTCTask" task_id="move_to_joint_state" controller_names="/joint_trajectory_controller /robotiq_gripper_controller" task="{move_to_waypoint_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{move_to_waypoint_task}"/> | ||
<Action ID="SetupMTCMoveToJointState" joint_state="{target_joint_state}" name="SetupMTCMoveToJointState_First" planning_group_name="manipulator" task="{move_to_waypoint_task}" planner_interface="moveit_default"/> | ||
<Action ID="PlanMTCTask" solution="{move_to_waypoint_solution}" task="{move_to_waypoint_task}"/> | ||
<Action ID="ExecuteMTCTask" solution="{move_to_waypoint_solution}"/> | ||
</Control> | ||
</BehaviorTree> | ||
<TreeNodesModel> | ||
<SubTree ID="Move to Joint State"> | ||
<input_port name="target_joint_state" default="{target_joint_state}"/> | ||
</SubTree> | ||
</TreeNodesModel> | ||
</root> |
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,21 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<root BTCPP_format="4" main_tree_to_execute="Move to Pose"> | ||
<BehaviorTree ID="Move to Pose" _description="Uses inverse kinematics to move the robot to a set gripper position"> | ||
<Control ID="Fallback" name="root"> | ||
<Control ID="Sequence"> | ||
<Action ID="RetrievePoseParameter" timeout_sec="-1" pose="{target_pose}"/> | ||
<Action ID="InitializeMTCTask" task_id="move_to_pose" controller_names="{controller_names}" task="{move_to_pose_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{move_to_pose_task}"/> | ||
<Action ID="SetupMTCMoveToPose" ik_frame="grasp_link" planning_group_name="manipulator" target_pose="{target_pose}" task="{move_to_pose_task}" planner_interface="moveit_default"/> | ||
<Action ID="PlanMTCTask" solution="{move_to_pose_solution}" task="{move_to_pose_task}"/> | ||
<SubTree ID="Wait for Trajectory Approval if User Available" solution="{move_to_pose_solution}"/> | ||
<Action ID="ExecuteMTCTask" solution="{move_to_pose_solution}" /> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
</Control> | ||
<Control ID="Sequence"> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
<Action ID="AlwaysFailure"/> | ||
</Control> | ||
</Control> | ||
</BehaviorTree> | ||
<BehaviorTree ID="Move to Pose" _description="Uses inverse kinematics to move the robot to a set gripper position"> | ||
<Control ID="Sequence"> | ||
<Action ID="InitializeMTCTask" task_id="move_to_pose" controller_names="/joint_trajectory_controller /robotiq_gripper_controller" task="{move_to_pose_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{move_to_pose_task}"/> | ||
<Action ID="SetupMTCMoveToPose" ik_frame="grasp_link" planning_group_name="manipulator" target_pose="{target_pose}" task="{move_to_pose_task}" planner_interface="moveit_default"/> | ||
<Action ID="PlanMTCTask" solution="{move_to_pose_solution}" task="{move_to_pose_task}"/> | ||
<SubTree ID="Wait for Trajectory Approval if User Available" solution="{move_to_pose_solution}"/> | ||
<Action ID="ExecuteMTCTask" solution="{move_to_pose_solution}"/> | ||
</Control> | ||
</BehaviorTree> | ||
<TreeNodesModel> | ||
<SubTree ID="Move to Pose"> | ||
<input_port name="target_pose" default="{target_pose}"/> | ||
</SubTree> | ||
</TreeNodesModel> | ||
</root> |
48 changes: 39 additions & 9 deletions
48
src/picknik_ur_base_config/objectives/request_teleoperation.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
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
13 changes: 5 additions & 8 deletions
13
src/picknik_ur_multi_arm_config/objectives/interpolate_to_joint_state.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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<root BTCPP_format="4" main_tree_to_execute="Interpolate to Joint State"> | ||
<BehaviorTree ID="Interpolate to Joint State" _description="Move to a specified joint state using joint interpolation"> | ||
<Control ID="Fallback" name="root"> | ||
<Control ID="Sequence"> | ||
<Action ID="RetrieveJointStateParameter" timeout_sec="-1" joint_state="{target_joint_state}"/> | ||
<Action ID="InitializeMTCTask" task_id="interpolate_to_joint_state" controller_names="/multi_arm_joint_trajectory_controller" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="SetupMTCInterpolateToJointState" joint_state="{target_joint_state}" name="SetupMTCInterpolateToJointState_First" planning_group_name="multi_arm_manipulator" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="PlanMTCTask" solution="{interpolate_to_waypoint_solution}" task="{interpolate_to_waypoint_task}"/> | ||
<Action ID="ExecuteMTCTask" solution="{interpolate_to_waypoint_solution}"/> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
</Control> | ||
<Control ID="Sequence"> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
<Action ID="AlwaysFailure"/> | ||
</Control> | ||
</Control> | ||
</BehaviorTree> | ||
<TreeNodesModel> | ||
<SubTree ID="Interpolate to Joint State"> | ||
<input_port name="target_joint_state" default="{target_joint_state}"/> | ||
</SubTree> | ||
</TreeNodesModel> | ||
</root> |
13 changes: 5 additions & 8 deletions
13
src/picknik_ur_multi_arm_config/objectives/move_to_joint_state.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 |
---|---|---|
@@ -1,20 +1,17 @@ | ||
<?xml version="1.0"?> | ||
<root BTCPP_format="4" main_tree_to_execute="Move to Joint State"> | ||
<BehaviorTree ID="Move to Joint State" _description="Move to a specified joint state"> | ||
<Control ID="Fallback" name="root"> | ||
<Control ID="Sequence"> | ||
<Action ID="RetrieveJointStateParameter" timeout_sec="-1" joint_state="{target_joint_state}"/> | ||
<Action ID="InitializeMTCTask" task_id="move_to_joint_state" controller_names="/multi_arm_joint_trajectory_controller" task="{move_to_waypoint_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{move_to_waypoint_task}"/> | ||
<Action ID="SetupMTCMoveToJointState" joint_state="{target_joint_state}" name="SetupMTCMoveToJointState_First" planning_group_name="multi_arm_manipulator" task="{move_to_waypoint_task}" planner_interface="moveit_default"/> | ||
<Action ID="PlanMTCTask" solution="{move_to_waypoint_solution}" task="{move_to_waypoint_task}"/> | ||
<Action ID="ExecuteMTCTask" solution="{move_to_waypoint_solution}"/> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
</Control> | ||
<Control ID="Sequence"> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
<Action ID="AlwaysFailure"/> | ||
</Control> | ||
</Control> | ||
</BehaviorTree> | ||
<TreeNodesModel> | ||
<SubTree ID="Move to Joint State"> | ||
<input_port name="target_joint_state" default="{target_joint_state}"/> | ||
</SubTree> | ||
</TreeNodesModel> | ||
</root> |
13 changes: 5 additions & 8 deletions
13
src/picknik_ur_multi_arm_config/objectives/move_to_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 |
---|---|---|
@@ -1,21 +1,18 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<root BTCPP_format="4" main_tree_to_execute="Move to Pose"> | ||
<BehaviorTree ID="Move to Pose" _description="Uses inverse kinematics to move the robot to a set gripper position"> | ||
<Control ID="Fallback" name="root"> | ||
<Control ID="Sequence"> | ||
<Action ID="RetrievePoseParameter" timeout_sec="-1" pose="{target_pose}"/> | ||
<Action ID="InitializeMTCTask" task_id="move_to_pose" controller_names="/multi_arm_joint_trajectory_controller" task="{move_to_pose_task}"/> | ||
<Action ID="SetupMTCCurrentState" task="{move_to_pose_task}"/> | ||
<Action ID="SetupMTCMoveToPose" ik_frame="first_grasp_link" planning_group_name="first_manipulator" target_pose="{target_pose}" task="{move_to_pose_task}" planner_interface="moveit_default"/> | ||
<Action ID="PlanMTCTask" solution="{move_to_pose_solution}" task="{move_to_pose_task}"/> | ||
<SubTree ID="Wait for Trajectory Approval if User Available" solution="{move_to_pose_solution}"/> | ||
<Action ID="ExecuteMTCTask" solution="{move_to_pose_solution}"/> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
</Control> | ||
<Control ID="Sequence"> | ||
<Action ID="PublishEmpty" topic="/studio_ui/motion_ended" queue_size="1" use_best_effort="false"/> | ||
<Action ID="AlwaysFailure"/> | ||
</Control> | ||
</Control> | ||
</BehaviorTree> | ||
<TreeNodesModel> | ||
<SubTree ID="Move to Pose"> | ||
<input_port name="target_pose" default="{target_pose}"/> | ||
</SubTree> | ||
</TreeNodesModel> | ||
</root> |
Oops, something went wrong.