From 0bed31e88ef033f697152f70c8c8c349f3d0757c Mon Sep 17 00:00:00 2001
From: Jennifer Buehler <jennifer.e.buehler@gmail.com>
Date: Thu, 14 Apr 2016 02:57:30 +0200
Subject: [PATCH] removed console SetQuiet for gazebo 2 versions

---
 gazebo_grasp_plugin/src/GazeboGraspFix.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gazebo_grasp_plugin/src/GazeboGraspFix.cpp b/gazebo_grasp_plugin/src/GazeboGraspFix.cpp
index 9ef994b..c73e3b2 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;
-- 
GitLab