sample6dofrobot-kalman-filter.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 """
4  this is example file for Sample6dofRobot robot
5 
6  $ roslaunch hrpsys sample6dofrobot.launch
7  $ rosrun hrpsys sample6dofrobot-kalman-filter.py
8 
9 """
10 
11 import imp, sys, os
12 
13 # set path to hrpsys to use HrpsysConfigurator
14 try:
15  imp.find_module('hrpsys') # catkin installed
16  sys.path.append(imp.find_module('hrpsys')[1])
17 except: # rosbuild installed
18  import roslib
19  roslib.load_manifest('hrpsys')
20 
21 sys.path.append(os.path.dirname(os.path.abspath(__file__))+'/../share/hrpsys/samples/Sample6dofRobot/') # set path to SampleRobot
22 
23 import sample6dofrobot_kalman_filter
24 
25 if __name__ == '__main__':
26  sample6dofrobot_kalman_filter.demo()
27 
28 ## IGNORE ME: this code used for rostest
29 if [s for s in sys.argv if "--gtest_output=xml:" in s] :
30  import unittest, rostest
31  rostest.run('hrpsys', 'sample6dofrobot_kalman_filter', unittest.TestCase, sys.argv)


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