Combine and use results¶
Intrinsics and noise are written separately and merged into one Kalibr file. The first input supplies the intrinsics, the second the noise:
dedrunk intrinsics imu calib_drive -O imu_intrinsics.yaml
dedrunk imu noise imu_static -O imu_noise.yaml
dedrunk imu merge imu_intrinsics.yaml imu_noise.yaml -O imu.yaml
dedrunk imu show imu.yaml
output.name sets the YAML block name (imu0). Existing files are only
overwritten after confirmation or with --yes. -O names the output file,
-o overrides a setting.
imu-calib¶
The imu-calib crate reads the file and corrects raw samples:
use imu_calib::ImuIntrinsics;
let intrinsics = ImuIntrinsics::from_kalibr_yaml("imu.yaml")?;
let corrector = intrinsics.corrector()?;
let (accel, gyro) = corrector.correct(raw_accel, raw_gyro);
For Pelorus, see Pelorus integration.