diff --git a/gazebo_grasp_plugin/src/GazeboGraspFix.cpp b/gazebo_grasp_plugin/src/GazeboGraspFix.cpp index 9ef994bbce299a13abe562de66ce6ac657c1dc58..c73e3b21280b6099c3151e9b5338700e931c4873 100644 --- a/gazebo_grasp_plugin/src/GazeboGraspFix.cpp +++ b/gazebo_grasp_plugin/src/GazeboGraspFix.cpp @@ -44,9 +44,12 @@ void GazeboGraspFix::Init() void GazeboGraspFix::InitValues() { +#if GAZEBO_MAJOR_VERSION > 2 gazebo::common::Console::SetQuiet(false); +#endif + // float timeDiff=0.25; - //this->releaseTolerance=0.005; + // this->releaseTolerance=0.005; // this->updateRate = common::Time(0, common::Time::SecToNano(timeDiff)); this->prevUpdateTime = common::Time::GetWallTime(); //float graspedSecs=2;