Page 1 of 1

My noob IK implementation

Posted: Sun Nov 02, 2014 3:54 pm
by thanhle
Hi guys,
I haven't done any Irrlicht for so long. Just have some time to do some coding on IK this weak.

I have implement CCD, Jacobian Least Squares and Jacobian transpose Inverse Kinematic. CCD motion is not realistic for hinge joint robot (maybe I didn't code it right?, don't know). My version of Jacobian LS and Jacobian Transpose perform quite well.

Sorry for the render, I don't know how to make it look good yet. Looks like some culling issue? I don't know.

https://www.youtube.com/watch?v=uqmbVAO ... e=youtu.be

Cheers
Thanh

Re: My noob IK implementation

Posted: Sat Dec 06, 2014 6:13 pm
by christianclavet
Hi, Nice video! Is your code/class very big for this? Have you tried it with longer chains?

The rendering issue, is just caused because there is no texture on the robots and you activated "debug" rendering on them. The white lines are simply the bounding box being rendered only in the model and not rendered outside of them. I often see this when I activate debug rendering on some models.

Re: My noob IK implementation

Posted: Sun Dec 07, 2014 6:18 am
by thanhle
Hi mate, thanks for comment. I've fixed the lighting issue but didn't bother update the video.
The robot is 6dof. I've tested added a translation motion as well. It seems to work as well. I need to do a little refactor and will post in the snippet forum.

The class is not big at all. But it needs Eigen library to do the Matrix Psuedo inverse and calculation.
I'm trying to implement SVD for Pseudo Inverse. But Eigen 3 giving me some problem at the moment.

Cheers
thanh

Re: My noob IK implementation

Posted: Mon Dec 08, 2014 2:42 pm
by CuteAlien
Interesting stuff. Any chance you are going to open-source it? Also the render-problems are probably because the whole mesh has transparency. Maybe disable transparency for the mesh and then disable z-buffer before writing the lines (so you can still see those).

Re: My noob IK implementation

Posted: Wed Dec 10, 2014 2:47 pm
by thanhle
Hi CuteAlien,
I'll post the code in the snippet forum when I have sometime during the break.
Regards,
Thanh

Re: My noob IK implementation

Posted: Fri Feb 13, 2015 12:43 pm
by netpipe
i keep checking for it :)

Re: My noob IK implementation

Posted: Sun Feb 15, 2015 2:20 pm
by thanhle
Will come back to this. At the moment I'm porting irrlicht UI to Qt instead of .Net.
Anyway doing this slowly, as I'm kind of having 2 projects at work atm.
Regards
thanh

Re: My noob IK implementation

Posted: Sat Feb 21, 2015 5:03 pm
by thanhle
Simple example on snippet forum.
Regards
thanh