Removed empty default constructors and destructors from Gazebo plugins (#63)

This commit is contained in:
Tyler Veness
2016-05-25 20:26:01 -07:00
committed by Peter Johnson
parent 21b2aabf18
commit e6f6d24780
22 changed files with 0 additions and 69 deletions

View File

@@ -15,8 +15,6 @@ ExternalLimitSwitch::ExternalLimitSwitch(sdf::ElementPtr sdf) {
<< " sensor=" << sensor->Name() << std::endl;
}
ExternalLimitSwitch::~ExternalLimitSwitch() {}
bool ExternalLimitSwitch::Get() {
return sensor->Contacts().contact().size() > 0;
}

View File

@@ -22,7 +22,6 @@ using namespace gazebo;
class ExternalLimitSwitch : public Switch {
public:
ExternalLimitSwitch(sdf::ElementPtr sdf);
~ExternalLimitSwitch();
/// \brief Returns true when the switch is triggered.
virtual bool Get();

View File

@@ -24,8 +24,6 @@ InternalLimitSwitch::InternalLimitSwitch(physics::ModelPtr model,
<< "] radians=" << radians << std::endl;
}
InternalLimitSwitch::~InternalLimitSwitch() {}
bool InternalLimitSwitch::Get() {
double value;
joint->GetAngle(0).Normalize();

View File

@@ -20,7 +20,6 @@ using namespace gazebo;
class InternalLimitSwitch : public Switch {
public:
InternalLimitSwitch(physics::ModelPtr model, sdf::ElementPtr sdf);
~InternalLimitSwitch();
/// \brief Returns true when the switch is triggered.
virtual bool Get();

View File

@@ -9,10 +9,6 @@
GZ_REGISTER_MODEL_PLUGIN(LimitSwitch)
LimitSwitch::LimitSwitch() {}
LimitSwitch::~LimitSwitch() {}
void LimitSwitch::Load(physics::ModelPtr model, sdf::ElementPtr sdf) {
this->model = model;

View File

@@ -68,9 +68,6 @@ using namespace gazebo;
*/
class LimitSwitch : public ModelPlugin {
public:
LimitSwitch();
~LimitSwitch();
/// \brief Load the limit switch and configures it according to the sdf.
void Load(physics::ModelPtr model, sdf::ElementPtr sdf);