![]() |
FancySafeBot 0.0.1
A safe robotics library
|
Compute forward kinematics.
#include <fsb_timing.h>
Public Member Functions | |
TimingError | initialize (const timespec &step_size) |
Initialize periodic timer. | |
TimingError | start () |
Start timer. | |
TimingError | step (real_t &nominal_time, real_t &remainder) |
Wait for next step. | |
TimingError fsb::PeriodicTimer::initialize | ( | const timespec & | step_size | ) |
Initialize periodic timer.
step_size | Timer step size |
TimingError fsb::PeriodicTimer::start | ( | ) |
Start timer.
The current time from the high-resolution monotonic timer will be used.
TimingError fsb::PeriodicTimer::step | ( | real_t & | nominal_time, |
real_t & | remainder | ||
) |
Wait for next step.
The target time is based on number of times step
is called after calling
start. The actual elapsed time is equal to the addition of the nominal time and remainder.
nominal_time | Target elapsed time since calling start() |
remainder | Actual time delay after target elapsed time |