#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_limits_new(
max_linear: f32,
max_angular: f32,
max_linear_accel: f32,
max_angular_accel: f32,
) -> *mut PamojaLimitsExpand description
Creates limits on speed and acceleration, starting from rest.
Each ceiling’s magnitude is used, and one that is not a number is taken as 0, which holds the robot still.
§Arguments
max_linear- the largest planar speed.max_angular- the largest yaw rate.max_linear_accel- the largest change in speed per second.max_angular_accel- the largest change in yaw rate per second.
§Returns
A handle the caller must release with pamoja_limits_free.
§Safety
The returned handle must be freed exactly once.