2022 IB Diploma Extended Essays
t_lidar=data_lidar[k:e, 0] x_lidar=data_lidar[k:e, 1] y_lidar=data_lidar[k:e, 2] yaw_lidar=data_lidar[k:e, 3] k=0 for i in range(len(data_orb[:, 0])): if data_orb[i, 0]<=1512232502.018991232: k+=1 e=0 for i in range(len(data_orb[:, 0])): if data_orb[i, 0]>=1512232712.210900068: e+=1 e = (len(data_orb[:, 0]) - e - 1) t_orb=data_orb[k:e, 0] x_orb=data_orb[k:e, 1] y_orb=data_orb[k:e, 2] yaw_orb=data_orb[k:e, 3] k=0 for i in range(len(data_zed[:, 0])): if data_zed[i, 0]<=1512232502.018991232: k+=1 e=0 for i in range(len(data_zed[:, 0])): if data_zed[i, 0]>=1512232712.210900068: e+=1 e = (len(data_zed[:, 0]) - e - 1)
t_zed=data_zed[k:e, 0] x_zed=data_zed[k:e, 1] y_zed=data_zed[k:e, 2] yaw_zed=data_zed[k:e, 3] t_gyro=data_gyro[:, 0] yaw_gyro=data_gyro[:, 1] t_mag=data_mag[:, 0] yaw_mag=data_mag[:, 1]
#x data plt.plot(t_lidar, x_lidar, t_orb, x_orb, t_zed, x_zed) plt.legend(['x(t) - lidar', 'x(t) - orb', 'x(t) - zed'], loc='best') #plt.show() #y data plt.plot(t_lidar, y_lidar, t_orb, y_orb, t_zed, y_zed) plt.legend(['y(t) - lidar', 'y(t) - orb', 'y(t) - zed'], loc='best') #plt.show()
Made with FlippingBook. PDF to flipbook with ease