ROSVacuumGripperPlugin.hh
Go to the documentation of this file.
1 /*
2  * Copyright 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 #ifndef _ROS_VACUUM_GRIPPER_PLUGIN_HH_
19 #define _ROS_VACUUM_GRIPPER_PLUGIN_HH_
20 
21 #include <memory>
22 #include <gazebo/physics/PhysicsTypes.hh>
23 #include <sdf/sdf.hh>
24 #include "osrf_gear/VacuumGripperControl.h"
26 
27 namespace gazebo
28 {
30  class ROSVacuumGripperPluginPrivate;
31 
34  {
36  public: ROSVacuumGripperPlugin();
37 
39  public: virtual ~ROSVacuumGripperPlugin();
40 
41  // Documentation inherited.
42  public: virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf);
43 
45  public: virtual void Reset();
46 
50  public: bool OnGripperControl(
51  osrf_gear::VacuumGripperControl::Request &_req,
52  osrf_gear::VacuumGripperControl::Response &_res);
53 
54  // Documentation inherited.
55  private: virtual void Publish() const;
56 
59  private: std::unique_ptr<ROSVacuumGripperPluginPrivate> dataPtr;
60  };
61 }
62 #endif
virtual ~ROSVacuumGripperPlugin()
Destructor.
std::unique_ptr< ROSVacuumGripperPluginPrivate > dataPtr
virtual void Reset()
Documentation inherited.
virtual void Publish() const
Overwrite this method for sending periodic updates with the gripper state.
ROS interface for the VacuumGripperPlugin plugin.
bool OnGripperControl(osrf_gear::VacuumGripperControl::Request &_req, osrf_gear::VacuumGripperControl::Response &_res)
Receives messages on the gripper&#39;s topic.
virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf)


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