You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# for nvidia jetson
$ cd ~/librealsense/tools/rs-imu-calibration
$ python3 rs-imu-calibration.py
# for desktop
1. Download this file
https://github.com/IntelRealSense/librealsense/blob/master/tools/rs-imu-calibration/rs-imu-calibration.py
2. Run python script
$ python3 rs-imu-calibration.py
Command Line Parameters
Flag
Description
Default
-h
Show help.
-i <accel_filename> [gyro_filename]
Load previously saved results to EEPROM
-s serial_no
calibrate device with given serial_no
calibrate first found device
-g
show graph of data before and after calibration
Install Kalibr
$ mkdir kalibr_ws && cd kalibr_ws && mkdir src && cd src
$ sudo apt install libv4l-dev python-igraph
$ git clone https://github.com/ethz-asl/kalibr
$ cd .. && catkin build
# Type in ~/.bashrc
alias ks='source ~/kalibr_ws/devel/setup.bash'
# And git clone this repository
Stereo Camera calibration
$ roslaunch realsense2_camera rs_camera.launch
$ rosrun topic_tools throttle messages /camera/infra1/image_rect_raw 4.0 /left
$ rosrun topic_tools throttle messages /camera/infra2/image_rect_raw 4.0 /right
$ rosbag record -O stereo_calibra_d435i.bag /left /right
# set target and run (If the target board size is A4, change april_6x6_80x80cm.yaml to april_6x6_A4.yaml)
$ cd ~/kalibr_d435i/kalibr_calibrate_cameras
$ rosrun kalibr kalibr_calibrate_cameras --bag ~/kalibr_d435i/calibrate_cameras/stereo_calibra_d435i.bag --topics /left /right --models pinhole-radtan pinhole-radtan --target ~/kalibr_d435i/april_6x6_80x80cm.yaml --show-extraction
# if an error occurs: "Cameras are not connected through mutual observations, ....."
Add option: --approx-sync 0.04
Get noise density and bias random walk through imu_utils package
Preparation and Collection
1. Install required libary
$ sudo apt install libdw-dev libgoogle-glog-dev libatlas-base-dev
2. Install package in ~/calib_ws/src
$ git clone https://github.com/gaowenliang/code_utils.git
$ cd .. && catkin build code_utils
$ cd src && git clone https://github.com/gaowenliang/imu_utils.git
$ cd .. && catkin build imu_utils
3. Move imu_utils_d435i.launch to imu_utils launch dir and start launch file
$ roslaunch imu_utils imu_utils_d435i.launch
4. Collect the data while the IMU is Stationary, with set duration time