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

try to extend the number of limbs for gait #730

Merged
merged 6 commits into from
Jul 24, 2015

Conversation

eisoku9618
Copy link
Contributor

AutoBalancerに与えるfootstepに腕も与えられるように追加しようとしています.

例えば

RLEG -> LLEG -> RLEG -> ...

{RLEG, LARM} -> {LLEG, RARM} -> {RLEG, LARM} -> ...

などに拡張できるようにしようとしていて,その第一歩として,時系列のフットステップのリストをフットステップのリストのリストにしたので一旦コミットさせていただきます.

※ APIは変えておらず,現状の二足歩行のテストプログラム(testGaitGenerator.cpp / test-samplerobot-abc.py)が動くことを確認しました.

@k-okada
Copy link
Contributor

k-okada commented Jul 22, 2015

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

Build Log
last 10 lines

[...truncated 7252 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:201)
    at hudson.model.Run.execute(Run.java:1786)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)

Test FAILed.

@snozawa
Copy link
Contributor

snozawa commented Jul 22, 2015

命名則なのですが、おなじ"list"でも

  • 同じ時刻のもので、複数あるもの
    複数形にする?(footstep_nodes, ...)
  • 時系列でlistになってるもの
    _listをつける?(footstep_nodes_list...)

はいかがでしょうか。(xx_list_listでなくて)

例えば
footstep_node (or step_node) : ある時刻の右足の着地位置姿勢
footstep_nodes : ある時刻の右足・左手など全遊脚の着地位置姿勢
footstep_nodes_list : 時系列分つらなったもの

swing_leg_src_coords : ある時刻のswingの開始位置姿勢(実はもともと複数形だった)
swing_leg_src_coords_list : 時系列分つらなったもの

などです。
いかがでしょうか。

@k-okada
Copy link
Contributor

k-okada commented Jul 22, 2015

/tmp/hrpsys-source-730-2015-07-22/src/hrpsys-base-730/rtc/AutoBalancer/GaitGenerator.h:9:47: error: boost/range/algorithm_ext/erase.hpp: No such file or directory
In file included from /tmp/hrpsys-source-730-2015-07-22/src/hrpsys-base-730/rtc/AutoBalancer/AutoBalancer.h:23,
                 from /tmp/hrpsys-source-730-2015-07-22/src/hrpsys-base-730/rtc/AutoBalancer/AutoBalancer.cpp:14:

Erase may too new for old systems

@k-okada
Copy link
Contributor

k-okada commented Jul 23, 2015

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

Build Log
last 10 lines

[...truncated 7284 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:201)
    at hudson.model.Run.execute(Run.java:1786)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)

Test FAILed.

@k-okada
Copy link
Contributor

k-okada commented Jul 23, 2015

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

Build Log
last 10 lines

[...truncated 6311 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:201)
    at hudson.model.Run.execute(Run.java:1786)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)

Test FAILed.

@k-okada
Copy link
Contributor

k-okada commented Jul 23, 2015

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

Build Log
last 10 lines

[...truncated 6311 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:201)
    at hudson.model.Run.execute(Run.java:1786)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)

Test FAILed.

@eisoku9618
Copy link
Contributor Author

using namespaceを.hにかくと強制的に他のファイルもusing namespaceされて、影響され得ます。

勉強になりました.ありがとうございます.

命名則なのですが

こちらもありがとうございます.この案で変数名を統一させていただきました.
ただ

swing_leg_src_coords : ある時刻のswingの開始位置姿勢(実はもともと複数形だった)

に関しては

  • swing_leg_src_coords : ある時刻のあるswing legの開始位置姿勢
  • swing_legs_src_coords : ある時刻のswing legたちの開始位置姿勢
  • swing_legs_src_coords_list : 時系列分つらなったもの

みたいな感じになるようにしてみました.
(座標(=coords)が複数ある時の良さげな言い回しが見つからず...)

@eisoku9618
Copy link
Contributor Author

Erase may too new for old systems

ありがとうございます.
boost::remove_erase_if()を使わずにRemove-Eraseイディオムを使うようにして見ました.

http://faithandbrave.hateblo.jp/entry/20111020/1319093073

@k-okada
Copy link
Contributor

k-okada commented Jul 23, 2015

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

Build Log
last 10 lines

[...truncated 6306 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:201)
    at hudson.model.Run.execute(Run.java:1786)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)

Test FAILed.

fkanehiro added a commit that referenced this pull request Jul 24, 2015
try to extend the number of limbs for gait
@fkanehiro fkanehiro merged commit 5040771 into fkanehiro:master Jul 24, 2015
@eisoku9618 eisoku9618 deleted the add-arms-for-pr branch July 25, 2015 10:24
@eisoku9618 eisoku9618 mentioned this pull request Jul 26, 2015
eisoku9618 referenced this pull request in eisoku9618/hrpsys-base Aug 13, 2015
…idcoords from std::vector<coordinates> to coordinates because we need the reference coordinates
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.

4 participants