From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Inverse Kinematics of 4DOF Arm

Solved!
Go to solution

I'm attempting to find the inverse kinematics of a user defined 4DOF robot.

I'm following example code found in the "Inverse Kinematics for Puma 560.vi". This example code runs just fine but when I try to find the inverse kinematics solution of another robot, I get an error.

I've attached a block diagram that has the forward kinematics working and the example code just pasted in... used as a test (although I did delete the code that finds the forward kinematic solutions of the Puma robot).

I've also attached code that substitutes the definition of the Puma with the 4DOF robot. This is the code where I get an error:
"NI_Kinematics.lvlib:Manipulator Jacobian (End Effector Frame).vi:2->NI_Kinematics.lvlib:Manipulator Jacobian (World Frame).vi:1->NI_Kinematics.lvlib:Inverse Kinematics (Point).vi->four joint robot arm w IK 2.vi" with error code: "-310041".


I think this might have to do with my robot definition... the number of links is different between the two... but I'm not sure.

 

Download All
0 Kudos
Message 1 of 9
(6,335 Views)

I've expanded the number of joints to match those of the of the Puma (ie, a 6DOF arm). I can get the forward kinematics to work... but I can't get the inverse kinematics to converge to a solution.

So, two questions then...

 

Why does a 6DOF arm "work"... ie, why don't I receive the above error for a 6DOF arm but I do for a 4DOF arm?
(I don't see where I am using arrays of different sizes in the block diagram. Could it be that the "Initialize Plot.vi" expects arrays of certain sizes but this isn't documented?

 

Secondly, why won't the inverse kinematic solution converge to a solution?

 

v5 has both the forward and inverse kinematics included. I simplified the inverse kinematics loop significantly.

v6 has the inverse kinematic blocks removed so as to show that the 6DOF robot is in fact a valid configuration.

Download All
0 Kudos
Message 2 of 9
(6,309 Views)
Solution
Accepted by topic author slow

ok. figured it out.

It turns out that the reason that the inverse kinematics weren't being calculated is because of the collapsed shoulder joing as defined in the D-H table in the "4 DOF arm" VI. I've added a non-zero length to the first link in the D-H table and am now seeing a stable IK solution.

Download All
0 Kudos
Message 3 of 9
(6,285 Views)

Hello,

 

For your code, Can I know whehter you have considered the length on each joints, and relative rotation?

Thank you.

 

B.R

 

 

0 Kudos
Message 4 of 9
(5,900 Views)

this error message appears when changing the x,y,z to max limit

0 Kudos
Message 5 of 9
(5,663 Views)

Hi there, actually i am seeking to add make a 5 DOF robotic arm using LabVIEW . so may you please tell me how to adjust your code ?? waiting for your kindly response Sir, 

Appreciate. 

This my mail for further discussion  dali.charfi@ieee.org

Thanks. 

0 Kudos
Message 6 of 9
(4,117 Views)

Considering that user commented on this post several years ago, I would suggest making a new post with more details for what you are trying to accomplish. What robotic arm are you trying to control? Is it the same as in this post? If so, I would believe you would need to add another dimension to match the number of joints you are working with.

Brian.D
NI Product Owner
VeriStand
0 Kudos
Message 7 of 9
(4,096 Views)

Well i sought to do so, i didn't find any clue from where can i create a post !! 

please tell where and how to post ? thanks 

0 Kudos
Message 8 of 9
(4,092 Views)

You sould do it here:

 

http://www.ni.com/labview/community/

 

Now it is important to mention the context:

 

What is your robotic arm?

 

What code have you implemented by now?

 

What are the difficulties you are having?

0 Kudos
Message 9 of 9
(4,074 Views)