test-samplerobot-el.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import imp, sys, os, time
00004 
00005 # set path to hrpsys to use HrpsysConfigurator
00006 from subprocess import check_output
00007 sys.path.append(os.path.join(check_output(['pkg-config', 'hrpsys-base', '--variable=prefix']).rstrip(),'share/hrpsys/samples/SampleRobot/')) # set path to SampleRobot
00008 
00009 import samplerobot_soft_error_limiter
00010 import unittest, rostest
00011 
00012 class TestSampleRobotSoftErrorLimiter(unittest.TestCase):
00013     def test_demo (self):
00014         samplerobot_soft_error_limiter.demo()
00015 
00016 ## IGNORE ME: this code used for rostest
00017 if [s for s in sys.argv if "--gtest_output=xml:" in s] :
00018     import unittest, rostest
00019     rostest.run('hrpsys', 'samplerobot_soft_error_limiter', TestSampleRobotSoftErrorLimiter, sys.argv)
00020 
00021 
00022 
00023 
00024 
00025 


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed May 15 2019 05:02:19