Skip to main content

pamoja_odometry_integrate_wheels

Function pamoja_odometry_integrate_wheels 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_odometry_integrate_wheels( odometry: *mut PamojaOdometry, left: f32, right: f32, drive: PamojaDiffDrive, ) -> PamojaPose
Expand description

Integrates the distances two wheels rolled onto an odometry estimate.

A distance that is not a finite number is ignored.

§Returns

The new pose, or the origin if odometry is null.

§Safety

odometry must be a live handle from pamoja_odometry_new, or null.