6#ifndef YARP_PM_THROTTLEDOWN
7#define YARP_PM_THROTTLEDOWN
32 double m_last_time = 0;
33 double m_period = 1.0;
ThrottleDown: Portmonitor plugin for reducing the throughput of a port connection,...
bool accept(yarp::os::Things &thing) override
This will be called when the data reach the portmonitor object.
yarp::os::Things & update(yarp::os::Things &thing) override
After data get accpeted in the accept() callback, an instance of that is given to the update function...
bool setparam(const yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are set via YARP admin port.
void destroy() override
This will be called when the portmonitor object destroyes.
bool create(const yarp::os::Property &options) override
This will be called when the dll is properly loaded by the portmonitor carrier.
bool getparam(yarp::os::Property ¶ms) override
This will be called when the portmonitor carrier parameters are requested via YARP admin port.
A class for storing options and configuration information.
Base class for generic things.