18#ifndef GAZEBO_PLUGINS_SIMSTATEEVENTSOURCE_HH_
19#define GAZEBO_PLUGINS_SIMSTATEEVENTSOURCE_HH_
40 public:
virtual void Load(
const sdf::ElementPtr _sdf);
51 private:
bool hasPaused;
The base class for emitting SimEvents.
Definition EventSource.hh:35
SimEvent that fires when the simulation is paused/resumed.
Definition SimStateEventSource.hh:28
virtual ~SimStateEventSource()
Dtor.
virtual void Load(const sdf::ElementPtr _sdf)
Load the name of the event from the world file.
SimStateEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world)
Constructor.
virtual void OnUpdate(const common::UpdateInfo &_info)
Update for every time step.
void OnPause(bool _p)
Callback for the pause event.
A Time class, can be used to hold wall- or sim-time.
Definition Time.hh:48
Information for use in an update event.
Definition UpdateInfo.hh:31
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
Forward declarations for the common classes.
Definition Animation.hh:27