Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _GAZEBO_OBJECT_DISPOSAL_PLUGIN_HH_
00022 #define _GAZEBO_OBJECT_DISPOSAL_PLUGIN_HH_
00023
00024 #include <string>
00025
00026 #include "SideContactPlugin.hh"
00027 #include <gazebo/common/Plugin.hh>
00028 #include <gazebo/sensors/sensors.hh>
00029 #include <gazebo/util/system.hh>
00030
00031 namespace gazebo
00032 {
00034 class GAZEBO_VISIBLE ObjectDisposalPlugin : public SideContactPlugin
00035 {
00037 public: ObjectDisposalPlugin();
00038
00040 public: virtual ~ObjectDisposalPlugin();
00041
00045 public: virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf);
00046
00048 protected: void OnUpdate(const common::UpdateInfo &_info);
00049
00051 protected: void ActOnContactingModels();
00052
00054 protected: bool centerOfGravityCheck;
00055 };
00056 }
00057 #endif
00058