55 public:
virtual void Load(sdf::ElementPtr _sdf);
58 public:
virtual void Init();
61 public: std::string
GetName()
const;
69 private:
void OnUpdate();
73 private:
void OnContacts(ConstContactsPtr &_msg);
76 private:
void HandleAttach();
79 private:
void HandleDetach();
82 private:
void ResetDiffs();
100 private: std::vector<event::ConnectionPtr> connections;
103 private: std::map<std::string, physics::CollisionPtr> collisions;
106 private: std::vector<msgs::Contact> contacts;
109 private:
bool attached;
116 private: std::vector<double> diffs;
119 private:
int diffIndex;
129 private:
int posCount;
133 private:
int zeroCount;
136 private:
unsigned int minContactCount;
139 private:
int attachSteps;
142 private:
int detachSteps;
145 private: std::string name;