MoveIt Pro API
Core Behaviors for MoveIt Pro
Loading...
Searching...
No Matches
moveit_pro::behaviors::internal::LatencyWindow Class Referencefinal

Seam-lead estimate over the last kLatencyWindowSize inference round trips: their max, floored. More...

#include <execute_policy.hpp>

Public Member Functions

 LatencyWindow (const double latency_floor, const double seed)
 
void push (const double sample)
 
double estimate () const
 

Detailed Description

Seam-lead estimate over the last kLatencyWindowSize inference round trips: their max, floored.

A window max recovers after a latency spike, unlike a high-water mark, and an undershoot costs a pause at rest rather than the run. The seed fills every slot, so it acts as the estimate until real round trips age it out.

Warning
Not thread-safe: push() and estimate() share unguarded state.

Constructor & Destructor Documentation

◆ LatencyWindow()

moveit_pro::behaviors::internal::LatencyWindow::LatencyWindow ( const double  latency_floor,
const double  seed 
)
inline

Member Function Documentation

◆ estimate()

double moveit_pro::behaviors::internal::LatencyWindow::estimate ( ) const
inline

◆ push()

void moveit_pro::behaviors::internal::LatencyWindow::push ( const double  sample)
inline

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