test-samplerobot-abc.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_auto_balancer
00010 import unittest, rostest
00011 
00012 class TestSampleRobotAutoBalancer(unittest.TestCase):
00013     def test_demo (self):
00014         samplerobot_auto_balancer.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     rostest.run('hrpsys', 'samplerobot_auto_balancer', TestSampleRobotAutoBalancer, sys.argv)
00019 
00020 
00021 
00022 
00023 
00024 


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