Posts: 17
Threads: 8
Joined: Aug 2021
Reputation:
0
Hi,
I would like to know if it is possible to use the SolveIK call to solve for a point/vector only (not force a fix xt/yt direction)? In some case (like a touch probe) it is only necessary to solve for a point/vector.
Is this already possible or do we have to do it by trial/error ?
Thanks,
Francois
Posts: 4,068
Threads: 2
Joined: Apr 2018
Reputation:
186
Your request may have different answers depending on the mechanism being used. Specifying a point and a vector is a 5-DOF constrain and it would give you a unique solution for a 5-axis machine (which makes sense).
For example, for a 6-axis robot, a 5-DOF constrain (like specifying a point and a vector) would give you infinite solutions. Another example is that a a 6-DOF constrain (full position and orientation, also known as pose) on 7-axis can easily give you infinite solutions.
Another example would be for a 5-axis CNC: specifying a point and a vector constrain makes total sense as this is a 5-DOF constrain for a 5-axis machine. In RoboDK when you provide the pose to the SolveIK function, we only account for the position and the Z axis of the machine flange to perform the inverse kinematic calculations.
For your information, we have recently improved the solver of 5-axis CNC to prioritize the XYZ position of the machine tool flange and the Z vector of the same flange.
Posts: 17
Threads: 8
Joined: Aug 2021
Reputation:
0
Hi Albert,
this I already know how to do.
What I mean is what if the Pose that was computed by point_Zaxis_2_pose is not reachable by the robot (SolveIK can't find a solution).
It looks like you don't have a way to do that except by trial and error, use SolveIK with different pose (same point/normal but different xt/yt direction) until SolveIK worked, is that right?
Thanks,
Francois
Posts: 4,068
Threads: 2
Joined: Apr 2018
Reputation:
186
Great then. We don't have another solution for now. Another option is to iterate over the pose by changing the rotation around the Z axis and calculate the inverse kinematics solution, for example, from 0 to +/- 180 deg around the Z axis by steps of 45 deg.
Posts: 4,068
Threads: 2
Joined: Apr 2018
Reputation:
186
There is no other way for the time being but let us know if you have performance issues and we can take a better look to help you implement a custom solution.