Fixed small error in MimicJointPlugin
authorKonstantinos Chatzilygeroudis <costashatz@gmail.com>
Thu, 29 May 2014 23:22:30 +0000 (02:22 +0300)
committerKonstantinos Chatzilygeroudis <costashatz@gmail.com>
Thu, 29 May 2014 23:22:30 +0000 (02:22 +0300)
src/mimic_joint_plugin.cpp

index 840c26f..f3aa770 100644 (file)
@@ -54,7 +54,7 @@ void MimicJointPlugin::Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf )
   joint_name_ = _sdf->GetElement("joint")->Get<std::string>();
 
   // Check for mimicJoint element
-  if (_sdf->HasElement("mimicJoint"))
+  if (!_sdf->HasElement("mimicJoint"))
   {
     ROS_ERROR("No mimicJoint element present. MimicJointPlugin could not be loaded.");
     return;