-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
106 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Pioneer Robot | ||
|
||
imupath: "/home/yibin/code/KF-GINS/dataset/car/Wheel-IMU/C1_imu.bin" | ||
|
||
outputpath: "/home/yibin/code/KF-GINS/output/car" | ||
|
||
imudatalen: 7 | ||
|
||
imudatarate: 200 | ||
|
||
starttime: 353650 | ||
endtime: 356255 | ||
|
||
initposstd: [ 0.1, 0.1, 0.2 ] # m | ||
initvelstd: [ 0.05, 0.05, 0.05 ] # m/s | ||
initattstd: [ 0.5, 0.5, 1.0 ] # deg | ||
|
||
imunoise: | ||
arw: 1.2 # [deg/sqrt(hr)] | ||
vrw: 6 # [m/s/sqrt(hr)] | ||
gbstd: 50 # [deg/hr] | ||
abstd: 2000 # [mGal] | ||
gsstd: 50 # [ppm] | ||
asstd: 500 # [ppm] | ||
corrtime: 1.0 # [hr] | ||
|
||
# Misalignment angle between the up IMU and the vehicle. (unit: degree) | ||
MisalignAngle: [0, 1.32, 0] | ||
# Leverarm, wheel center in the imu frame | ||
WheelLA: [-0.015, 0.005, 0.005] | ||
|
||
# Velocity measurement standard deviation | ||
ODO_std: [0.035, 0.02, 0.02] | ||
# Velocity update time interval | ||
ODO_dt: 0.5 | ||
Wheel_Radius: 0.35 | ||
|
||
# if use gyro bias to compensate the wheel velocity | ||
ifCompVel: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env python3 | ||
import numpy as np | ||
import matplotlib.pyplot as plt | ||
|
||
path = "/home/yibin/code/KF-GINS/output/robot/wheelins_Navresult.nav" | ||
imupath = "/home/yibin/code/KF-GINS/dataset/robot/Wheel-IMU/C1_imu.bin" | ||
|
||
num_columns = 7 | ||
dtype = np.float64 | ||
|
||
# Read the binary file using NumPy | ||
try: | ||
imu = np.fromfile(imupath, dtype=dtype) | ||
|
||
# Reshape the data into a 2D array with 7 columns | ||
imu = imu.reshape(-1, num_columns) | ||
|
||
print("Successfully read the binary file.") | ||
print("Shape of the loaded data:", imu.shape) | ||
except FileNotFoundError: | ||
print(f"File not found at path: {imupath}") | ||
except Exception as e: | ||
print(f"An error occurred: {str(e)}") | ||
|
||
fig, axs = plt.subplots(2, 1,figsize=(12, 5)) | ||
axs[0].plot(imu[:, 0] - imu[0, 0], imu[:, 1]) | ||
axs[0].plot(imu[:, 0] - imu[0, 0], imu[:, 2]) | ||
axs[0].plot(imu[:, 0] - imu[0, 0], imu[:, 3]) | ||
axs[0].set_xlabel('Time (s)') | ||
axs[0].set_ylabel('Gyro (rad/s)') | ||
axs[0].legend(['X', 'Y', 'Z']) | ||
axs[1].plot(imu[:, 0] - imu[0, 0], imu[:, 4]) | ||
axs[1].plot(imu[:, 0] - imu[0, 0], imu[:, 5]) | ||
axs[1].plot(imu[:, 0] - imu[0, 0], imu[:, 6]) | ||
axs[1].set_xlabel('Time (s)') | ||
axs[1].set_ylabel('Acc (m/s2) ' + str(imu[0, 0])) | ||
axs[1].legend(['X', 'Y', 'Z']) | ||
|
||
traj = np.loadtxt(path) | ||
fig, ax = plt.subplots() | ||
ax.plot(traj[:, 1], traj[:, 2]) | ||
ax.set_xlabel('X (m)') | ||
ax.set_ylabel('Y (m)') | ||
ax.axis('equal') | ||
ax.legend(['Wheel-INS']) | ||
|
||
|
||
|
||
plt.show() |