Public Member Functions | List of all members
roswrap::WallDuration Class Reference

Duration representation for use with the WallTime class. More...

#include <duration.h>

Inheritance diagram for roswrap::WallDuration:
Inheritance graph
[legend]

Public Member Functions

bool sleep () const
 sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining. More...
 
 WallDuration ()
 
 WallDuration (const Rate &)
 
 WallDuration (double t)
 
 WallDuration (int32_t _sec, int32_t _nsec)
 
- Public Member Functions inherited from roswrap::DurationBase< WallDuration >
 DurationBase ()
 
 DurationBase (double t)
 
 DurationBase (int32_t _sec, int32_t _nsec)
 
WallDurationfromNSec (int64_t t)
 
WallDurationfromSec (double t)
 
bool isZero () const
 
bool operator!= (const WallDuration &rhs) const
 
WallDuration operator* (double scale) const
 
WallDurationoperator*= (double scale)
 
WallDuration operator+ (const WallDuration &rhs) const
 
WallDurationoperator+= (const WallDuration &rhs)
 
WallDuration operator- () const
 
WallDuration operator- (const WallDuration &rhs) const
 
WallDurationoperator-= (const WallDuration &rhs)
 
bool operator< (const WallDuration &rhs) const
 
bool operator<= (const WallDuration &rhs) const
 
bool operator== (const WallDuration &rhs) const
 
bool operator> (const WallDuration &rhs) const
 
bool operator>= (const WallDuration &rhs) const
 
int64_t toNSec () const
 
double toSec () const
 
 ~DurationBase ()
 

Additional Inherited Members

- Public Attributes inherited from roswrap::DurationBase< WallDuration >
int32_t nsec
 
int32_t sec
 

Detailed Description

Duration representation for use with the WallTime class.

ros::DurationBase provides most of its functionality.

Definition at line 137 of file duration.h.

Constructor & Destructor Documentation

◆ WallDuration() [1/4]

roswrap::WallDuration::WallDuration ( )
inline

Definition at line 140 of file duration.h.

◆ WallDuration() [2/4]

roswrap::WallDuration::WallDuration ( int32_t  _sec,
int32_t  _nsec 
)
inline

Definition at line 144 of file duration.h.

◆ WallDuration() [3/4]

roswrap::WallDuration::WallDuration ( double  t)
inlineexplicit

Definition at line 148 of file duration.h.

◆ WallDuration() [4/4]

roswrap::WallDuration::WallDuration ( const Rate rate)
explicit

Definition at line 75 of file duration.cpp.

Member Function Documentation

◆ sleep()

bool roswrap::WallDuration::sleep ( ) const

sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining.

Returns
True if the desired sleep duration was met, false otherwise.

Definition at line 566 of file time_modi.cpp.


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


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:15