トルク上限を追加し発熱を抑制する#2
Open
nupenupe wants to merge 1 commit into
Open
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
倒立時に股が徐々に開脚することにより、トルクが増大しモータが発熱する問題に対してトルクの上限を設ける形で温度上昇を抑制しました。
Goモータでは明示的なトルク上限を設けることはできません。
また倒立時のトルクの支配的な項はP制御のトルクであるため、こちらに擬似的な制限を設けることにしました。
具体的には、偏差にPゲインをかけたものがトルクとなるため、算出されたトルクがしきい値以上になった場合、Pゲインをしきい値を偏差で除したものとすることで、擬似的なトルク上限を実現しています。
この実装ではPゲインからのトルクに制限をかけているため、Dゲインやトルク指令などには影響を及ぼさない実装となっています。
実験結果ではトルク上限近傍でトルクが頭打ちになっているため、機能していることは確認済みです。
トルクの上限は
torque_limitで管理しています。設定値は9.0 Nmにしています。この値は約300秒程度倒立ができ、温度上昇がゆるやかといった点から選んでいます。
必要に応じて変更していただいて問題ありません。
トルク上限を大きくすると温度上昇が早くなりますが、姿勢を維持する時間が長くなるトレードオフになっています。