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;
98 public: std::map<std::string, physics::Contact>
GetContacts(
99 const std::string &_collisionName);
105 private:
void OnContacts(ConstContactsPtr &_msg);
108 private: std::vector<std::string> collisions;
117 private:
mutable boost::mutex mutex;
120 private: msgs::Contacts contactsMsg;
122 typedef std::list<boost::shared_ptr<msgs::Contacts const> > ContactMsgs_L;
123 private: ContactMsgs_L incomingContacts;