upkie 9.0.0
Open-source wheeled biped robots
Loading...
Searching...
No Matches

◆ clamp_and_warn()

def clamp_and_warn ( float  value,
float  lower,
float  upper,
str  label 
)

Clamp a value between a lower and an upper bound, warning if the value is changed.

Parameters
valueValue to clamp.
lowerLower bound.
upperUpper bound.
labelLabel to describe the value.