hrp4c-motion.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 """
4  this is example file for HRP4-C robot
5 
6  $ roslaunch hrpsys hrp4c.launch
7  $ rosrun hrpsys hrp4c-motion.py
8 
9 If you does not have hrp4c robot model, download the data first
10  $ rosrun hrpsys hrp4c_model_download.sh
11 
12 """
13 import imp, sys, os
14 
15 sys.path.append(imp.find_module('hrpsys')[1]) # set path to hrpsys
16 sys.path.append(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/') # set path to PA10
17 
18 #os.environ['ORBInitRef'] = 'NameService=corbaloc:iiop:{0}:{1}/NameService'.format('localhost','2809')
19 
20 import HRP4C
21 HRP4C.rtm.initCORBA()
22 HRP4C.init()
23 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/hear')
24 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/bow')
25 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/roate_waist')
26 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/warmup_r')
27 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/warmup_y')
28 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/walk2m')
29 
30 
31 
32 
33 
34 
35 
def loadPattern(basename, tm=1.0)
Definition: HRP4C.py:42
def init()
Definition: HRP4C.py:27


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