18 #ifndef _SIMSTATE_EVENTSOURCE_HH_
19 #define _SIMSTATE_EVENTSOURCE_HH_
40 public:
virtual void Load(
const sdf::ElementPtr _sdf);
51 private:
bool hasPaused;
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:147
virtual void OnUpdate(const common::UpdateInfo &_info)
Update for every time step.
Information for use in an update event.
Definition: UpdateInfo.hh:30
SimStateEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world)
Constructor.
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:39
void OnPause(bool _p)
Callback for the pause event.
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:80
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
virtual ~SimStateEventSource()
Dtor.
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:39