From: Konstantinos Chatzilygeroudis Date: Thu, 29 May 2014 23:22:30 +0000 (+0300) Subject: Fixed small error in MimicJointPlugin X-Git-Tag: 0.1.0~25 X-Git-Url: http://git.ece.ufrgs.br/?a=commitdiff_plain;h=913179c72d7229620843806d667c834f14333213;p=roboticsgroup_upatras_gazebo_plugins.git Fixed small error in MimicJointPlugin --- diff --git a/src/mimic_joint_plugin.cpp b/src/mimic_joint_plugin.cpp index 840c26f..f3aa770 100644 --- a/src/mimic_joint_plugin.cpp +++ b/src/mimic_joint_plugin.cpp @@ -54,7 +54,7 @@ void MimicJointPlugin::Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf ) joint_name_ = _sdf->GetElement("joint")->Get(); // Check for mimicJoint element - if (_sdf->HasElement("mimicJoint")) + if (!_sdf->HasElement("mimicJoint")) { ROS_ERROR("No mimicJoint element present. MimicJointPlugin could not be loaded."); return;