18 #ifndef _GAZEBO_PLUGINS_EVENTS_INREGIONEVENTSOURCE_HH_
19 #define _GAZEBO_PLUGINS_EVENTS_INREGIONEVENTSOURCE_HH_
39 const std::map<std::string, RegionPtr> &_regions);
42 public:
virtual void Init();
48 public:
void Info()
const;
53 public:
virtual void Load(
const sdf::ElementPtr _sdf);
59 private: std::string modelName;
66 private: std::string regionName;
72 private:
const std::map<std::string, RegionPtr> ®ions;
75 private:
bool isInside;
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:88
void Update()
Called every simulation step.
virtual void Load(const sdf::ElementPtr _sdf)
Loads the full name of the model and the region from the world file.
The base class for emitting SimEvents.
Definition: EventSource.hh:39
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:84
virtual void Init()
Initialize the event.
InRegionEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world, const std::map< std::string, RegionPtr > &_regions)
Constructor.
The event generator class.
Definition: InRegionEventSource.hh:31
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
std::shared_ptr< Region > RegionPtr
Definition: Region.hh:64
void Info() const
Prints data about the event source to the log (useful for debug)