mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-28 02:11:43 +00:00
Removed empty default constructors and destructors from Gazebo plugins (#63)
This commit is contained in:
committed by
Peter Johnson
parent
21b2aabf18
commit
e6f6d24780
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -24,8 +24,6 @@ InternalLimitSwitch::InternalLimitSwitch(physics::ModelPtr model,
|
||||
<< "] radians=" << radians << std::endl;
|
||||
}
|
||||
|
||||
InternalLimitSwitch::~InternalLimitSwitch() {}
|
||||
|
||||
bool InternalLimitSwitch::Get() {
|
||||
double value;
|
||||
joint->GetAngle(0).Normalize();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user