Ask Your Question

How can I use the iksolver.cpp

asked 2014-05-03 05:46:32 -0500

Bastbeat gravatar image

I generated the file to calculate the inverseKinematics with IKFast. How can I use this file, to solve the IK from a cpp in ROS? I can not find anything about that. I'm using the solver TranslationDirection5D

edit retag flag offensive close merge delete


I tried to compile the cpp anyway, to test it. And when I run it, it shows an error. Usage: ./ik r00 r01 r02 t0 r10 r11 r12 t1 r20 r21 r22 t2 free0 ... input: ./compute2 0 0 0 1 0 0 0 1 0 0 0 1 output: Failed to get ik solution

Bastbeat gravatar image Bastbeat  ( 2014-05-03 05:51:11 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-05-04 07:49:32 -0500

Bastbeat gravatar image

The orientation never can be "0 0 0" in all the cases. The correct input should be (for example): ./compute2 1 0 0 0.1 0 1 0 0.2 0 0 1 0.3

And you can use the generated iksolver.cpp, using it like a normal include. Respect to the use, there is a great example: ikfastdemo.cpp:

There you can find many ways to use the solver (IK, FK...)

edit flag offensive delete link more


It still doesn't work..

JarvisRobot gravatar image JarvisRobot  ( 2017-07-24 06:49:29 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-05-03 05:46:32 -0500

Seen: 266 times

Last updated: May 04 '14