18#ifndef GAZEBO_PLUGINS_EVENTS_OCCUPIEDEVENTSSOURCE_HH_
19#define GAZEBO_PLUGINS_EVENTS_OCCUPIEDEVENTSSOURCE_HH_
63 const std::map<std::string, RegionPtr> &_regions);
69 public:
virtual void Load(
const sdf::ElementPtr _sdf);
72 private:
void Update();
75 private: sdf::ElementPtr sdf;
78 private: std::map<std::string, RegionPtr> regions;
81 public: msgs::GzString
msg;
93 private: std::string regionName;
Forward declarations for transport.
The base class for emitting SimEvents.
Definition EventSource.hh:35
A plugin that transmits a message when an in-region event occurs.
Definition OccupiedEventSource.hh:59
OccupiedEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world, const std::map< std::string, RegionPtr > &_regions)
virtual void Load(const sdf::ElementPtr _sdf)
Load from an sdf element (with possible configuration data)
msgs::GzString msg
String message that is transmitted when an event occurs.
Definition OccupiedEventSource.hh:81
~OccupiedEventSource()=default
Destructor.
transport::PublisherPtr msgPub
Publisher that transmits the message when an event occurs.
Definition OccupiedEventSource.hh:84
boost::shared_ptr< Connection > ConnectionPtr
Definition CommonTypes.hh:134
boost::shared_ptr< World > WorldPtr
Definition PhysicsTypes.hh:89
boost::shared_ptr< Publisher > PublisherPtr
Definition TransportTypes.hh:49
boost::shared_ptr< Node > NodePtr
Definition TransportTypes.hh:57
Forward declarations for the common classes.
Definition Animation.hh:27