Go to the documentation of this file.00001
00002
00003 """
00004 this is example file for HRP4-C robot
00005
00006 $ roslaunch hrpsys hrp4c.launch
00007 $ rosrun hrpsys hrp4c-motion.py
00008
00009 If you does not have hrp4c robot model, download the data first
00010 $ rosrun hrpsys hrp4c_model_download.sh
00011
00012 """
00013 import imp, sys, os
00014
00015 sys.path.append(imp.find_module('hrpsys')[1])
00016 sys.path.append(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/')
00017
00018
00019
00020 import HRP4C
00021 HRP4C.rtm.initCORBA()
00022 HRP4C.init()
00023 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/hear')
00024 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/bow')
00025 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/roate_waist')
00026 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/warmup_r')
00027 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/warmup_y')
00028 HRP4C.loadPattern(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/HRP4C/data/walk2m')
00029
00030
00031
00032
00033
00034
00035