Yet Another Robot Platform
PingSampler Class Reference
+ Inheritance diagram for PingSampler:

Detailed Description

Definition at line 200 of file Ping.cpp.

Public Member Functions

 PingSampler ()
bool read (ConnectionReader &connection) override
 Read this object from a network connection. More...
- Public Member Functions inherited from yarp::os::PortReader
virtual ~PortReader ()
 Destructor. More...
virtual Type getReadType () const

Public Attributes

std::mutex mutex
int ct {0}
double lastTime {0}
Stat period

Constructor & Destructor Documentation

◆ PingSampler()

PingSampler::PingSampler ( )

Definition at line 208 of file Ping.cpp.

Member Function Documentation

◆ read()

bool PingSampler::read ( ConnectionReader reader)

Read this object from a network connection.

Override this for your particular class.

readeran interface to the network connection for reading
true iff the object is successfully read

Implements yarp::os::PortReader.

Definition at line 213 of file Ping.cpp.

Member Data Documentation

◆ ct

int PingSampler::ct {0}

Definition at line 204 of file Ping.cpp.

◆ lastTime

double PingSampler::lastTime {0}

Definition at line 205 of file Ping.cpp.

◆ mutex

std::mutex PingSampler::mutex

Definition at line 203 of file Ping.cpp.

◆ period

Stat PingSampler::period

Definition at line 206 of file Ping.cpp.

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