18 #ifndef _GAZEBO_EXISTENCEVENTSOURCE_HH_
19 #define _GAZEBO_EXISTENCEVENTSOURCE_HH_
37 public:
virtual void Load(
const sdf::ElementPtr _sdf);
42 public:
void OnExistence(
const std::string &_model,
bool _alive);
48 private: std::string model;
ExistenceEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world)
Constructor.
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
Definition: ExistenceEventSource.hh:27
The base class for emitting SimEvents.
Definition: EventSource.hh:39
virtual void Load(const sdf::ElementPtr _sdf)
Reads the model filter and event name.
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:84
void OnExistence(const std::string &_model, bool _alive)
callback for gazebo event
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49