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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -44,9 +44,6 @@ typedef enum { Roll /*X*/, Pitch /*Y*/, Yaw /*Z*/ } ROTATION;
*/
class Gyro : public ModelPlugin {
public:
Gyro();
~Gyro();
/// \brief Load the gyro and configures it according to the sdf.
void Load(physics::ModelPtr model, sdf::ElementPtr sdf);

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);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -34,9 +34,6 @@ using namespace gazebo;
*/
class Servo : public ModelPlugin {
public:
Servo();
~Servo();
/// \brief load the servo and configure it according to the sdf
void Load(physics::ModelPtr model, sdf::ElementPtr sdf);