State Machine  0.4.0
This repository contains packages for creating and running general purpose state machines.
state_machine_ros::TimeInterfaceRos Class Reference

#include <TimeInterfaceRos.hpp>

Inheritance diagram for state_machine_ros::TimeInterfaceRos:
Inheritance graph

Public Member Functions

 TimeInterfaceRos ()=default
 
 ~TimeInterfaceRos () override=default
 
any_measurements::Time now () const override
 
void sleep (const double duration) const override
 
- Public Member Functions inherited from state_machine::TimeInterface
 TimeInterface ()=default
 
virtual ~TimeInterface ()=default
 

Detailed Description

Interface to the ROS time.

Constructor & Destructor Documentation

◆ TimeInterfaceRos()

state_machine_ros::TimeInterfaceRos::TimeInterfaceRos ( )
default

Constructor.

◆ ~TimeInterfaceRos()

state_machine_ros::TimeInterfaceRos::~TimeInterfaceRos ( )
overridedefault

Destructor.

Member Function Documentation

◆ now()

any_measurements::Time state_machine_ros::TimeInterfaceRos::now ( ) const
overridevirtual

Get the current time.

Returns
Current time.

Reimplemented from state_machine::TimeInterface.

◆ sleep()

void state_machine_ros::TimeInterfaceRos::sleep ( const double  duration) const
overridevirtual

Sleep for the given duration.

Parameters
durationDuration in seconds.

Reimplemented from state_machine::TimeInterface.


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