$search

ros::Duration Class Reference

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

#include <duration.h>

Inheritance diagram for ros::Duration:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Duration (const Rate &)
 Duration (double t)
 Duration (int32_t _sec, int32_t _nsec)
 Duration ()
bool sleep () const
 sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining.

Detailed Description

Duration representation for use with the Time class.

ros::DurationBase provides most of its functionality.

Definition at line 108 of file duration.h.


Constructor & Destructor Documentation

ros::Duration::Duration (  )  [inline]

Definition at line 111 of file duration.h.

ros::Duration::Duration ( int32_t  _sec,
int32_t  _nsec 
) [inline]

Definition at line 115 of file duration.h.

ros::Duration::Duration ( double  t  )  [inline, explicit]

Definition at line 119 of file duration.h.

ros::Duration::Duration ( const Rate r  )  [inline, explicit]

Definition at line 189 of file impl/duration.h.


Member Function Documentation

bool ros::Duration::sleep (  )  const

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

Definition at line 366 of file time.cpp.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


rostime
Author(s): Josh Faust
autogenerated on Sat Mar 2 13:22:41 2013