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

◆ clamp()

float clamp ( float  value,
Optional[float]   lower = None,
Optional[float]   upper = None 
)

Clamp a value between a lower and an upper bound.

Parameters
valueValue to clamp.
lowerLower bound.
upperUpper bound.