:orphan: # IMU examples Examples of IMU [preintegrating](./imu_integrator.py) and IMU [correction](./imu_corrector.py). ## Installation python -m pip install -U matplotlib ## Prepare Dataset * Download KITTI IMU sample data [2011_09_26.zip](https://github.com/pypose/IMU_preintegration/releases/download/Kitti/2011_09_26.zip). * Extract the file to any folder `DATAROOT`, so that it looks like: DATAROOT ├── 2011_09_26 ├── 2011_09_26_drive_0001_sync ├── 2011_09_26_drive_0002_sync ├── 2011_09_26_drive_0005_sync . . . ├── 2011_09_26_drive_0018_sync ├── 2011_09_26_drive_0020_sync ├── 2011_09_26_drive_0022_sync ├── calib_cam_to_cam.txt ├── calib_imu_to_velo.txt └── calib_velo_to_cam.txt # IMU Preintegration: python imu_integrator.py --dataroot DATAROOT --datadrive 0018 0022 Note: change `DATAROOT` to the folder you select. * Data Drive to select: 0001 0002 0005 0009 0011 0013 0014 0015 0017 0018 0019 0020 0022 0005 * Other supported arguments: IMU Preintegration optional arguments: -h, --help show this help message and exit --device DEVICE cuda or cpu --integrating-step INTEGRATING_STEP number of integrated steps --batch-size BATCH_SIZE batch size, only support 1 now --save SAVE location of png files to save --dataroot DATAROOT dataset location downloaded --dataname DATANAME dataset name --datadrive DATADRIVE [DATADRIVE ...] data sequences --plot3d plot in 3D space, default: False # IMU Correction: python imu_integrator.py --dataroot DATAROOT Note: change `DATAROOT` to the folder you select. * Data Drive to select: 0001 0002 0005 0009 0011 0013 0014 0015 0017 0018 0019 0020 0022 0005 * Other supported arguments: optional arguments: -h, --help show this help message and exit --device DEVICE cuda or cpu --batch-size BATCH_SIZE batch size --max_epoches MAX_EPOCHES max_epoches --dataroot DATAROOT dataset location downloaded --dataname DATANAME dataset name --datadrive DATADRIVE [DATADRIVE ...] data sequences --load_ckpt .. raw:: html
.. raw:: html
.. only:: html .. image:: /imu/images/thumb/sphx_glr_imu_dataset_tutorial_thumb.png :alt: IMU Dataset Tutorial :ref:`sphx_glr_imu_imu_dataset_tutorial.py` .. raw:: html
IMU Dataset Tutorial
.. raw:: html
.. only:: html .. image:: /imu/images/thumb/sphx_glr_imu_integrator_tutorial_thumb.png :alt: IMU Integrator Tutorial :ref:`sphx_glr_imu_imu_integrator_tutorial.py` .. raw:: html
IMU Integrator Tutorial
.. raw:: html
.. only:: html .. image:: /imu/images/thumb/sphx_glr_imu_corrector_tutorial_thumb.png :alt: IMU Corrector Tutorial :ref:`sphx_glr_imu_imu_corrector_tutorial.py` .. raw:: html
IMU Corrector Tutorial
.. raw:: html
.. toctree:: :hidden: /imu/imu_dataset_tutorial /imu/imu_integrator_tutorial /imu/imu_corrector_tutorial .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: imu_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: imu_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_