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< World > WorldPtr
Definition: PhysicsTypes.hh:84
InRegionEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world, const std::map< std::string, RegionPtr > &_regions)
Constructor.
virtual void Load(const sdf::ElementPtr _sdf)
Loads the full name of the model and the region from the world file.
void Update()
Called every simulation step.
Forward declarations for the common classes.
Definition: Animation.hh:33
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
The base class for emitting SimEvents.
Definition: EventSource.hh:39
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
void Info() const
Prints data about the event source to the log (useful for debug)
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:88
virtual void Init()
Initialize the event.
std::shared_ptr< Region > RegionPtr
Definition: Region.hh:64
The event generator class.
Definition: InRegionEventSource.hh:31