56 public:
virtual void Load(sdf::ElementPtr _sdf);
59 public:
virtual void Init();
62 public: std::string GetName()
const;
67 public:
bool IsAttached()
const;
70 private:
void OnUpdate();
74 private:
void OnContacts(ConstContactsPtr &_msg);
77 private:
void HandleAttach();
80 private:
void HandleDetach();
83 private:
void ResetDiffs();
101 private: std::vector<event::ConnectionPtr> connections;
104 private: std::map<std::string, physics::CollisionPtr> collisions;
107 private: std::vector<msgs::Contact> contacts;
110 private: boost::mutex mutexContacts;
113 private:
bool attached;
120 private: std::vector<double> diffs;
123 private:
int diffIndex;
133 private:
int posCount;
137 private:
int zeroCount;
140 private:
unsigned int minContactCount;
143 private:
int attachSteps;
146 private:
int detachSteps;
149 private: std::string name;