コード例 #1
0
 def test_demo (self):
     samplerobot_emergency_stopper.demo()
コード例 #2
0
 def test_demo(self):
     samplerobot_emergency_stopper.demo()
コード例 #3
0
#!/usr/bin/env python

import imp, sys, os, time

# set path to hrpsys to use HrpsysConfigurator
from subprocess import check_output
sys.path.append(os.path.join(check_output(['pkg-config', 'hrpsys-base', '--variable=prefix']).rstrip(),'share/hrpsys/samples/SampleRobot/')) # set path to SampleRobot

import samplerobot_emergency_stopper

if __name__ == '__main__':
    samplerobot_emergency_stopper.demo()

## IGNORE ME: this code used for rostest
if [s for s in sys.argv if "--gtest_output=xml:" in s] :
    import unittest, rostest
    rostest.run('hrpsys', 'samplerobot_emergency_stopper', unittest.TestCase, sys.argv)