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

[rtc/ReferenceForceUpdater/,idl/ReferenceForceUpdaterService.idl] add frame parameter to set move_dir in world coordinates #1033

Merged
merged 1 commit into from
Aug 23, 2016

Conversation

rkoyama1623-2021
Copy link
Contributor

ReferenceForceUpdaterでmotion_dirのベクトルを渡す際に、
今までend effectorの座標で与えていましたが、
両足の間にある座標(foot-mid-coords)でも渡せるように,frame パラメータを追加しました。

p=hcf.rfu_svc.getReferenceForceUpdaterParam("larm")[1]
p.frame="local" # motion_dirの座標系はend effector の座標系 (default)
p.frame="world" # motion_dirの座標系は両足の真ん中(foot-mid-coords)
hcf.rfu_svc.setReferenceForceUpdaterParam("larm",p)

シミュレータで挙動を確認しました。

… frame parameter to set move_dir in world coordinates
@k-okada
Copy link
Contributor

k-okada commented Aug 22, 2016

Refer to this link for build results (access rights to CI server needed):
http:https://jenkins.jsk.imi.i.u-tokyo.ac.jp:8080/job/hrpsys-qnx/2690/

Build Log
last 10 lines

[...truncated 58 lines...]
    at org.jenkinsci.plugins.ghprb.GhprbRepository.createCommitStatus(GhprbRepository.java:122)
    at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:118)
    at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:27)
    at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:12)
    at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
    at hudson.model.Run.execute(Run.java:1765)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:404)

Test FAILed.

@rkoyama1623-2021
Copy link
Contributor Author

実機で,

p.frame="world" # motion_dirの座標系は両足の真ん中(foot-mid-coords)

の場合に,手先の向きが変わったり,歩行して体の向きが変わっても,両足真ん中の座標でmotion_dirが解釈されていることを確認しました.

@fkanehiro fkanehiro merged commit 7dad220 into fkanehiro:master Aug 23, 2016
@mmurooka
Copy link
Contributor

@rkoyama1623 , こちらIDLが変わってますが,euslispから動かす場合 rtm-ros-robot-interface.lの変更はなくても大丈夫でしょうか.

@rkoyama1623-2021
Copy link
Contributor Author

変更はなくても大丈夫です。
ReferenceForceUpdaterParamのパラメータに"frame"パラメータを追加しました。
euslispの方には自動で反映されていて、

(send *ri* :set-reference-force-updater-param :arms :motion-dir #f(0 0 -1) :frame "world")

などのようにセットできます(:framのデフォルトは"local"がセットされています)。
上のコマンドで、motion-dirのベクトルの方向が、両足の真ん中の座標((send *robot* :foot-midcoords))のベクトルとして解釈されます。

@mmurooka
Copy link
Contributor

了解です.ありがとう.

@rkoyama1623-2021 rkoyama1623-2021 deleted the rfu-add-frame-param branch September 24, 2016 10:54
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

4 participants