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 #ifndef _ROS_VACUUM_GRIPPER_PLUGIN_HH_
00019 #define _ROS_VACUUM_GRIPPER_PLUGIN_HH_
00020
00021 #include <memory>
00022 #include <gazebo/physics/PhysicsTypes.hh>
00023 #include <sdf/sdf.hh>
00024 #include "osrf_gear/VacuumGripperControl.h"
00025 #include "osrf_gear/VacuumGripperPlugin.hh"
00026
00027 namespace gazebo
00028 {
00030 class ROSVacuumGripperPluginPrivate;
00031
00033 class ROSVacuumGripperPlugin : public VacuumGripperPlugin
00034 {
00036 public: ROSVacuumGripperPlugin();
00037
00039 public: virtual ~ROSVacuumGripperPlugin();
00040
00041
00042 public: virtual void Load(physics::ModelPtr _parent, sdf::ElementPtr _sdf);
00043
00045 public: virtual void Reset();
00046
00050 public: bool OnGripperControl(
00051 osrf_gear::VacuumGripperControl::Request &_req,
00052 osrf_gear::VacuumGripperControl::Response &_res);
00053
00054
00055 private: virtual void Publish() const;
00056
00059 private: std::unique_ptr<ROSVacuumGripperPluginPrivate> dataPtr;
00060 };
00061 }
00062 #endif