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

fix bug of setJointAnglesSequenceFull function in SequencePlayer #883

Merged
merged 3 commits into from
Dec 15, 2015

Conversation

mmurooka
Copy link
Contributor

SequencePlayer.cppのsetJointAnglesSequenceFull関数のバグを修正しました.

@k-okada
Copy link
Contributor

k-okada commented Nov 21, 2015

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

@k-okada
Copy link
Contributor

k-okada commented Nov 21, 2015

どういうバグでしょうか?また,テストコードにかからない理由はなんでしょうか.

◉ Kei Okada

On Sat, Nov 21, 2015 at 8:58 PM, Masaki Murooka [email protected]
wrote:

SequencePlayer.cppのsetJointAnglesSequenceFull関数のバグを修正しました.

You can view, comment on, or merge this pull request online at:

#883
Commit Summary

  • fix bug of setJointAnglesSequenceFull function in SequencePlayer.

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#883.

@mmurooka
Copy link
Contributor Author

特にプログラムを使っていて動作がおかしかったという訳ではなくて,
ソースコードを読んでいて変数の名前などから類推して,
PR前のものは明らかに誤っているように思えたので修正してみました.

テストコードにかからない理由は確認してみます.

@mmurooka
Copy link
Contributor Author

テストコードにかからない理由は,
https://github.com/fkanehiro/hrpsys-base/blob/master/sample/SampleRobot/samplerobot_sequence_player.py
hcf.seq_svc.setJointAnglesSequenceFull を呼ぶテストがないからのようです.
おそらく呼ばれたことのほぼないマイナーな関数な気がします.

テストコードを追加します.

@mmurooka mmurooka force-pushed the fix-seq-bug-20151121 branch 2 times, most recently from dd8a01f to a3f5f4f Compare November 21, 2015 15:19
@k-okada
Copy link
Contributor

k-okada commented Nov 21, 2015

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

@k-okada
Copy link
Contributor

k-okada commented Nov 21, 2015

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

Build Log
last 10 lines

[...truncated 3606 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:1783)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)

Test FAILed.

@k-okada
Copy link
Contributor

k-okada commented Nov 21, 2015

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

Build Log
last 10 lines

[...truncated 3606 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:1783)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:410)

Test FAILed.

@snozawa
Copy link
Contributor

snozawa commented Nov 22, 2015

に hcf.seq_svc.setJointAnglesSequenceFull を呼ぶテストがないからのようです.
おそらく呼ばれたことのほぼないマイナーな関数な気がします.

@mmurookaさんのいうとおり、テストはされてないと思います。
これは多分JSKではほとんど使われてないですが、loadpatternでなくて
ファイルを介さないで関節角度、ZMP、腰位置姿勢、接触力、などを:angle-vector-sequenceに
おくるときには必要になります。
そのためには、ROS+euslispから動かせるようにインターフェースをつける必要があります。

その他、seqが全体的におおきくなってきていて、単体でのテストもいるような気がしています。
#707
例えば、SequencePlayer.cppのsetJointAnglesをよぶと(確か)前はseqplay.cppのsetJointAnglesがよばれてましたが、今はseqplay.cppのsetJointAnglesSequenceが呼ばれて、これは軌道全体的にinterpolate処理を行うため時間がかかることがあり、実時間スレッドを止めてしまうことがあるようです。
7bda914

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