Go to the documentation of this file.00001
00002
00003 """
00004 this is example file for SampleRobot robot
00005
00006 $ roslaunch hrpsys samplerobot.launch CONF_FILE:=`rospack find hrpsys`/share/hrpsys/samples/SampleRobot/SampleRobot.500.el.conf
00007 $ rosrun hrpsys samplerobot-soft-error-limiter.py
00008
00009 """
00010 import imp, sys, os
00011
00012
00013 try:
00014 imp.find_module('hrpsys')
00015 sys.path.append(imp.find_module('hrpsys')[1])
00016 except:
00017 import roslib
00018 roslib.load_manifest('hrpsys')
00019
00020 sys.path.append(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/SampleRobot/')
00021
00022 import samplerobot_soft_error_limiter
00023
00024 if __name__ == '__main__':
00025 samplerobot_soft_error_limiter.demo()
00026
00027
00028 if [s for s in sys.argv if "--gtest_output=xml:" in s] :
00029 import unittest, rostest
00030 rostest.run('hrpsys', 'samplerobot_soft_error_limiter', unittest.TestCase, sys.argv)