Skip to content
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

feat:add optimal_control_using_linear_quadratic_regulator #2

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

tomtomApp
Copy link
Contributor

概要

  • マスバネダンパ系の最適制御(Linear Quadratic Regulator)
  • はじめての現代制御理論の例14.3を実装

変更点

  • 03_optimal_control_using_lqr.cppの新規追加

確認内容

  • colcon build
  • 時間応答を出力し、教科書図14.3と同様の結果であることを確認
9C9AA95E-A234-4EEA-96F1-3B2BDAB553EA

@tomtomApp tomtomApp self-assigned this Apr 21, 2024
Copy link
Member

@Ramune6110 Ramune6110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

【要修正】

【質問】

  • src/03_optimal_control_using_lqr.cpp内の、Af2、X2、f2など2が付いている変数と付いてない変数の違いは何でしょうか?意図が汲み取れませんでした。

@tomtomApp
Copy link
Contributor Author

【要修正について】
修正しました

【質問について】
2が付いている変数と付いてない変数の違いは、異なる評価関数の重みQ, rの違いです。重みによる応答の変化を比較するため、二通りの重みで同時に計算しています。

変数が多く読みにくくてすみません、自分でもQとrだけを入力すれば、応答が出力されるような関数を作るともう少しスマートに書けたと思いました。

@tomtomApp tomtomApp requested a review from Ramune6110 May 8, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants