ori-drs / allan_variance_ros

ROS compatible tool to generate Allan Deviation plots
BSD 3-Clause "New" or "Revised" License
496 stars 87 forks source link

about analysis.py #16

Closed boeun98 closed 2 years ago

boeun98 commented 2 years ago

I have a problem.

I ran the analysis.py

but the biases about accelerometer and gyroscope x,y, and z have nan value.

What should I do???

results . . acceleration . . gyro . . . . . . And I modified the code in analysis.py

logx = np.log(x) and logy = np.log(y) ----> add logx = np.nan_to_num(logx) and logy = np.nan_to_num(logy)

coeffs, _ = curve_fit(line_func, logx, logy, bounds=~~~~~~ ----> coeffs, _ = curve_fit(line_func, logx, logy)

raabuchanan commented 2 years ago

Hi @boeun98 I think you don't have enough data, it looks like you recorded less than 100s. Absolute minimum you need is 1 hour of data but ideally 3 hours or more for better accuracy.