test-samplerobot-impedance.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_impedance_controller
00010 import unittest, rostest
00011 
00012 class TestSampleRobotImpedanceController(unittest.TestCase):
00013     def test_demo (self):
00014         samplerobot_impedance_controller.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_impedance', TestSampleRobotImpedanceController, sys.argv)
00019 
00020 
00021 
00022 
00023 
00024 


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed Sep 6 2017 02:35:56