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;
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:89
void OnPause(bool _p)
Callback for the pause event.
Forward declarations for the common classes.
Definition: Animation.hh:26
virtual ~SimStateEventSource()
Dtor.
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
SimStateEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world)
Constructor.
Information for use in an update event.
Definition: UpdateInfo.hh:30
virtual void OnUpdate(const common::UpdateInfo &_info)
Update for every time step.
virtual void Load(const sdf::ElementPtr _sdf)
Load the name of the event from the world file.
The base class for emitting SimEvents.
Definition: EventSource.hh:40
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
SimEvent that fires when the simulation is paused/resumed.
Definition: SimStateEventSource.hh:27
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:44