-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathtestJointOps.py
38 lines (29 loc) · 1.01 KB
/
testJointOps.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
'''Test program to show reaching poses for Jaemi Hubo Right arm'''
from openravepy import *
from numpy import *
import time
import sys
if __name__ == "__main__":
#load the environment if it is not already loaded
try:
orEnv
except NameError:
orEnv = Environment()
orEnv.SetViewer('qtcoin')
orEnv.Reset()
orEnv.Load('openHubo/jaemiHubo.fullDOF.robot.xml')
robot = orEnv.GetRobots()[0]
kinbody = orEnv.GetKinBody('jaemiHubo')
print 'Output of command GetDependenyOrderedJoints'
print kinbody.GetDependencyOrderedJoints()
print 'Finding information about joints using GetJoint'
LHY = kinbody.GetJoint('LHY')
print LHY.GetDOF()
print LHY.GetDOFIndex()
#set printing, display options, and collision checker
orEnv.SetDebugLevel(DebugLevel.Info)
colchecker = RaveCreateCollisionChecker(orEnv,'ode')
orEnv.SetCollisionChecker(colchecker)
print "Press return to exit."
sys.stdin.readline()