test-pa10.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 import rostest, unittest, sys, os
4 
5 import time
6 #time.sleep(10) # wait for launch
7 
8 vars(__builtins__).update({'__IPYTHON__': "fake python as ipython to not to drop in shell"})
9 class TestInteractive(unittest.TestCase):
10  def test(self):
11  local_dict = locals() # https://stackoverflow.com/questions/34780235/pythons-execfile-variable-scope-issue
12  execfile(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../scripts", "hrpsys_tools_config.py"), globals(), local_dict)
13  hcf = local_dict['hcf']
14  hcf.setJointAngles([10,10,10,10,10,10,10,10,10], 1)
15  print hcf.getJointAngles()
16  self.assertTrue("OK")
17 
18 if __name__ == '__main__':
19  rostest.rosrun("hrpsys_tools", "test_interactive", TestInteractive, sys.argv)


hrpsys_tools
Author(s): Kei Okada
autogenerated on Mon May 10 2021 02:30:58