State Machine
Tools for creating and running general purpose state machines.
state_machine::TimeInterface Class Reference

#include <TimeInterface.hpp>

Inheritance diagram for state_machine::TimeInterface:
Inheritance graph

Public Member Functions

 TimeInterface ()=default
 
virtual ~TimeInterface ()=default
 
virtual any_measurements::Time now () const
 
virtual void sleep (const double duration) const
 

Detailed Description

Interface to the time.

Constructor & Destructor Documentation

◆ TimeInterface()

state_machine::TimeInterface::TimeInterface ( )
default

Constructor.

◆ ~TimeInterface()

virtual state_machine::TimeInterface::~TimeInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ now()

any_measurements::Time state_machine::TimeInterface::now ( ) const
virtual

Get the current time.

Returns
Current time.

Reimplemented in state_machine_ros::TimeInterfaceRos.

◆ sleep()

void state_machine::TimeInterface::sleep ( const double  duration) const
virtual

Sleep for the given duration.

Parameters
durationDuration in seconds.

Reimplemented in state_machine_ros::TimeInterfaceRos.


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