I am trying IK for 5-DOF robot all revolute joint.

I am working IK with Jacobian inverse i.e
end effector velocity = J inverse * error vector.

In error vector I am feeding (x,y,z) positional error; this gives me correct positioning by first 3 joints only. later 2 joints are pitch and roll used for end effector orientation. How can I input my required orientation and calculate orientation error.

I have Jacobian matrix[6 X 5] considering all 5 joints; so J inverse will be [5 X 6] matrix. Error vector [6 X 1] consisting first 3 element of positional error, but for last 3 element what should I feed to get required orientation for my robot and how would I calculate the orientation error and in which form I should input my orientation of end effector.
please help me out.

  • $\begingroup$ I am using MATLAB Simulink for programming. so please answer mathematically because I don't understand any programming language. $\endgroup$ – manan kalsariya Dec 11 '17 at 19:24

Up till now i am using the euler angle representation but not been sucessfull. After refering the book "Robotics Modelling, Planning and control" by Bruno Siciliano form Springer publication. It is concluded that the euler angle is only use for the manipulator having spherical wrist; the robot which dosen't have one need to use another representation i.e equivalent angle representation.

The orientation error vector or error in orientation can be calculated by the equvalent angle representation or angle-axis representation (both are same) of orientation.

If Rd denotes desired orientation matrix and Re denotes rotation matrix computed form joint variabes, then orientation error is calculated using enter image description here

where r and v(nue) can be calculate from matrix multiplication as

enter image description here This gives the 3 x 1 vector which is the orientation errror about X,Y,Z axis. For more information one can refer book I mention above.

using equation

enter image description here


Referring to the equation $\dot{x} = J(q)\dot{q}$, what the last three elements of $\dot{x}$ should be depends on what kind of Jacobian you are using.

Geometric Jacobian: Suppose your Jacobian is computed as

$$J = \begin{bmatrix}J_1 & J_2 & \cdots J_n\end{bmatrix},$$


$$J_i = \begin{cases} \begin{bmatrix}z_{i - 1}\\0_{3\times1}\end{bmatrix} & \text{the $i^\text{th}$ joint is revolute}\\ \begin{bmatrix}z_{i - 1} \times (o_n - o_{i - 1})\\z_{i - 1}\end{bmatrix} & \text{the $i^\text{th}$ joint is prismatic (linear)} \end{cases},$$ $z_i$ is the axis of the $i^\text{th}$ joint and $o_i$ is the origin of the $i^\text{th}$ frame. This Jacobian is called the geometric Jacobian. In this case, the last three elements of $\dot{x}$ should be the angular velocity of the end-effector described w.r.t. the base frame.

Analytical Jacobian: This kind of Jacobian is computed based on representation of the orientation of the end-effector frame. This Jacobian ($J_a$) is related to the geometric Jacobian by $J_a = GJ$, for some matrix $G$. If the simulator is using this kind of matrix, the last three elements of $\dot{x}$ will depend of which representation of orientation is used to calculate the Jacobian.

The easiest way to see what the three elements of $\dot{x}$ should be may be just to try out different orientation representations and see the result.

The terminology here is quoted from Chapter 5 of Robots Dynamics and Control (Spong et al.).

  • $\begingroup$ I am using geometric jacobian. For inverse kinematics with Jacobian I an using the error vector between current orientation and required orientation. But its not working its not orientating, can you explain more in it. $\endgroup$ – manan kalsariya Dec 15 '17 at 9:08
  • $\begingroup$ I think the problem is that simply subtracting two orientation vectors doesn't really give you the angular velocity that is required here. The book I mentioned may contain some materials that can guide you how the angular velocity can be computed. $\endgroup$ – Petch Puttichai Dec 15 '17 at 9:39

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.