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;
The base class for emitting SimEvents.
Definition EventSource.hh:35
The event generator class.
Definition InRegionEventSource.hh:32
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.
virtual void Init()
Initialize the event.
void Info() const
Prints data about the event source to the log (useful for debug)
void Update()
Called every simulation step.
boost::shared_ptr< Connection > ConnectionPtr
Definition CommonTypes.hh:134
boost::shared_ptr< World > WorldPtr
Definition PhysicsTypes.hh:89
boost::shared_ptr< Model > ModelPtr
Definition PhysicsTypes.hh:93
boost::shared_ptr< Publisher > PublisherPtr
Definition TransportTypes.hh:49
Forward declarations for the common classes.
Definition Animation.hh:27
std::shared_ptr< Region > RegionPtr
Definition Region.hh:64