RoboDK Forum
Kuka Axis-Angle to Pose可打印版本

+- RoboDK Forum (//m.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//m.sinclairbody.com/forum/Forum-RoboDK-EN)
+--- Forum: RoboDK API (//m.sinclairbody.com/forum/Forum-RoboDK-API)
+--- Thread: Kuka Axis-Angle to Pose (/Thread-Kuka-Axis-Angle-to-Pose)



Kuka Axis-Angle to Pose-dsitnik-12-11-2019

Hi,

I would like to use online programming for moving a robot from one point to another. Let's say I have N points in the array where every point is coded as a 6-axis-angle ($AXIS_ACT Kuka system variable). Is there any way to directly convert this angles to the robot pose matrix (as robot.Pose())?

Thank you in advance!


RE: Kuka Axis-Angle to Pose-Albert-12-11-2019

Yes, this is possible. You can use SolveFK to calculate the forward kinematics (robot pose given robot joints) and SolveIK to calculate inverse kinematics (robot joints given the robot pose.

Example:
Code:
robot_joints = [...] # robot axis such as AXIS_ACT
# Calculate the robot flange with respect to the robot base
flange_pose = robot.SolveFK(robot_joints)
# Calculate the pose of the active tool with respect to the active reference frame
target_pose = robot.SolveFK(robot_joints, robot.PoseTool(), robot.PoseFrame())

# Convert the pose to KUKA XYZABC format (6D array/list):
kuka_xyzabc = Pose_2_KUKA(target_pose)