test-samplerobot-collision.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import imp, sys, os, time
4 
5 # set path to hrpsys to use HrpsysConfigurator
6 from subprocess import check_output
7 sys.path.append(os.path.join(check_output(['pkg-config', 'hrpsys-base', '--variable=prefix']).rstrip(),'share/hrpsys/samples/SampleRobot/')) # set path to SampleRobot
8 
9 import samplerobot_collision_detector
10 import unittest, rostest
11 
12 if [s for s in sys.argv if '__name:=samplerobot_co_loop' in s]:
13  class TestSampleRobotCollisionDetector(unittest.TestCase):
14  def test_demo (self):
16 else:
17  class TestSampleRobotCollisionDetector(unittest.TestCase):
18  def test_demo (self):
20 
21 ## IGNORE ME: this code used for rostest
22 if [s for s in sys.argv if "--gtest_output=xml:" in s] :
23  rostest.run('hrpsys', 'samplerobot_collision_detector', TestSampleRobotCollisionDetector, sys.argv)
24 
25 
26 
27 
28 
29 


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51