yarp-devices
Public Member Functions | Private Attributes | List of all members
roboticslab::CommandBuffer Class Reference

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
 

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