ObjectDisposalPlugin.hh
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012-2016 Open Source Robotics Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16 */
17 /*
18  * Desc: Object disposal plugin
19  * Author: Deanna Hood
20  */
21 #ifndef _GAZEBO_OBJECT_DISPOSAL_PLUGIN_HH_
22 #define _GAZEBO_OBJECT_DISPOSAL_PLUGIN_HH_
23 
24 #include <string>
25 
26 #include "SideContactPlugin.hh"
27 #include <gazebo/common/Plugin.hh>
28 #include <gazebo/sensors/sensors.hh>
29 #include <gazebo/util/system.hh>
30 
31 namespace gazebo
32 {
34  class GAZEBO_VISIBLE ObjectDisposalPlugin : public SideContactPlugin
35  {
37  public: ObjectDisposalPlugin();
38 
40  public: virtual ~ObjectDisposalPlugin();
41 
45  public: virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf);
46 
48  protected: void OnUpdate(const common::UpdateInfo &_info);
49 
51  protected: void ActOnContactingModels();
52 
54  protected: bool centerOfGravityCheck;
55  };
56 }
57 #endif
58 
A plugin for a contact sensor attached to a model disposal unit.
A plugin for a model with a contact sensor that only monitors collisions on one of its sides...
bool centerOfGravityCheck
If true, only delete models if their CoG is within the bounding box of the link.


osrf_gear
Author(s):
autogenerated on Wed Sep 7 2016 03:48:12