Errors when using ikfast with a 4DOF arm

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Errors when using ikfast with a 4DOF arm

Sietse Achterop
This post has NOT been accepted by the mailing list yet.
  Hello list,
I get a "ShapeError" when I try to generate a solver using the following command:
python `openrave-config --python-dir`/openravepy/_openravepy_/ --robot=smart_arm_robot_rounded.dae --iktype=translationxaxisangleznorm4d --baselink=1 --eelink=5 --savefile=ikf.cp --debug=3
The robot is a 4DOF arm, indented to be used by the AX18 arm from crustcrawler.
The URDF has already been tested fairly well with ros and gazebo.
These files, and the complete output from the command can be found in:
I installed openrave0.9 from source: latest-stable.

There are some warnings at the beginning:
[plugindatabase.h:929 _SysLoadLibrary] /usr/local/share/openrave-0.9/plugins/ cannot open shared object file: No such file or directory
[plugindatabase.h:857 _LoadPlugin] failed to load: /usr/local/share/openrave-0.9/plugins/
[colladareader.cpp:2130 FillGeometryColor] transparecy is 1.000000, which means the item will be rendered invisible, this must be a mistake so setting to opaque (1)
DEBUG: rotation angle of Links[0]: 0.000000, axis=[0.000000,0.000000,0.000000]
/usr/local/lib/python2.7/dist-packages/openravepy/_openravepy_/ RuntimeWarning: invalid value encountered in divide
and the output ends with:
INFO: trying to guess variable from [j0, j3]
DEBUG: CannotSolveError: cannot find a good variable
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/openravepy/_openravepy_/", line 9206, in <module>
    chaintree = solver.generateIkSolver(options.baselink,options.eelink,options.freeindices,solvefn=solvefn)
  File "/usr/local/lib/python2.7/dist-packages/openravepy/_openravepy_/", line 2259, in generateIkSolver
    chaintree.leftmultiply(Tleft=self.multiplyMatrix(LinksLeft), Tleftinv=self.multiplyMatrix(LinksLeftInv[::-1]))
  File "/usr/local/lib/python2.7/dist-packages/openravepy/_openravepy_/", line 1102, in leftmultiply
    self.Pfk = Tleft[0:2,0:2]*self.Pfk+Tleft[0:2,3]
  File "/usr/local/lib/python2.7/dist-packages/sympy/matrices/", line 409, in __mul__
    return matrix_multiply(self,a)
  File "/usr/local/lib/python2.7/dist-packages/sympy/matrices/", line 2580, in matrix_multiply
    raise ShapeError()
Hopefully someone can give me a pointer,
Thanks in advance, Sietse
Reply | Threaded
Open this post in threaded view

Re: Errors when using ikfast with a 4DOF arm

Sietse Achterop
To add to my question:

The file /usr/local/share/openrave-0.9/plugins/ DOES exist!

A halve year ago I had an earlier try with it, using openrave version 0.8.2 if I remember correctly.
I used a little different urdf, it had one joint/link pair more (not in the arm), but that worked.
I still have the .cpp file

Finally I tested ikfast with an urdf for the pi_robot, and that does work.

   Thanks again,