17 #ifndef _MUD_PLUGIN_HH_
18 #define _MUD_PLUGIN_HH_
24 #include "gazebo/physics/physics.hh"
39 public:
virtual void Init();
43 private:
void OnContact(ConstContactsPtr &_msg);
46 private:
void OnUpdate();
67 private: std::string modelName;
74 private: std::string contactSensorName;
77 private:
mutable boost::mutex mutex;
80 private: msgs::Contacts newestContactsMsg;
86 private:
unsigned int newMsgWait;
90 private:
double stiffness;
94 private:
double damping;
97 private: std::vector<std::string> allowedLinks;
100 private: std::vector<physics::LinkPtr> links;
103 private: std::vector<physics::JointPtr> joints;
106 private:
unsigned int contactSurfaceBitmask;
109 private: sdf::ElementPtr sdf;
112 #endif // ifndef _MUD_PLUGIN_HH_
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:147
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:84
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
Forward declarations for transport.
Definition: MudPlugin.hh:30
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:108
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:80
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
A plugin with access to physics::Model.
Definition: Plugin.hh:245
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:66
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:92