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

Commit

Permalink
Add "Joint Diagnostic" Objective (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgill92 authored Jun 27, 2023
1 parent 523ffcb commit 297396b
Show file tree
Hide file tree
Showing 4 changed files with 102 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/picknik_ur_base_config/waypoints/ur5e_waypoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,25 @@
position: [2.89725, -2.0944, -1.50098, -1.0472, 1.69297, 0.20944]
velocity: []
effort: []
- name: Wrist 2 Min
joint_state:
header:
frame_id: world
stamp:
sec: 0
nanosec: 0
name: [shoulder_pan_joint, shoulder_lift_joint, elbow_joint, wrist_1_joint, wrist_2_joint, wrist_3_joint]
position: [-2.2335834056138996e-05, -0.7800858658974525, -0.5100288585397881, -2.399985082258936, -3.141592653589793, 2.282092208042741e-05]
velocity: []
effort: []
- name: Wrist 2 Max
joint_state:
header:
frame_id: world
stamp:
sec: 0
nanosec: 0
name: [shoulder_pan_joint, shoulder_lift_joint, elbow_joint, wrist_1_joint, wrist_2_joint, wrist_3_joint]
position: [-2.2335834056138996e-05, -0.7800858658974525, -0.5100288585397881, -2.399985082258936, 3.141592653589793, 2.282092208042741e-05]
velocity: []
effort: []
15 changes: 15 additions & 0 deletions src/picknik_ur_gazebo_config/objectives/joint_diagnostic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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">
<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">
<Control ID="Sequence">
<Action ID="MoveToJointState" waypoint_name="Wrist 2 Max" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Action ID="MoveToJointState" waypoint_name="Wrist 2 Min" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
</Control>
</Decorator>
</Control>
</BehaviorTree>
</root>
50 changes: 50 additions & 0 deletions src/picknik_ur_gazebo_config/waypoints/waypoints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,53 @@
- 0.6922835016976157
velocity: []
name: Pick
- description: ''
favorite: false
joint_state:
effort: []
header:
frame_id: world
stamp:
nanosec: 0
sec: 0
name:
- shoulder_pan_joint
- shoulder_lift_joint
- elbow_joint
- wrist_1_joint
- wrist_2_joint
- wrist_3_joint
position:
- -2.2335834056138996e-05
- -0.7800858658974525
- -0.5100288585397881
- -2.399985082258936
- -3.141592653589793
- 2.282092208042741e-05
velocity: []
name: Wrist 2 Min
- description: ''
favorite: false
joint_state:
effort: []
header:
frame_id: world
stamp:
nanosec: 0
sec: 0
name:
- shoulder_pan_joint
- shoulder_lift_joint
- elbow_joint
- wrist_1_joint
- wrist_2_joint
- wrist_3_joint
position:
- -2.2335834056138996e-05
- -0.7800858658974525
- -0.5100288585397881
- -2.399985082258936
- 3.141592653589793
- 2.282092208042741e-05
velocity: []
name: Wrist 2 Max
15 changes: 15 additions & 0 deletions src/picknik_ur_site_config/objectives/joint_diagnostic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?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">
<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">
<Control ID="Sequence">
<Action ID="MoveToJointState" waypoint_name="Wrist 2 Max" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
<Action ID="MoveToJointState" waypoint_name="Wrist 2 Min" planning_group_name="manipulator" controller_names="/joint_trajectory_controller /robotiq_gripper_controller"/>
</Control>
</Decorator>
</Control>
</BehaviorTree>
</root>

0 comments on commit 297396b

Please sign in to comment.