Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

SupervisorによるGankenKunの各関節とボールの座標取得 #52

Open
KANBE8810 opened this issue Dec 22, 2021 · 4 comments
Open
Assignees

Comments

@KANBE8810
Copy link
Contributor

姿勢推定の学習を回すためには、ロボットの各関節の座標を取得する必要があるため、WebotsのSupervisorを利用して座標を取得する。また、同時にボールの座標も取得する。
コードとしてはhr46_b3mのmain.cpp内に記載する予定です。

@KANBE8810 KANBE8810 self-assigned this Dec 22, 2021
@yasuohayashibara
Copy link
Contributor

Pythonになりますが,以下のコマンドでボールの位置は取得できます.
ただし,まだボールは検出しなくても良いかも知れませんが...

pos = ball_translation.getSFVec3f()

@yasuohayashibara
Copy link
Contributor

yasuohayashibara commented Dec 27, 2021

リンク?位置を出力するサンプルを作りました.
想像していたのよりかなり大変でした.
一番大変なのはドキュメントがないところですが...

#53

@KANBE8810
Copy link
Contributor Author

#64 で開発された2次元座標を組み込もうとした所、キーポイントがうまく読み込めない問題が発生した。
原因はおそらく生成されたロボットにcolorの欄が無いために認識できないもと思われる。

branth : get_position
使用world : get_position_test.wbt
image

@KANBE8810
Copy link
Contributor Author

上記の問題は推定するロボットのカラーを赤色に変更したところ解決しました

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants