23 #ifndef _SENSORMANAGER_HH_
24 #define _SENSORMANAGER_HH_
26 #include <boost/thread.hpp>
71 boost::condition_variable *_var);
78 private: boost::mutex mutex;
81 private: std::list<SimTimeEvent*> events;
106 public:
void Update(
bool _force =
false);
127 public:
void GetSensorTypes(std::vector<std::string> &_types)
const;
137 const std::string &_worldName,
138 const std::string &_parentName);
165 private:
void AddSensor(
SensorPtr _sensor);
196 public:
virtual void Update(
bool _force =
false);
200 public:
void AddSensor(
SensorPtr _sensor);
208 bool _useLeafName =
false)
const;
223 private:
void RunLoop();
233 private:
bool initialized;
236 private: boost::thread *runThread;
239 private:
mutable boost::recursive_mutex mutex;
243 private: boost::condition_variable runCondition;
255 public:
virtual void Update(
bool _force =
false);
261 private:
bool initialized;
264 private:
bool removeAllSensors;
267 private:
mutable boost::recursive_mutex mutex;
276 private:
typedef std::vector<SensorContainer*> SensorContainer_V;
279 private: SensorContainer_V sensorContainers;