22 #ifndef _CONTACTSENSOR_HH_
23 #define _CONTACTSENSOR_HH_
59 public:
virtual void Load(
const std::string &_worldName,
64 public:
virtual void Load(
const std::string &_worldName);
67 public:
virtual void Init();
71 protected:
virtual void UpdateImpl(
bool _force);
74 protected:
virtual void Fini();
89 const std::string &_collisionName)
const;
134 public: std::map<std::string, physics::Contact>
GetContacts(
135 const std::string &_collisionName);
141 private:
void OnContacts(ConstContactsPtr &_msg);
144 private: std::vector<std::string> collisions;
153 private:
mutable boost::mutex mutex;
156 private: msgs::Contacts contactsMsg;
158 typedef std::list<boost::shared_ptr<msgs::Contacts const> > ContactMsgs_L;
159 private: ContactMsgs_L incomingContacts;