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

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 bool read (ConnectionReader &reader)=0
 Read this object from a network connection. More...
virtual Type getReadType () const

Public Attributes

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

Detailed Description

Definition at line 203 of file Ping.cpp.

Constructor & Destructor Documentation

◆ PingSampler()

PingSampler::PingSampler ( )

Definition at line 211 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 216 of file Ping.cpp.

Member Data Documentation

◆ ct

int PingSampler::ct {0}

Definition at line 207 of file Ping.cpp.

◆ lastTime

double PingSampler::lastTime {0}

Definition at line 208 of file Ping.cpp.

◆ mutex

std::mutex PingSampler::mutex

Definition at line 206 of file Ping.cpp.

◆ period

Stat PingSampler::period

Definition at line 209 of file Ping.cpp.

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