Skip to content

Commit

Permalink
Add info messages to pick and place routine (#1004)
Browse files Browse the repository at this point in the history
* Add debug messages to pick and place routine

The current behavior silently adds an arbitrary wait time to the pipeline. Users should define an appropriate wait time for their own gripper. This message helps them find the issue, which is otherwise not trivial to debug.

* Apply clang-format

* Fix auto-formatting
  • Loading branch information
felixvd authored and davetcoleman committed Jul 31, 2018
1 parent f650603 commit 76058c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ void addGripperTrajectory(const ManipulationPlanPtr& plan,
}
else
{ // Do what was done before
ROS_INFO_STREAM("Adding default duration of " << PickPlace::DEFAULT_GRASP_POSTURE_COMPLETION_DURATION
<< " seconds to the grasp closure time. Assign time_from_start to "
<< "your trajectory to avoid this.");
ee_closed_traj->addPrefixWayPoint(ee_closed_state, PickPlace::DEFAULT_GRASP_POSTURE_COMPLETION_DURATION);
}

Expand Down
3 changes: 3 additions & 0 deletions moveit_ros/manipulation/pick_place/src/plan_stage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ bool PlanStage::evaluate(const ManipulationPlanPtr& plan) const
}
else
{ // Do what was done before
ROS_INFO_STREAM("Adding default duration of " << PickPlace::DEFAULT_GRASP_POSTURE_COMPLETION_DURATION
<< " seconds to the grasp closure time. Assign time_from_start "
<< "to your trajectory to avoid this.");
pre_approach_traj->addPrefixWayPoint(pre_approach_state,
PickPlace::DEFAULT_GRASP_POSTURE_COMPLETION_DURATION);
}
Expand Down

0 comments on commit 76058c3

Please sign in to comment.