A plugin for a contact sensor attached to a model disposal unit. More...
#include <ObjectDisposalPlugin.hh>
Public Member Functions | |
virtual void | Load (physics::ModelPtr _model, sdf::ElementPtr _sdf) |
Load the model plugin. | |
ObjectDisposalPlugin () | |
Constructor. | |
virtual | ~ObjectDisposalPlugin () |
Destructor. | |
Protected Member Functions | |
void | ActOnContactingModels () |
Act on models that are ontop of the sensor's link. | |
void | OnUpdate (const common::UpdateInfo &_info) |
Callback that receives the world update event. | |
Protected Attributes | |
bool | centerOfGravityCheck |
If true, only delete models if their CoG is within the bounding box of the link. |
A plugin for a contact sensor attached to a model disposal unit.
Definition at line 34 of file ObjectDisposalPlugin.hh.
Constructor.
Definition at line 28 of file ObjectDisposalPlugin.cc.
ObjectDisposalPlugin::~ObjectDisposalPlugin | ( | ) | [virtual] |
Destructor.
Definition at line 33 of file ObjectDisposalPlugin.cc.
void ObjectDisposalPlugin::ActOnContactingModels | ( | ) | [protected] |
Act on models that are ontop of the sensor's link.
Definition at line 59 of file ObjectDisposalPlugin.cc.
void ObjectDisposalPlugin::Load | ( | physics::ModelPtr | _model, |
sdf::ElementPtr | _sdf | ||
) | [virtual] |
Load the model plugin.
[in] | _model | Pointer to the model that loaded this plugin. |
[in] | _sdf | SDF element that describes the plugin. |
Reimplemented from gazebo::SideContactPlugin.
Definition at line 41 of file ObjectDisposalPlugin.cc.
void ObjectDisposalPlugin::OnUpdate | ( | const common::UpdateInfo & | _info | ) | [protected, virtual] |
Callback that receives the world update event.
Reimplemented from gazebo::SideContactPlugin.
Definition at line 52 of file ObjectDisposalPlugin.cc.
bool gazebo::ObjectDisposalPlugin::centerOfGravityCheck [protected] |
If true, only delete models if their CoG is within the bounding box of the link.
Definition at line 54 of file ObjectDisposalPlugin.hh.