bin gerade dabei einen Robot zu programmieren für die Weltmeisterschaften, doch hänge gerade an einem Fehler, denn ich nicht finden kann ^^
Kann mir wer helfen?
Danke schonmal im Vorraus ^^'
Fehlermeldung
Traceback (most recent call last):
File "kickWithTorso.py", line 126, in <module>
main(robotIp)
File "kickWithTorso.py", line 86, in main
targetListTorso *= almath.Transform().formRotX(dwx)
File "/usr/lib/python2.7/site-packages/almathswig.py", line 2009, in <lambda>
__getattr__ = lambda self, name: _swig_getattr(self, Transform, name)
File "/usr/lib/python2.7/site-packages/almathswig.py", line 55, in _swig_getattr
raise AttributeError(name)
AttributeError: formRotX
Code:
Code: Alles auswählen
#Motion of the RLeg
dx = 0.03 # translation axis X (meters)
dz = 0.06 # translation axis Z (meters)
dy = 0.02
dwy = 0.01*math.pi/180.0 # rotation axis Y (radian)
dwx = 8.0*almath.TO_RAD
#times = [2.0, 4.0, 4.8, 5.2, 5.5]
isAbsolute = False
targetList = [[0.03, 0.0, 0.0, 0.0, 0.0, 0.0]]
targetListTorso = almath.Transform(currentTf.r1_c4, currentTF.r2_c4, currentTF.r3_c4)
targetListTorso *= almath.Transform(0.0, 0.03, 0.0)
targetListTorso *= almath.Transform().fromRotX(dwx)
path = []
path.append(list(targetListTorso.toVector()))
path.append(list(targetList.toVector()))
timeOneMove = 0.5 #seconds
times = []
for i in range(len(path)):
times.append((i+1)*timeOneMove)