VacuumGripperPlugin.hh
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 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 #ifndef _GAZEBO_VACUUM_GRIPPER_PLUGIN_HH_
00019 #define _GAZEBO_VACUUM_GRIPPER_PLUGIN_HH_
00020 
00021 #include <memory>
00022 #include <string>
00023 #include <gazebo/common/Events.hh>
00024 #include <gazebo/common/Plugin.hh>
00025 #include <gazebo/msgs/contacts.pb.h>
00026 #include <gazebo/physics/PhysicsTypes.hh>
00027 #include <sdf/sdf.hh>
00028 
00029 namespace gazebo
00030 {
00032   class VacuumGripperPluginPrivate;
00033 
00035   class GAZEBO_VISIBLE VacuumGripperPlugin : public ModelPlugin
00036   {
00038     public: explicit VacuumGripperPlugin();
00039 
00041     public: virtual ~VacuumGripperPlugin();
00042 
00043     // Documentation inherited.
00044     public: virtual void Load(physics::ModelPtr _model, sdf::ElementPtr _sdf);
00045 
00047     public: virtual void Reset();
00048 
00050     public: std::string Name() const;
00051 
00053     public: bool Enabled() const;
00054 
00058     public: bool Attached() const;
00059 
00061     public: void Enable();
00062 
00064     public: void Disable();
00065 
00067     private: void OnUpdate();
00068 
00071     private: void OnContacts(ConstContactsPtr &_msg);
00072 
00074     private: void HandleAttach();
00075 
00077     private: void HandleDetach();
00078 
00081     private: virtual void Publish() const;
00082 
00085     private: std::unique_ptr<VacuumGripperPluginPrivate> dataPtr;
00086   };
00087 }
00088 #endif


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