Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
test
test-samplerobot-el.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_soft_error_limiter
10
import
unittest, rostest
11
12
class
TestSampleRobotSoftErrorLimiter
(unittest.TestCase):
13
def
test_demo
(self):
14
samplerobot_soft_error_limiter.demo
()
15
16
## IGNORE ME: this code used for rostest
17
if
[s
for
s
in
sys.argv
if
"--gtest_output=xml:"
in
s] :
18
import
unittest, rostest
19
rostest.run(
'hrpsys'
,
'samplerobot_soft_error_limiter'
, TestSampleRobotSoftErrorLimiter, sys.argv)
20
21
22
23
24
25
test-samplerobot-el.TestSampleRobotSoftErrorLimiter
Definition:
test-samplerobot-el.py:12
test-samplerobot-el.TestSampleRobotSoftErrorLimiter.test_demo
def test_demo(self)
Definition:
test-samplerobot-el.py:13
samplerobot_soft_error_limiter.demo
def demo()
Definition:
samplerobot_soft_error_limiter.py:42
hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Thu May 6 2021 02:41:51