Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new Pro RRT SetupMTCPlanTo_ behaviors #76

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/fanuc_sim/objectives/move_to_pose.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
/>
<Action ID="SetupMTCCurrentState" task="{move_to_pose_task}" />
<Action
ID="SetupMTCMoveToPose"
ID="SetupMTCPlanToPose"
ik_frame="tool0"
planning_group_name="manipulator"
target_pose="{target_pose}"
task="{move_to_pose_task}"
planner_interface="moveit_default"
/>
<Action
ID="PlanMTCTask"
Expand Down
12 changes: 4 additions & 8 deletions src/lab_sim/objectives/add_waypoints_to_mtc_task.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
_subtreeOnly="true"
_description=""
joint_group_name="manipulator"
planner_interface="moveit_default"
mtc_task="{mtc_task}"
>
<Control ID="Sequence">
Expand All @@ -17,11 +16,10 @@
joint_group_name="{joint_group_name}"
/>
<Action
ID="SetupMTCMoveToJointState"
ID="SetupMTCPlanToJointState"
joint_state="{target_joint_state}"
name="SetupMTCMoveToJointState"
name="SetupMTCPlanToJointState"
planning_group_name="{joint_group_name}"
planner_interface="{planner_interface}"
task="{mtc_task}"
/>
<Action
Expand All @@ -31,19 +29,17 @@
joint_group_name="{joint_group_name}"
/>
<Action
ID="SetupMTCMoveToJointState"
ID="SetupMTCPlanToJointState"
joint_state="{target_joint_state}"
name="SetupMTCMoveToJointState"
name="SetupMTCPlanToJointState"
planning_group_name="{joint_group_name}"
planner_interface="{planner_interface}"
task="{mtc_task}"
/>
</Control>
</BehaviorTree>
<TreeNodesModel>
<SubTree ID="Add Waypoints to MTC Task">
<input_port name="joint_group_name" default="manipulator" />
<input_port name="planner_interface" default="moveit_default" />
<inout_port name="mtc_task" default="{mtc_task}" />
<MetadataFields>
<Metadata subcategory="Application - Basic Examples" />
Expand Down
29 changes: 12 additions & 17 deletions src/lab_sim/objectives/constrained_pick_and_place_subtree.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,6 @@
_description=""
>
<Control ID="Sequence">
<!--Create a special type of motion planning configuration that includes an upwards orientation requirement-->
<Action
ID="InitializeMotionConstraints"
constraints_name="gripper pointing down"
constraints="{constraints}"
/>
<Action
ID="AppendOrientationConstraint"
config_file_name="my_constraints.yaml"
constraints="{constraints}"
/>
<!--Move to pick location-->
<!--Note: Sampling based planners can be non-deterministic. The retry decorator improves the likelihood of success-->
<Decorator ID="RetryUntilSuccessful" num_attempts="3">
Expand All @@ -30,7 +19,8 @@
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
constraints="{constraints}"
keep_orientation="true"
keep_orientation_tolerance="0.2"
/>
</Decorator>
<Decorator ID="RetryUntilSuccessful" num_attempts="3">
Expand All @@ -40,7 +30,8 @@
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
constraints="{constraints}"
keep_orientation="true"
keep_orientation_tolerance="0.2"
/>
</Decorator>
<!--We force success as the gripper closes, since we are commanding a position it will never reach (fingers fully closed)-->
Expand All @@ -54,7 +45,8 @@
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
joint_group_name="manipulator"
planner_interface="moveit_default"
constraints="{constraints}"
keep_orientation="true"
keep_orientation_tolerance="0.2"
_collapsed="true"
waypoint_name="{pre_pick}"
/>
Expand All @@ -65,7 +57,8 @@
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
joint_group_name="manipulator"
planner_interface="moveit_default"
constraints="{constraints}"
keep_orientation="true"
keep_orientation_tolerance="0.2"
_collapsed="true"
waypoint_name="{pre_place}"
/>
Expand All @@ -76,7 +69,8 @@
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
joint_group_name="manipulator"
planner_interface="moveit_default"
constraints="{constraints}"
keep_orientation="true"
keep_orientation_tolerance="0.2"
_collapsed="true"
waypoint_name="{place}"
/>
Expand All @@ -88,7 +82,8 @@
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
joint_group_name="manipulator"
planner_interface="moveit_default"
constraints="{constraints}"
keep_orientation="true"
keep_orientation_tolerance="0.2"
_collapsed="true"
waypoint_name="{pre_place}"
/>
Expand Down
2 changes: 0 additions & 2 deletions src/lab_sim/objectives/constrained_pick_place.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@
<SubTree
ID="Move to Waypoint"
_collapsed="true"
constraints="{constraints}"
waypoint_name="Beaker 1a - Pre Pick"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller"
velocity_scale_factor="1.0"
acceleration_scale_factor="1.0"
link_padding="0.01"
keep_orientation_tolerance="0.05"
keep_orientation="false"
/>
<SubTree ID="Open Gripper" />
Expand Down
3 changes: 0 additions & 3 deletions src/lab_sim/objectives/joint_diagnostic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
waypoint_name="Look at Table"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
<Decorator ID="KeepRunningUntilFailure">
<Control ID="Sequence">
Expand All @@ -22,14 +21,12 @@
waypoint_name="Wrist 2 Max"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
<SubTree
ID="Move to Waypoint"
waypoint_name="Wrist 2 Min"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
</Control>
</Decorator>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
_collapsed="true"
waypoint_name="Workspace Right"
joint_group_name="manipulator"
planner_interface="moveit_default"
controller_names="/joint_trajectory_controller"
acceleration_scale_factor="1.0"
controller_action_server="/joint_trajectory_controller/follow_joint_trajectory"
Expand Down
3 changes: 1 addition & 2 deletions src/lab_sim/objectives/plan_move_to_pose.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
/>
<Action ID="SetupMTCCurrentState" task="{move_to_pose_task}" />
<Action
ID="SetupMTCMoveToPose"
ID="SetupMTCPlanToPose"
ik_frame="grasp_link"
planning_group_name="manipulator"
target_pose="{target_pose}"
task="{move_to_pose_task}"
planner_interface="moveit_default"
/>
<Action
ID="PlanMTCTask"
Expand Down
3 changes: 1 addition & 2 deletions src/lab_sim/objectives/plan_to_pose.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@
/>
<Action ID="Script" code="pose_ctr += 1" />
<Action
ID="SetupMTCMoveToPose"
ID="SetupMTCPlanToPose"
ik_frame="{ik_frame}"
planning_group_name="{planning_group_name}"
target_pose="{target_pose}"
task="{mtc_task}"
planner_interface="moveit_default"
/>
</Control>
</Decorator>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
fake_sensor_commands:=false
sim_ignition:=false
sim_isaac:=false
isaac_joint_commands:=/isaac_joint_commands
isaac_joint_states:=/isaac_joint_states
use_internal_bus_gripper_comm:=false
com_port:=/dev/ttyUSB0
moveit_active:=false">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/>
<Action ID="SetupMTCCurrentState" task="{move_to_pose_task}" />
<Action
ID="SetupMTCMoveToPose"
ID="SetupMTCPlanToPose"
ik_frame="grasp_link"
planning_group_name="manipulator"
target_pose="{target_pose}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
task="{mtc_task}"
/>
<Action ID="SetupMTCCurrentState" task="{mtc_task}" />
<Action ID="SetupMTCMoveToPose" target_pose="{hole_object}" />
<Action ID="SetupMTCPlanToPose" target_pose="{hole_object}" />
<Action ID="PlanMTCTask" task="{mtc_task}" solution="{mtc_solution}" />
<Action ID="ExecuteMTCTask" solution="{mtc_solution}" />
<Action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
task="{mtc_task}"
/>
<Action ID="SetupMTCCurrentState" task="{mtc_task}" />
<Action ID="SetupMTCMoveToPose" target_pose="{hole_object}" />
<Action ID="SetupMTCPlanToPose" target_pose="{hole_object}" />
<Action ID="PlanMTCTask" task="{mtc_task}" solution="{mtc_solution}" />
<Action ID="ExecuteMTCTask" solution="{mtc_solution}" />
<Action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@
>
<Decorator ID="KeepRunningUntilFailure">
<Control ID="Sequence">
<Action
ID="InitializeMotionConstraints"
constraints_name="gripper pointing down"
constraints="{constraints}"
/>
<Action
ID="AppendOrientationConstraint"
config_file_name="my_constraints.yaml"
constraints="{constraints}"
/>
<Control ID="Sequence" name="TopLevelSequence">
<SubTree ID="Open Gripper" />
<Decorator ID="RetryUntilSuccessful" num_attempts="3">
Expand All @@ -35,8 +25,8 @@
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
joint_group_name="manipulator"
waypoint_name="Grasp Left"
planner_interface="moveit_all_planners"
constraints="{constraints}"
keep_orientation="true"
keep_orientation_tolerance="0.2"
/>
</Decorator>
</Control>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/>
<Action ID="SetupMTCCurrentState" task="{move_to_pose_task}" />
<Action
ID="SetupMTCMoveToPose"
ID="SetupMTCPlanToPose"
ik_frame="grasp_link"
planning_group_name="manipulator"
target_pose="{target_pose}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
waypoint_name="Look at Airfoil"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
</Control>
</BehaviorTree>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
waypoint_name="Look at Airfoil"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
</Control>
</BehaviorTree>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
waypoint_name="Look at Airfoil"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
<SubTree
ID="Estimate Object Pose"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
waypoint_name="Look at Airfoil"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
<SubTree
ID="Estimate Object Pose"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
waypoint_name="Look at Airfoil"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
<SubTree
ID="Estimate Object Pose"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
waypoint_name="Look at Airfoil"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
<SubTree
ID="Estimate Object Pose"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
waypoint_name="Look at Airfoil"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
<SubTree
ID="Estimate Object Pose"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
waypoint_name="Look at Airfoil"
joint_group_name="manipulator"
controller_names="/joint_trajectory_controller /robotiq_gripper_controller"
planner_interface="moveit_default"
/>
<SubTree
ID="Estimate Object Pose"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@
/>
<Action ID="SetupMTCCurrentState" task="{move_to_pose_task}" />
<Action
ID="SetupMTCMoveToPose"
ID="SetupMTCPlanToPose"
ik_frame="grasp_link"
planning_group_name="manipulator"
target_pose="{target_pose}"
task="{move_to_pose_task}"
planner_interface="moveit_default"
/>
<Action
ID="PlanMTCTask"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -230,4 +230,6 @@
<disable_collisions link1="ur_arm_wrist_1_link" link2="ur_arm_wrist_2_link" reason="Adjacent"/>
<disable_collisions link1="ur_arm_wrist_1_link" link2="ur_arm_wrist_3_link" reason="Never"/>
<disable_collisions link1="ur_arm_wrist_2_link" link2="ur_arm_wrist_3_link" reason="Adjacent"/>
<disable_collisions link1="base_link_inertia" link2="riser_link" reason="Never"/>
<disable_collisions link1="base_link_inertia" link2="chassis_link" reason="Never"/>
</robot>
Loading
Loading