3 #ifndef __COMMAND_BUFFER_HPP__
4 #define __COMMAND_BUFFER_HPP__
18 void accept(
double command);
20 double getStoredCommand(
double * timestamp =
nullptr)
const;
21 void reset(
double initialCommand);
24 double storedCommand {0.0};
25 double interpolationResult {0.0};
26 double commandPeriod {0.0};
27 double commandTimestamp {0.0};
28 double interpolationTimestamp {0.0};
29 mutable std::mutex mutex;
A buffer for periodic commands implementing linear interpolation.
Definition: CommandBuffer.hpp:16
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:6