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;
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:84
Forward declarations for the common classes.
Definition: Animation.hh:33
Definition: ExistenceEventSource.hh:27
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
virtual void Load(const sdf::ElementPtr _sdf)
Reads the model filter and event name.
void OnExistence(const std::string &_model, bool _alive)
callback for gazebo event
The base class for emitting SimEvents.
Definition: EventSource.hh:39
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
ExistenceEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world)
Constructor.