ethz-asl / kalibr

The Kalibr visual-inertial calibration toolbox
Other
4.21k stars 1.38k forks source link

[ERROR] [1681013049.615084]: argument --imu is required #607

Closed YOUZHUYOU closed 1 year ago

YOUZHUYOU commented 1 year ago

I installed the kalibr, when i run a sample using the commends: kalibr_calibrate_imu_camera --target /home/zy/kalibr_workspace/dynamic/ april_6x6.yaml --cam /home/zy/kalibr_workspace/dynamic /camchain.yaml --imu/home/zy/kalibr_workspace/dynamic /imu_adis16448.yaml --bag /home/zy/kalibr_workspace/dynamic /dynamic.bag --bag-from-to 5 45 the error came out like that: [ERROR] [1681013049.615084]: argument --imu is required Why? And how can i solve it?

goldbattle commented 1 year ago

Read the --help dialog. You need to specify the IMU model you wish to run with. For example --imu calibrated

On Sun, Apr 9, 2023 at 12:22 AM YOUZHUYOU @.***> wrote:

I installed the kalibr, when i run a sample using the commends: kalibr_calibrate_imu_camera --target /home/zy/kalibr_workspace/dynamic/ april_6x6.yaml --cam /home/zy/kalibr_workspace/dynamic /camchain.yaml --imu/home/zy/kalibr_workspace/dynamic /imu_adis16448.yaml --bag /home/zy/kalibr_workspace/dynamic /dynamic.bag --bag-from-to 5 45 the error came out like that: [ERROR] [1681013049.615084]: argument --imu is required Why? And how can i solve it?

— Reply to this email directly, view it on GitHub https://github.com/ethz-asl/kalibr/issues/607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ6TYU6K5T73VJ7AMXBYATXAI2QDANCNFSM6AAAAAAWX3XICU . You are receiving this because you are subscribed to this thread.Message ID: @.***>

YOUZHUYOU commented 1 year ago

Do you mean to correct the commend like: --imu calibrated/home/zy/kalibr_workspace/dynamic /imu_adis16448.yaml I tried it, then another error came: [ERROR] [1681016189.943579]: unrecognized arguments: april_6x6.yaml camchain.yaml dynamic.bag

goldbattle commented 1 year ago

This is the example command from the wiki: https://github.com/ethz-asl/kalibr/wiki/camera-imu-calibration

rosrun kalibr kalibr_calibrate_imu_camera \
    --target april_6x6.yaml \
    --imu imu_adis16448.yaml \
    --imu-models calibrated \
    --cam cam_april-camchain.yaml \
    --bag imu_april.bag

You can also run the following and read the help dialog.

rosrun kalibr kalibr_calibrate_imu_camera --help

Not sure if you mean to have a "space" in your directory path, but if this is truly the case you need to probably quote the string (standard linux stuff here).