samplerobot_walk.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 try:
4  from hrpsys.hrpsys_config import *
5  import OpenHRP
6 except:
7  print "import without hrpsys"
8  import rtm
9  from rtm import *
10  from OpenHRP import *
11  import waitInput
12  from waitInput import *
13  import socket
14  import time
15 
16 def getRTCList ():
17  return [
18  ['seq', "SequencePlayer"],
19  ['sh', "StateHolder"],
20  ['fk', "ForwardKinematics"]
21  ]
22 
23 def init ():
24  global hcf
25  hcf = HrpsysConfigurator()
26  hcf.getRTCList = getRTCList
27  hcf.init ("SampleRobot(Robot)0")
28 
29 def loadPattern(basename, tm=1.0):
30  hcf.loadPattern(basename, tm)
31  hcf.waitInterpolation()
32 
33 def demo():
34  init()
35  loadPattern("$(PROJECT_DIR)/../controller/SampleController/etc/Sample")
36 
37 if __name__ == '__main__':
38  demo()
def loadPattern(basename, tm=1.0)


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51