.Transform.Matrix vs. .RobTarget.Frame.Matrix
matz
✭
in RobotStudio
Hi,
is there any difference between the both expressions:
.Transform.Matrix
.RobTarget.Frame.Matrix
I want to give a self calculated Matrix4 to a target.
The code is something like this:
Dim target as RsTarget=Project.ActiveProject.Selection.SingleSelectedObject
Dim mat4 as New Matrix4(New Vector3(1,0,0), New Vector3(0,1,0), New Vector3(0,0,1), New Vector3(1000,1000,1000))
'Two versions
target.Transform.Matrix=mat4
target..RobTarget.Frame.Matrix=mat4
So I set the target on the coordinates 1000, 1000, 1000 with the standart orientation.
But is there any difference between both expressions? I tried out and looked at the matrix of the Target and the RobTarget, and always theyA've been the same!
In both cases it seems, that the Matrix4 of the Target and of the RobTarget are transformed together.
I need to know, if the Matrix4 of the RobTarget is always changed, when I change the Matrix4 of the Target, or shpuld I give the new Matrix4 explicit to The RobTarget?
0
Comments
-
Hi matz,
They are equivalent, so you don't need to set both.
regards,
Johannes
Johannes Weiman
Software Engineer
ABB Robotics0
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