Forum Migration Notice
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
.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.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings
