HJReachability / ilqgames

Iterative Linear-Quadratic Games!
https://hjreachability.github.io/ilqgames/
BSD 3-Clause "New" or "Revised" License
132 stars 41 forks source link

Question about linearize function in dynamics header file #67

Closed zhonghai1995 closed 2 years ago

zhonghai1995 commented 2 years ago

Hello Professor David,

I have a question about linearizing the dynamics around an operating point. If I understand it correctly, in the dynamics header file, the current implementation of linearize function (e.g., in the unicycle4d) corresponds to using Euler integration, if we use RK4, then maybe we need to provide another version of linearize function? But yes maybe there won't be much difference.

Thanks so much!

dfridovi commented 2 years ago

Linearization is separate from time discretization. Linearization is just taking a bunch of derivatives. Time discretization happens separately. You could also do time discretization first (e.g., with Euler or RK), then linearize. Either way.