RoboDK Forum
Robot's position(angle) joint axis jog可打印版本

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//www.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Robot's position(angle) joint axis jog (/Thread-Robot-s-position-angle-joint-axis-jog)



Robot's position(angle) joint axis jog-sonchulho96-08-03-2022

I am tring to extract each Joint's angle of 6 axes industrial robot to Python code.



Is there any way to extract it???


RE: Robot's position(angle)_joint axis jog-Maarten-08-03-2022

I think the Joints() command is what you're looking for:

//www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Item.Joints


RE: Robot's position(angle)_joint axis jog-sonchulho96-08-03-2022

Thank you!! This is what I am looking for !

I am also looking for other postures of the robot.("Other configurations" in the picture)

Do you know to extract these postures??


RE: Robot's position(angle)_joint axis jog-Maarten-08-03-2022

I think you can use SolveIK_All() for that:

//www.sinclairbody.com/doc/en/PythonAPI/robodk.html#robodk.robolink.Item.SolveIK_All

Code:
robot = RDK.Item('YourRobot',ITEM_TYPE_ROBOT)
all_solutions = robot.SolveIK_All(robot.Pose(),robot.PoseTool(),robot.PoseFrame())
print(repr(all_solutions))



RE: Robot's position(angle)_joint axis jog-sonchulho96-08-03-2022

非常感谢! !