GlobalMatrix vs Matrix
Matthias
✭
in RobotStudio
Hello,
may anyone please tell me the difference between GlobalMatrix and Matrix?
Best Regards,
Matthias
may anyone please tell me the difference between GlobalMatrix and Matrix?
Best Regards,
Matthias
0
Comments
-
Hello Matthias,
Matrix and GlobalMatrix are properties of the Transform class. Many RobotStudio objects have a property called Transform, returning a Transform.
Transform.Matrix will return the local transform, i.e the transform relative the objects parent in the transform hierarchy.
GlobalMatrix will return the transform relative the world coordinate system.
Note that you can get and set Transform.Matrix, but only get Transform.GlobalMatrix.
GlobalMatrix "walks up" the entire transform hierarchy in order to calculate the transform from the world coordinate system to the object.
Niklas Skoglund2008-3-7 18:35:510 -
[QUOTE=Niklas Skoglund]
Note that you can get and set Transform.Matrix, but only get Transform.GlobalMatrix.
[/QUOTE]
Ah, thanks. That explains why my code did not work as expected
Best Regards,
Matthias
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings