4 NAME =
'test_robothardware' 6 from hrpsys
import hrpsys_config
21 rtm.nshost =
'localhost' 25 rh_svc =
rtm.narrow(rh.service(
"service0"),
"RobotHardwareService")
26 print "RTC(RobotHardware0)={0}, {1}".format(rh,rh_svc)
27 self.assertTrue(rh
and rh_svc)
29 self.assertTrue(rh.isActive())
30 self.assertTrue(rh_svc.getStatus())
32 except Exception
as e:
33 print "{0}, RTC(RobotHardware0)={1}, {2}".format(str(e),rh,rh_svc)
38 if __name__ ==
'__main__':
39 rostest.run(PKG, NAME, TestHrpsysRobotHardware, sys.argv)
def findRTC(name, rnc=None)
get RT component
def narrow(ior, klass, package="OpenHRP")
narrow ior
def test_rh_service(self)
def initCORBA()
initialize ORB