…
INFO: depth=0, c=4, iter=0/2, starting newcases: set([py, px])
INFO: depth=2 c=14, [j2] [j0, j1, j3]: cases=set([py, px])
INFO: depth=2 c=16, [j2, j1] [j0, j3]: cases=set([py, px])
INFO: trying to guess variable from [j0, j3]
INFO: depth=0, c=4, iter=1/2, starting newcases: set([Abs(px) + Abs(py)])
INFO: depth=1 c=17, [j2] [j0, j1, j3]: cases=set([Abs(px) + Abs(py)])
INFO: depth=1 c=19, [j2, j1] [j0, j3]: cases=set([Abs(px) + Abs(py)])
INFO: trying to guess variable from [j0, j3]
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/openravepy/openravepy/ikfast.py", line 9521, in
chaintree = solver.generateIkSolver(options.baselink,options.eelink,options.freeindices,solvefn=solvefn)
File "/usr/local/lib/python2.7/dist-packages/openravepy/openravepy/ikfast.py", line 2283, in generateIkSolver
chaintree.leftmultiply(Tleft=self.multiplyMatrix(LinksLeft), Tleftinv=self.multiplyMatrix(LinksLeftInv[::-1]))
File "/usr/local/lib/python2.7/dist-packages/openravepy/openravepy/ikfast.py", line 1119, in leftmultiply
self.Pfk = Tleft[0:2,0:2]*self.Pfk+Tleft[0:2,3]
File "/home/liu/.local/lib/python2.7/site-packages/sympy/matrices/matrices.py", line 409, in mul
return matrix_multiply(self,a)
File "/home/liu/.local/lib/python2.7/site-packages/sympy/matrices/matrices.py", line 2580, in matrix_multiply
raise ShapeError()
sympy.matrices.matrices.ShapeError
Have anybody meet such a problem? I know that it is some errors about matrices, but I don’t know how to deal with it. Is my robot model false? Or IKfast isn’t suitable to Scara robot?
Any suggestion is appreciated. Thank you very much.
Recently, I try using IKfast to generate .cpp file for Scara Robot. I install Openrave by the website: https://scaron.info/teaching/installing-openrave-on-ubuntu-16.04.html I take step by the website: http://docs.ros.org/kinetic/api/moveit_tutorials/html/doc/ikfast/ikfast_tutorial.html. I use TranslationXAxisAngleZNorm4D as IKtype for Scara. http://openrave.org/docs/latest_stable/openravepy/ikfast/#ik-types The information of my scararobot.dae is that:
When I run the command as fallow:
The error appears:
Have anybody meet such a problem? I know that it is some errors about matrices, but I don’t know how to deal with it. Is my robot model false? Or IKfast isn’t suitable to Scara robot? Any suggestion is appreciated. Thank you very much.