mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user