10 import roslib; roslib.load_manifest(PKG)
12 from hrpsys
import hrpsys_config
31 while (
not (ms
and rh) )
and count < 10:
37 print >>sys.stderr,
"wait for RTCmanager=%r, RTC(RobotHardware0)=%r"%(ms,rh)
39 self.assertTrue(ms
and rh)
40 except Exception
as e:
41 self.fail(
"%r, nshost=%r, nsport=%r RTCmanager=%r, RTC(RobotHardware0)=%r"%(str(e),nshost,nsport,ms,rh))
53 @unittest.expectedFailure
57 except SystemExit
as e:
58 print "[This is Expected Failure]" 61 @unittest.expectedFailure
65 except SystemExit
as e:
66 print "[This is Expected Failure]" 70 if __name__ ==
'__main__':
71 rostest.run(PKG, NAME, TestHrpsysHostname, sys.argv)
def check_initCORBA(self, nshost, nsport=2809)
def test_gethostname(self)
def findRTC(name, rnc=None)
get RT component
def findRTCmanager(hostname=None, rnc=None)
get RTCmanager
def test_X_123_45_67_89(self)
def initCORBA()
initialize ORB