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

Add four leg test program #788

Merged
merged 4 commits into from
Sep 3, 2015

Conversation

eisoku9618
Copy link
Contributor

テストプログラムを追加しました.

@eisoku9618
Copy link
Contributor Author

setFootStepsですが,

hcf.setFootSteps([OpenHRP.AutoBalancerService.Footsteps([OpenHRP.AutoBalancerService.Footstep([0,-0.09,0], [1,0,0,0], "rleg")]),
                  OpenHRP.AutoBalancerService.Footsteps([OpenHRP.AutoBalancerService.Footstep([0,0.09,0], [1,0,0,0], "lleg")])])

という与え方はできているのに,

hcf.setFootSteps([OpenHRP.AutoBalancerService.Footsteps([OpenHRP.AutoBalancerService.Footstep([0,-0.09,0], [1,0,0,0], "rleg"),
                                                         OpenHRP.AutoBalancerService.Footstep([0.23,0.21,0.86], [1,0,0,0], "larm")]),
                  OpenHRP.AutoBalancerService.Footsteps([OpenHRP.AutoBalancerService.Footstep([0,0.09,0], [1,0,0,0], "lleg"),
                                                         OpenHRP.AutoBalancerService.Footstep([0.23,-0.21,0.86], [1,0,0,0], "rarm")])])

という与え方をすると以下のエラーが出てしまいます.

eusからはできている与え方なのですが,pythonのidlの変換だけ何か特殊だったりする可能性はありますでしょうか?

---------------------------------------------------------------------------
UNKNOWN                                   Traceback (most recent call last)
/home/eisoku/ros/hydro_parent/src/hrpsys/sample/SampleRobot/<ipython-input-2-9374c74b66c7> in <module>()
      2                                                          OpenHRP.AutoBalancerService.Footstep([0.23,0.21,0.86], [1,0,0,0], "larm")]),
      3                   OpenHRP.AutoBalancerService.Footsteps([OpenHRP.AutoBalancerService.Footstep([0,0.09,0], [1,0,0,0], "lleg"),
----> 4                                                          OpenHRP.AutoBalancerService.Footstep([0.23,-0.21,0.86], [1,0,0,0], "rarm")])])

/home/eisoku/ros/hydro_parent/devel/lib/python2.7/dist-packages/hrpsys/hrpsys_config.pyc in setFootSteps(self, footstep, overwrite_fs_idx)
   2000         @param overwrite_fs_idx : Index to be overwritten. overwrite_fs_idx is used only in walking.
   2001         '''
-> 2002         self.abc_svc.setFootSteps(footstep, overwrite_fs_idx)
   2003 
   2004     def setFootStepsWithParam(self, footstep, stepparams, overwrite_fs_idx = 0):

/home/eisoku/ros/hydro_parent/devel/lib/python2.7/dist-packages/hrpsys/AutoBalancerService_idl.pyc in setFootSteps(self, *args)
    335 
    336     def setFootSteps(self, *args):
--> 337         return _omnipy.invoke(self, "setFootSteps", _0_OpenHRP.AutoBalancerService._d_setFootSteps, args)
    338 
    339     def setFootStepsWithParam(self, *args):

UNKNOWN: CORBA.UNKNOWN(omniORB.UNKNOWN_UserException, CORBA.COMPLETED_MAYBE)

@eisoku9618
Copy link
Contributor Author

以下だと何故かエラーが出ないです.
pythonから使わない気がするので,今回のPRは以下でごまかしています.

hcf.setFootSteps([OpenHRP.AutoBalancerService.Footsteps([OpenHRP.AutoBalancerService.Footstep([0,-0.09,0], [1,0,0,0], "rleg"),
                                                         OpenHRP.AutoBalancerService.Footstep([0.23,0.21,0.86], [1,0,0,0], "larm")]),
                  OpenHRP.AutoBalancerService.Footsteps([OpenHRP.AutoBalancerService.Footstep([0,0.09,0], [1,0,0,0], "lleg")])])

@k-okada
Copy link
Contributor

k-okada commented Sep 2, 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/2321/
Test PASSed.

@snozawa
Copy link
Contributor

snozawa commented Sep 2, 2015

エラー内容からだとちょっと判断が難しいですが、
AutoBalancerService_impl.cppのsetFootStepsにprint文などいれてみてください。
ここがcorbaで呼ばれるものなので、corbaの通信にいく前にエラーがでているのか、
c++のプログラムの途中でエラーとなってるのかがわかります。

@eisoku9618
Copy link
Contributor Author

ありがとうございます.

print文を入れていくことで,
#767 のPRを送る際にいい感じに整理したときにバグを入れていた,ということが分かりました.
(テストを書いて気づけてよかった+atでアクセスしていて場所が分かってよかった)

eisoku9618@b902acc で治しました.

@k-okada
Copy link
Contributor

k-okada commented Sep 3, 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/2325/
Test PASSed.

@eisoku9618
Copy link
Contributor Author

travis通りましたので,マージしていただけると幸いです.

fkanehiro added a commit that referenced this pull request Sep 3, 2015
@fkanehiro fkanehiro merged commit 30a55d5 into fkanehiro:master Sep 3, 2015
@eisoku9618
Copy link
Contributor Author

ありがとうございます.

On Thu, Sep 3, 2015 at 11:05 PM, Fumio KANEHIRO [email protected]
wrote:

Merged #788 #788.


Reply to this email directly or view it on GitHub
#788 (comment).

@eisoku9618 eisoku9618 deleted the add-four-leg-test-program branch September 12, 2015 22:35
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