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

'SWITCH_ON = OpenHRP.RobotHardwareService.SWITCH_ON'について #530

Open
k-okada opened this issue Mar 24, 2015 · 1 comment
Open

'SWITCH_ON = OpenHRP.RobotHardwareService.SWITCH_ON'について #530

k-okada opened this issue Mar 24, 2015 · 1 comment

Comments

@k-okada
Copy link
Contributor

k-okada commented Mar 24, 2015

あいかわらずpythonのimportがよくわかっていないんですが,
https://github.com/fkanehiro/hrpsys-base/blob/master/python/hrpsys_config.py#L1585
のSWITCH_ON, SWITCH_OFFがどこにも定義されていないので,
https://github.com/start-jsk/rtmros_hironx/blob/hydro-devel/hironx_ros_bridge/src/hironx_ros_bridge/hironx_client.py#L50
にあるように

SWITCH_ON = OpenHRP.RobotHardwareService.SWITCH_ON

をhrpsys_config.pyのなかでやろうとしているんですがうまく行きません.

たしかに,

import OpenHRP
SWITCH_ON  = OpenHRP.RobotHardwareService.SWITCH_ON

として,dist-packagesのディレクとりで

ipython -i ./hrpsys/hrpsys_config.py

とすると,OKなんですが,

In [2]: from hrpsys.hrpsys_config import *
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-2-c5105204d0f7> in <module>()
----> 1 from hrpsys.hrpsys_config import *

/home/k-okada/ros/indigo_parent/devel/lib/python2.7/dist-packages/hrpsys/hrpsys_config.py in <module>()
     20 
     21 import OpenHRP
---> 22 SWITCH_ON  = OpenHRP.RobotHardwareService.SWITCH_ON
     23 print SWITCH_ON

とするとエラーになります.

そういうものでしょうか?

@k-okada k-okada changed the title 'SWITCH_ON = OpenHRP.RobotHardwareService_idl.SWITCH_ON'について 'SWITCH_ON = OpenHRP.RobotHardwareService.SWITCH_ON'について Mar 24, 2015
@snozawa
Copy link
Contributor

snozawa commented Mar 24, 2015

手元で

#360 (comment)

これ,fkanehiro/openhrp3#36 (comment)

を少し前に試して見ましたが,同様のエラーになりました.
ただし,そのときはopenhrp3がcatkin buildでないので,少し状況が違ったのかもしれません.

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

No branches or pull requests

2 participants