1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200
|
roslaunch realsense2_camera rs_camera_for_calib.launch
changhe@changhe:~/d435i_ros$ rostopic list -v | grep imu * /camera/imu [sensor_msgs/Imu] 1 publisher * /camera/gyro/imu_info [realsense2_camera/IMUInfo] 1 publisher * /camera/accel/imu_info [realsense2_camera/IMUInfo] 1 publisher changhe@changhe:~/d435i_ros$ rostopic echo /camera/imu header: seq: 10135 stamp: secs: 1704355811 nsecs: 680399179 frame_id: "camera_imu_optical_frame" orientation: x: 0.0 y: 0.0 z: 0.0 w: 0.0 orientation_covariance: [-1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] angular_velocity: x: -0.001745329238474369 y: 0.001745329238474369 z: 0.0 angular_velocity_covariance: [0.01, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.01] linear_acceleration: x: -0.00493930911018656 y: -9.846020630401458 z: 0.019613299518823624 linear_acceleration_covariance: [0.01, 0.0, 0.0, 0.0, 0.01, 0.0, 0.0, 0.0, 0.01]
cd ~/imu_calib rosbag record -O imu_calibration /camera/imu
source ~/imu_calib/devel/setup.bash roslaunch imu_utils d435i_imu_calibration.launch
[ INFO] [1704356481.837577493]: Loaded imu_topic: /camera/imu [ INFO] [1704356481.838011572]: Loaded imu_name: d435i [ INFO] [1704356481.838159386]: Loaded data_save_path: /home/changhe/imu_calib/src/imu_utils/data/ [ INFO] [1704356481.838308947]: Loaded max_time_min: 120 [ INFO] [1704356481.838460625]: Loaded max_cluster: 400 gyr x num of Cluster 400 gyr y num of Cluster 400 gyr z num of Cluster 400 acc x num of Cluster 400 acc y num of Cluster 400 acc z num of Cluster 400 wait for imu data.
rosbag play -r 400 imu_calibration.bag
wait for imu data. gyr x numData 2878675 gyr x start_t 1.70436e+09 gyr x end_t 1.70436e+09 gyr x dt -------------7200.01 s -------------120 min -------------2 h gyr x freq 399.816 gyr x period 0.00250115 gyr y numData 2878675 gyr y start_t 1.70436e+09 gyr y end_t 1.70436e+09 gyr y dt -------------7200.01 s -------------120 min -------------2 h gyr y freq 399.816 gyr y period 0.00250115 gyr z numData 2878675 gyr z start_t 1.70436e+09 gyr z end_t 1.70436e+09 gyr z dt -------------7200.01 s -------------120 min -------------2 h gyr z freq 399.816 gyr z period 0.00250115 Gyro X C -2.87589 70.9924 -7.40893 0.642781 -0.00746316 Bias Instability 4.1718e-06 rad/s Bias Instability 2.14632e-05 rad/s, at 361.957 s White Noise 21.8314 rad/s White Noise 0.00606455 rad/s bias -0.15276 degree/s ------------------- Gyro y C -2.85711 70.9111 -5.49533 0.648136 -0.0109878 Bias Instability 1.40587e-05 rad/s Bias Instability 1.93153e-05 rad/s, at 609.529 s White Noise 22.6084 rad/s White Noise 0.0062829 rad/s bias 0.0119102 degree/s ------------------- Gyro z C -0.975676 27.4672 -4.80227 0.445228 -0.00711166 Bias Instability 1.5707e-06 rad/s Bias Instability 1.59334e-05 rad/s, at 87.0977 s White Noise 7.53363 rad/s White Noise 0.00209385 rad/s bias -0.0410812 degree/s ------------------- ============================================== ============================================== acc x numData 2878675 acc x start_t 1.70436e+09 acc x end_t 1.70436e+09 acc x dt -------------7200.01 s -------------120 min -------------2 h acc x freq 399.816 acc x period 0.00250115 acc y numData 2878675 acc y start_t 1.70436e+09 acc y end_t 1.70436e+09 acc y dt -------------7200.01 s -------------120 min -------------2 h acc y freq 399.816 acc y period 0.00250115 acc z numData 2878675 acc z start_t 1.70436e+09 acc z end_t 1.70436e+09 acc z dt -------------7200.01 s -------------120 min -------------2 h acc z freq 399.816 acc z period 0.00250115 acc X C -4.98469e-06 0.000757756 3.7721e-05 2.22768e-05 -3.97843e-07 Bias Instability 0.000280485 m/s^2 White Noise 0.0162395 m/s^2 ------------------- acc y C -2.49845e-07 0.000834302 -1.96216e-05 1.89497e-05 -3.22867e-07 Bias Instability 0.000192201 m/s^2 White Noise 0.0171629 m/s^2 ------------------- acc z C -2.81212e-06 0.000594583 6.58393e-05 6.43312e-06 -1.03843e-07 Bias Instability 0.000179308 m/s^2 White Noise 0.0128838 m/s^2 ------------------- [imu_an-1] process has finished cleanly log file: /home/changhe/.ros/log/965a1072-aad8-11ee-b508-a13a0030ff2c/imu_an-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done
%YAML:1.0 --- type: IMU name: d435i Gyr: unit: " rad/s" avg-axis: gyr_n: 4.8137652096146783e-03 gyr_w: 1.8903981803128362e-05 x-axis: gyr_n: 6.0645500436790623e-03 gyr_w: 2.1463185558878976e-05 y-axis: gyr_n: 6.2828973927536100e-03 gyr_w: 1.9315340333546505e-05 z-axis: gyr_n: 2.0938481924113613e-03 gyr_w: 1.5933419516959604e-05 Acc: unit: " m/s^2" avg-axis: acc_n: 1.5428717790802770e-02 acc_w: 2.1733118964279978e-04 x-axis: acc_n: 1.6239510893649358e-02 acc_w: 2.8048486828980107e-04 y-axis: acc_n: 1.7162885741267130e-02 acc_w: 1.9220055801685360e-04 z-axis: acc_n: 1.2883756737491822e-02 acc_w: 1.7930814262174464e-04
|