Public Member Functions | Protected Member Functions | Private Attributes | List of all members
gazebo::UpdateTimer Class Reference

#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_
 

Detailed Description

Definition at line 41 of file update_timer.h.

Constructor & Destructor Documentation

gazebo::UpdateTimer::UpdateTimer ( )
inline

Definition at line 43 of file update_timer.h.

virtual gazebo::UpdateTimer::~UpdateTimer ( )
inlinevirtual

Definition at line 48 of file update_timer.h.

Member Function Documentation

virtual bool gazebo::UpdateTimer::checkUpdate ( ) const
inlinevirtual

Definition at line 141 of file update_timer.h.

virtual event::ConnectionPtr gazebo::UpdateTimer::Connect ( const boost::function< void()> &  _subscriber,
bool  connectToWorldUpdateBegin = true 
)
inlinevirtual

Definition at line 85 of file update_timer.h.

virtual void gazebo::UpdateTimer::Disconnect ( event::ConnectionPtr const &  _c = event::ConnectionPtr())
inlinevirtual

Definition at line 95 of file update_timer.h.

common::Time const& gazebo::UpdateTimer::getLastUpdate ( ) const
inline

Definition at line 128 of file update_timer.h.

common::Time gazebo::UpdateTimer::getTimeSinceLastUpdate ( ) const
inline

Definition at line 132 of file update_timer.h.

common::Time const& gazebo::UpdateTimer::getUpdatePeriod ( ) const
inline

Definition at line 111 of file update_timer.h.

double gazebo::UpdateTimer::getUpdateRate ( ) const
inline

Definition at line 119 of file update_timer.h.

virtual void gazebo::UpdateTimer::Load ( physics::WorldPtr  _world,
sdf::ElementPtr  _sdf,
const std::string &  _prefix = "update" 
)
inlinevirtual

Definition at line 52 of file update_timer.h.

virtual void gazebo::UpdateTimer::Reset ( )
inlinevirtual

Definition at line 175 of file update_timer.h.

void gazebo::UpdateTimer::setUpdatePeriod ( common::Time const &  period)
inline

Definition at line 115 of file update_timer.h.

void gazebo::UpdateTimer::setUpdateRate ( double  rate)
inline

Definition at line 124 of file update_timer.h.

virtual bool gazebo::UpdateTimer::update ( )
inlinevirtual

Definition at line 158 of file update_timer.h.

virtual bool gazebo::UpdateTimer::update ( double &  dt)
inlinevirtual

Definition at line 169 of file update_timer.h.

virtual bool gazebo::UpdateTimer::Update ( )
inlineprotectedvirtual

Definition at line 181 of file update_timer.h.

Member Data Documentation

unsigned int gazebo::UpdateTimer::connection_count_
private

Definition at line 202 of file update_timer.h.

common::Time gazebo::UpdateTimer::last_update_
private

Definition at line 199 of file update_timer.h.

event::ConnectionPtr gazebo::UpdateTimer::update_connection_
private

Definition at line 203 of file update_timer.h.

event::EventT<void()> gazebo::UpdateTimer::update_event_
private

Definition at line 201 of file update_timer.h.

common::Time gazebo::UpdateTimer::update_offset_
private

Definition at line 198 of file update_timer.h.

common::Time gazebo::UpdateTimer::update_period_
private

Definition at line 197 of file update_timer.h.

physics::WorldPtr gazebo::UpdateTimer::world_
private

Definition at line 196 of file update_timer.h.


The documentation for this class was generated from the following file:


hector_gazebo_plugins
Author(s): Stefan Kohlbrecher , Johannes Meyer
autogenerated on Fri Feb 5 2021 03:48:30