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< Link > LinkPtr
Definition: PhysicsTypes.hh:109
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:89
Forward declarations for transport.
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:125
Definition: MudPlugin.hh:30
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:93
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:59