From: Martin Günther Date: Tue, 20 Mar 2018 13:49:07 +0000 (+0100) Subject: Improve namespace handling X-Git-Tag: 0.1.0~6^2 X-Git-Url: http://git.ece.ufrgs.br/?a=commitdiff_plain;h=6b89efa601824d39666c14dd3d4a702cd736389f;p=roboticsgroup_upatras_gazebo_plugins.git Improve namespace handling --- diff --git a/src/mimic_joint_plugin.cpp b/src/mimic_joint_plugin.cpp index d246952..a6c2177 100644 --- a/src/mimic_joint_plugin.cpp +++ b/src/mimic_joint_plugin.cpp @@ -23,9 +23,9 @@ OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISE #include #if GAZEBO_MAJOR_VERSION >= 8 -using namespace ignition::math; +namespace math = ignition::math; #else -using namespace gazebo::math; +namespace math = gazebo::math; #endif namespace gazebo { @@ -165,7 +165,7 @@ namespace gazebo { if (a != a) a = angle; double error = angle - a; - double effort = clamp(pid_.computeCommand(error, period), -max_effort_, max_effort_); + double effort = math::clamp(pid_.computeCommand(error, period), -max_effort_, max_effort_); mimic_joint_->SetForce(0, effort); } else {