23 #ifndef _SENSORMANAGER_HH_
24 #define _SENSORMANAGER_HH_
26 #include <boost/thread.hpp>
70 boost::condition_variable *_var);
77 private: boost::mutex mutex;
80 private: std::list<SimTimeEvent*> events;
111 public:
void Update(
bool _force =
false);
132 public:
void GetSensorTypes(std::vector<std::string> &_types)
const;
142 const std::string &_worldName,
143 const std::string &_parentName);
170 private:
void AddSensor(
SensorPtr _sensor);
201 public:
virtual void Update(
bool _force =
false);
205 public:
void AddSensor(
SensorPtr _sensor);
213 bool _useLeafName =
false)
const;
228 private:
void RunLoop();
238 private:
bool initialized;
241 private: boost::thread *runThread;
244 private:
mutable boost::recursive_mutex mutex;
248 private: boost::condition_variable runCondition;
260 public:
virtual void Update(
bool _force =
false);
266 private:
bool initialized;
269 private:
mutable boost::recursive_mutex mutex;
275 private:
typedef std::vector<SensorContainer*> SensorContainer_V;
278 private: SensorContainer_V sensorContainers;
282 private:
static boost::mutex sensorTimingMutex;