-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: Vehicle model estimator (onboard mass & inertia estimation) #13585
Conversation
…tem identification
This module estimates the vehicle mass and inertia matrix. It uses a least mean square algorithm between delayed, low pass filtered, and time differentiated setpoints (thrust and torque, respectively), and low pass filtered and time differentiated accelerations (linear and angular, respectively).
Is it not easier to just weigh a vehicle accurately offline (instead of estimating mass online)? |
@mhkabir yes for sure, yet I see a few reasons to do it online:
|
Just curious, if you estimate the inertia based on a torque setpoint and measured angular acceleration, then you assume that the applied torque equals the torque setpoint right? Do you get this from a model of the drivetrain and vehicle dimensions etc? |
@CarlOlsson that is the idea yes. |
This PR has been open for a long while without activity. I am closing now. |
(This PR is based on #13219)
It implements the estimation of the vehicle mass and inertia matrix.
To estimate the vehicle inertia, the estimator low-pass filters and computes the time derivative of the vehicle angular acceleration and of the vehicle torque setpoint, then applies a least-mean-square.
Similarly, to estimate the vehicle mass, the estimator low-pass filters and computes the time derivative of the vehicle acceleration and of the vehicle thrust setpoint, then applies a least-mean-square.
This module can be used to estimate the vehicle parameters offline. I would not use its estimate in the controller, at least for now.
FYI @bresch