mirror of
https://github.com/hku-mars/FAST_LIO.git
synced 2023-04-06 16:28:55 +08:00
add the switch for the online extrinsic estimation
This commit is contained in:
32
Log/plot.py
32
Log/plot.py
@@ -33,22 +33,22 @@ plt.grid()
|
||||
|
||||
|
||||
#### Draw IMU data
|
||||
fig, axs = plt.subplots(2)
|
||||
imu=np.loadtxt('imu.txt')
|
||||
time=imu[:,0]
|
||||
axs[0].set_title('Gyroscope')
|
||||
axs[1].set_title('Accelerameter')
|
||||
lab_1 = ['gyr-x', 'gyr-y', 'gyr-z']
|
||||
lab_2 = ['acc-x', 'acc-y', 'acc-z']
|
||||
for i in range(3):
|
||||
# if i==1:
|
||||
axs[0].plot(time, imu[:,i+1],'.-', label=lab_1[i])
|
||||
axs[1].plot(time, imu[:,i+4],'.-', label=lab_2[i])
|
||||
for i in range(2):
|
||||
# axs[i].set_xlim(386,389)
|
||||
axs[i].grid()
|
||||
axs[i].legend()
|
||||
plt.grid()
|
||||
# fig, axs = plt.subplots(2)
|
||||
# imu=np.loadtxt('imu.txt')
|
||||
# time=imu[:,0]
|
||||
# axs[0].set_title('Gyroscope')
|
||||
# axs[1].set_title('Accelerameter')
|
||||
# lab_1 = ['gyr-x', 'gyr-y', 'gyr-z']
|
||||
# lab_2 = ['acc-x', 'acc-y', 'acc-z']
|
||||
# for i in range(3):
|
||||
# # if i==1:
|
||||
# axs[0].plot(time, imu[:,i+1],'.-', label=lab_1[i])
|
||||
# axs[1].plot(time, imu[:,i+4],'.-', label=lab_2[i])
|
||||
# for i in range(2):
|
||||
# # axs[i].set_xlim(386,389)
|
||||
# axs[i].grid()
|
||||
# axs[i].legend()
|
||||
# plt.grid()
|
||||
|
||||
# #### Draw time calculation
|
||||
# plt.figure(3)
|
||||
|
||||
Reference in New Issue
Block a user