yarp-devices
|
A buffer for periodic commands implementing linear interpolation.
#include <CommandBuffer.hpp>
Public Member Functions | |
void | accept (double command) |
double | interpolate () |
double | getStoredCommand (double *timestamp=nullptr) const |
void | reset (double initialCommand) |
Private Attributes | |
double | storedCommand {0.0} |
double | interpolationResult {0.0} |
double | commandPeriod {0.0} |
double | commandTimestamp {0.0} |
double | interpolationTimestamp {0.0} |
std::mutex | mutex |