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