#include <update_timer.h>
Public Member Functions | |
virtual bool | checkUpdate () const |
virtual event::ConnectionPtr | Connect (const boost::function< void()> &_subscriber, bool connectToWorldUpdateBegin=true) |
virtual void | Disconnect (event::ConnectionPtr const &_c=event::ConnectionPtr()) |
common::Time const & | getLastUpdate () const |
common::Time | getTimeSinceLastUpdate () const |
common::Time const & | getUpdatePeriod () const |
double | getUpdateRate () const |
virtual void | Load (physics::WorldPtr _world, sdf::ElementPtr _sdf, const std::string &_prefix="update") |
virtual void | Reset () |
void | setUpdatePeriod (common::Time const &period) |
void | setUpdateRate (double rate) |
virtual bool | update () |
virtual bool | update (double &dt) |
UpdateTimer () | |
virtual | ~UpdateTimer () |
Protected Member Functions | |
virtual bool | Update () |
Private Attributes | |
unsigned int | connection_count_ |
common::Time | last_update_ |
event::ConnectionPtr | update_connection_ |
event::EventT< void()> | update_event_ |
common::Time | update_offset_ |
common::Time | update_period_ |
physics::WorldPtr | world_ |
Definition at line 41 of file update_timer.h.
gazebo::UpdateTimer::UpdateTimer | ( | ) | [inline] |
Definition at line 43 of file update_timer.h.
virtual gazebo::UpdateTimer::~UpdateTimer | ( | ) | [inline, virtual] |
Definition at line 48 of file update_timer.h.
virtual bool gazebo::UpdateTimer::checkUpdate | ( | ) | const [inline, virtual] |
Definition at line 116 of file update_timer.h.
virtual event::ConnectionPtr gazebo::UpdateTimer::Connect | ( | const boost::function< void()> & | _subscriber, |
bool | connectToWorldUpdateBegin = true |
||
) | [inline, virtual] |
Definition at line 70 of file update_timer.h.
virtual void gazebo::UpdateTimer::Disconnect | ( | event::ConnectionPtr const & | _c = event::ConnectionPtr() | ) | [inline, virtual] |
Definition at line 80 of file update_timer.h.
common::Time const& gazebo::UpdateTimer::getLastUpdate | ( | ) | const [inline] |
Definition at line 107 of file update_timer.h.
common::Time gazebo::UpdateTimer::getTimeSinceLastUpdate | ( | ) | const [inline] |
Definition at line 111 of file update_timer.h.
common::Time const& gazebo::UpdateTimer::getUpdatePeriod | ( | ) | const [inline] |
Definition at line 90 of file update_timer.h.
double gazebo::UpdateTimer::getUpdateRate | ( | ) | const [inline] |
Definition at line 98 of file update_timer.h.
virtual void gazebo::UpdateTimer::Load | ( | physics::WorldPtr | _world, |
sdf::ElementPtr | _sdf, | ||
const std::string & | _prefix = "update" |
||
) | [inline, virtual] |
Definition at line 52 of file update_timer.h.
virtual void gazebo::UpdateTimer::Reset | ( | ) | [inline, virtual] |
Definition at line 138 of file update_timer.h.
void gazebo::UpdateTimer::setUpdatePeriod | ( | common::Time const & | period | ) | [inline] |
Definition at line 94 of file update_timer.h.
void gazebo::UpdateTimer::setUpdateRate | ( | double | rate | ) | [inline] |
Definition at line 103 of file update_timer.h.
virtual bool gazebo::UpdateTimer::update | ( | ) | [inline, virtual] |
Definition at line 125 of file update_timer.h.
virtual bool gazebo::UpdateTimer::update | ( | double & | dt | ) | [inline, virtual] |
Definition at line 132 of file update_timer.h.
virtual bool gazebo::UpdateTimer::Update | ( | ) | [inline, protected, virtual] |
Definition at line 144 of file update_timer.h.
unsigned int gazebo::UpdateTimer::connection_count_ [private] |
Definition at line 161 of file update_timer.h.
common::Time gazebo::UpdateTimer::last_update_ [private] |
Definition at line 158 of file update_timer.h.
Definition at line 162 of file update_timer.h.
event::EventT<void()> gazebo::UpdateTimer::update_event_ [private] |
Definition at line 160 of file update_timer.h.
common::Time gazebo::UpdateTimer::update_offset_ [private] |
Definition at line 157 of file update_timer.h.
common::Time gazebo::UpdateTimer::update_period_ [private] |
Definition at line 156 of file update_timer.h.
physics::WorldPtr gazebo::UpdateTimer::world_ [private] |
Definition at line 155 of file update_timer.h.