Remove unnecessary kill_sim member
authorMartin Günther <martin.guenther@dfki.de>
Fri, 16 Mar 2018 10:25:22 +0000 (11:25 +0100)
committerMartin Günther <martin.guenther@dfki.de>
Fri, 16 Mar 2018 10:25:22 +0000 (11:25 +0100)
include/roboticsgroup_gazebo_plugins/mimic_joint_plugin.h
src/mimic_joint_plugin.cpp

index 3270fdf..39ab0fc 100644 (file)
@@ -53,8 +53,6 @@ namespace gazebo {
         double multiplier_, offset_, sensitiveness_, max_effort_;
         bool has_pid_;
 
-        bool kill_sim;
-
         // PID controller if needed
         control_toolbox::Pid pid_;
 
index f04333a..7a2c516 100644 (file)
@@ -32,8 +32,6 @@ namespace gazebo {
 
     MimicJointPlugin::MimicJointPlugin()
     {
-        kill_sim = false;
-
         joint_.reset();
         mimic_joint_.reset();
     }
@@ -41,7 +39,6 @@ namespace gazebo {
     MimicJointPlugin::~MimicJointPlugin()
     {
         this->updateConnection.reset();
-        kill_sim = true;
     }
 
     void MimicJointPlugin::Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)