Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Relative Coordinates

#1
Hello! I have the poseAbs of my tool (it's a CAM2D), and I have the x y z obtained with the XYZRoboDKCursor() that are absolute too. How can I do to have x,y,z cordinates respect to the 2DCamera?
#2
I assume you are using the API? If so, you can calculate the relative coordinates of your point with respect to the camera by multiplying the inverse of your camera pose by the coordinates of your point in absolute coordinates. Example:

Code:
xyz_abs = [x,y,z]
pose_cam_abs = cameraRef.PoseAbs()
xyz_rel = inv(pose_cam_abs) * xyz_abs

A similar question was asked here:
https://robodk.com/forum/Thread-Targetin...34#pid4334
#3
Muchas gracias!
  




Users browsing this thread:
1 Guest(s)