09-13-2024, 02:47 AM
Hello, I recently tried to use the SolvIK_All function in the Python script to solve the inverse kinematics of the specific end pose of UR10 to get all the joint combinations.
The problem is that I can only get one value of the robot joints solution each time.
I am pretty sure there are at least four inverse kinematic solutions for the current robot end-point posture, so I don't know where the problem lies. Please help me solve it!
Results:
The problem is that I can only get one value of the robot joints solution each time.
I am pretty sure there are at least four inverse kinematic solutions for the current robot end-point posture, so I don't know where the problem lies. Please help me solve it!
Code:
from robodk.robolink import * # API to communicate with RoboDK
RDK = Robolink()
robot = RDK.Item('UR10')
if not robot.Valid():
raise Exception('No robot selected or available')
for sol in robot.SolveIK_All(robot.SolveFK(robot.Joints())):
print(sol)
Code:
[-45.00000399720827, -89.99999971952762, -90.0000023573822, -180.00000020639916, -90.00000014166224, -135.00000001418832]