RobotStudio event

.Transform.Matrix vs. .RobTarget.Frame.Matrix

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?

 

 

 

 
matz2009-08-21 19:31:41

Comments