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

Commit

Permalink
Fixes for the Mock Sim and Gazebo Simulated Configurations (#66)
Browse files Browse the repository at this point in the history
* Fix Inspect Surface in Gazebo config

* Also remove the inspect surface objective

* Favorite joint diagnostics, unfavorite waypoint cycles

* Cleanup default start position

* Fix looping pick and place and Gazebo Look at Pick and Place waypoint

---------

Co-authored-by: Erik Holum <erik.holum@picknik.ai>
  • Loading branch information
sea-bass and Erik Holum authored Jul 14, 2023
1 parent dc93acf commit 8bc3511
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 50 deletions.
8 changes: 4 additions & 4 deletions src/picknik_ur_base_config/config/initial_positions.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
shoulder_pan_joint: 0.0
shoulder_lift_joint: -0.6
elbow_joint: -1.4
wrist_1_joint: -1.2
wrist_2_joint: 1.7
shoulder_lift_joint: -1.41
elbow_joint: -0.7
wrist_1_joint: -2.12
wrist_2_joint: 1.67
wrist_3_joint: 0.0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<root BTCPP_format="4" main_tree_to_execute="Cycle Between Waypoints">
<BehaviorTree ID="Cycle Between Waypoints" _description="Cycles between two waypoints until failure" _favorite="true">
<BehaviorTree ID="Cycle Between Waypoints" _description="Cycles between two waypoints until failure">
<Decorator ID="KeepRunningUntilFailure">
<Control ID="Sequence">
<Action ID="MoveToJointState" waypoint_name="Right Corner" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
Expand Down
2 changes: 1 addition & 1 deletion src/picknik_ur_base_config/objectives/joint_diagnostic.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<root BTCPP_format="4" main_tree_to_execute="Joint Diagnostic">
<!-- ////////// -->
<BehaviorTree ID="Joint Diagnostic" _description="Move to a known pose and cycle through the min and max limits of a joint repeatedly">
<BehaviorTree ID="Joint Diagnostic" _description="Move to a known pose and cycle through the min and max limits of a joint repeatedly" _favorite="true">
<Control ID="Sequence" name="TopLevelSequence">
<Action ID="MoveToJointState" waypoint_name="Home" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Decorator ID="KeepRunningUntilFailure">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<!-- Open the gripper and move to a consistent state. -->
<Action ID="MoveGripperAction" gripper_command_action_name="/robotiq_gripper_controller/gripper_cmd" position="0.0"/>
<Action ID="MoveToJointState" waypoint_name="Look at Table" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Action ID="MoveToJointState" waypoint_name="Look at Pick and Place Zone" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>

<!-- This loops forever because the behavior tree under this decorator never returns FAILURE. -->
<Decorator ID="KeepRunningUntilFailure">
Expand Down Expand Up @@ -69,22 +69,22 @@
</Control>
</Decorator>
<!-- Move home. -->
<Action ID="MoveToJointState" waypoint_name="Look at Table" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Action ID="MoveToJointState" waypoint_name="Look at Pick and Place Zone" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>

<!-- Move to the current place waypoint set by IterateThroughPlaceWaypoints, then open the gripper. -->
<Action ID="MoveToJointState" waypoint_name="{place_waypoint}" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Action ID="MoveGripperAction" gripper_command_action_name="/robotiq_gripper_controller/gripper_cmd" position="0.0"/>

<!-- Finally, return home. -->
<Action ID="MoveToJointState" waypoint_name="Look at Table" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Action ID="MoveToJointState" waypoint_name="Look at Pick and Place Zone" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
</Control>
</Decorator>
</Decorator>

<!-- TryGraspOuter fallback condition. Reset scene objects, move home, and then wait a short while before triggering a retry. -->
<Control ID="Sequence">
<Action ID="ResetPlanningSceneObjects" apply_planning_scene_service="/apply_planning_scene"/>
<Action ID="MoveToJointState" waypoint_name="Look at Table" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Action ID="MoveToJointState" waypoint_name="Look at Pick and Place Zone" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Action ID="WaitForDuration" delay_duration="5"/>
<Action ID="AlwaysSuccess"/>
</Control>
Expand Down
6 changes: 0 additions & 6 deletions src/picknik_ur_gazebo_config/config/initial_positions.yaml

This file was deleted.

18 changes: 0 additions & 18 deletions src/picknik_ur_gazebo_config/objectives/inspect_surface.xml

This file was deleted.

11 changes: 0 additions & 11 deletions src/picknik_ur_gazebo_config/objectives/take_snapshot.xml

This file was deleted.

10 changes: 5 additions & 5 deletions src/picknik_ur_gazebo_config/waypoints/waypoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@
- wrist_2_joint
- wrist_3_joint
position:
- 3.03
- -0.78
- -0.51
- -2.39
- 1.65
- 0
- -1.41
- -0.7
- -2.12
- 1.67
- 0
velocity: []
name: Look at Pick and Place Zone
Expand Down

0 comments on commit 8bc3511

Please sign in to comment.