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

How to create a left-handed coordinate system?

#3
You can provide any 4x4 matrix through the RoboDK API and you can build your own poses even if they use left-handed coordinate systems. However, RoboDK was not designed to be used for this purpose and you may see strange results. For example, if you provide a left handed coordinate system and you edit the pose through the user interface RoboDK will automatically recalculate a right-handed pose.

This example shows a proof of concept:

Code:
from robodk import robolink # RoboDK API
from robodk import * # Robot toolbox
RDK = robolink.Robolink()

reference = RDK.Item("Frame 2")
pose = reference.Pose()

# Set the pose as a normal translation along X
pose = transl(1000,0,0)

# Flip the X axis: warning! Switching to a left-handed coordinate system
# RoboDK UI was not designed to be used for this purpose and you may get unexpected results
pose[0,0] = -1

# Operate on this pose:
pose = pose * transl(100,200,300) * rotz(pi/2)

# Set the pose back: you should see the left-handed coordinate system in RoboDK
reference.setPose(pose)


Messages In This Thread
RE: How to create a left-handed coordinate system? - byAlbert- 02-15-2022, 06:13 PM



Users browsing this thread:
1 Guest(s)