ObjectDisposalPlugin.hh
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2012-2016 Open Source Robotics Foundation
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  *
00016 */
00017 /*
00018  * Desc: Object disposal plugin
00019  * Author: Deanna Hood
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 


osrf_gear
Author(s):
autogenerated on Mon Sep 5 2016 03:41:33