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

[Stabilizer]変数未初期化 #1270

Open
hsnuhayato opened this issue Apr 6, 2019 · 0 comments
Open

[Stabilizer]変数未初期化 #1270

hsnuhayato opened this issue Apr 6, 2019 · 0 comments

Comments

@hsnuhayato
Copy link
Contributor

hsnuhayato commented Apr 6, 2019

環境依存の問題かもしれないが、STの変数prev_act_cogが初期化されず、この行の計算:

act_cogvel = (act_cog - prev_act_cog)/dt;

自分の環境だと一回目のループにおいてここでで計算されたact_cogvelの要素にnanが入ってしまいます。
次にローパス通したあとのact_cogvelにもnanが入ってしまいます。
act_cogvel = act_cogvel_filter->passFilter(act_cogvel);

二回目以後のループではローパス通したあとのact_cogvelにnanがずっと入っており、この状態でST onにすると
[st,JointPathEx] ERROR nan/inf is found
が表示されます。
以下のように初期化したらこの問題を回避できます。

prev_act_cog = hrp::Vector3::Zero();

この初期化はいりませんでしょうか?
よろしくお願いします

@hsnuhayato hsnuhayato changed the title [Stabilizer]変数未初期化ゆえにST [Stabilizer]変数未初期化 Apr 6, 2019
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

No branches or pull requests

1 participant