Skip to content

Commit

Permalink
Remove long wait by adding grasp closure time (#200)
Browse files Browse the repository at this point in the history
The [video in the Pick and Place tutorial](http://docs.ros.org/kinetic/api/moveit_tutorials/html/doc/pick_place/pick_place_tutorial.html) is 45 seconds long. For 28 of those 45 seconds, the robot is standing still. This is because a default wait time of 7 seconds is added after every opening and closing of the gripper. This change fixes that time to 0.5 s and makes the movement look smooth.

I also propose notifying the user about this behavior in [this PR](moveit/moveit#1004).
  • Loading branch information
felixvd authored and mlautman committed Aug 6, 2018
1 parent 9b795c2 commit f8ec880
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/pick_place/src/pick_place_tutorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ void openGripper(trajectory_msgs::JointTrajectory& posture)
posture.points[0].positions.resize(2);
posture.points[0].positions[0] = 0.04;
posture.points[0].positions[1] = 0.04;
posture.points[0].time_from_start = ros::Duration(0.5);
// END_SUB_TUTORIAL
}

Expand All @@ -70,6 +71,7 @@ void closedGripper(trajectory_msgs::JointTrajectory& posture)
posture.points[0].positions.resize(2);
posture.points[0].positions[0] = 0.00;
posture.points[0].positions[1] = 0.00;
posture.points[0].time_from_start = ros::Duration(0.5);
// END_SUB_TUTORIAL
}

Expand Down

0 comments on commit f8ec880

Please sign in to comment.