25 #include <boost/enable_shared_from_this.hpp>
48 class Sensor :
public boost::enable_shared_from_this<Sensor>
59 public:
virtual void Load(
const std::string &_worldName,
64 public:
virtual void Load(
const std::string &_worldName);
67 public:
virtual void Init();
71 public:
virtual void SetParent(
const std::string &_name);
80 public:
void Update(
bool _force);
94 public:
virtual void Fini();
98 public: std::string
GetName()
const;
110 public:
virtual void SetActive(
bool _value);
118 public: std::string
GetType()
const;
135 public:
virtual std::string
GetTopic()
const;
139 public:
void FillMsg(msgs::Sensor &_msg);
151 private:
void OnControl(ConstWorldControlPtr &_data);
181 protected: std::vector<SensorPluginPtr>
plugins;