Cancel
Showing results for 
Search instead for 
Did you mean: 

How to move objects at a certain distance

Pioneer
Pioneer

After I got a object's TCP frame,how can I move the object from this  TCP frame to another frame?

5 REPLIES 5
Highlighted

Re: How to move objects at a certain distance

Pioneer
Pioneer

Anyone knows?

Just want to know is there any way to use the command“Relocate”.

Appreciate for any reply!

Re: How to move objects at a certain distance

Siemens Phenom Siemens Phenom
Siemens Phenom
Hi Simona,
it doesn’t make sense to use relocated command...
But you can manipulate the objects location directly.

Each locatable object has a property .transformation as TxTransformation, which
consists of the TxVector’s .translation and .rotation
You simply need to calculate a new TxTransformation and assign it to your objects .transformation
If no simulation runs, refresh the 3D viewer afterwards.

Re: How to move objects at a certain distance

Pioneer
Pioneer

Thanks for your reply.

But how to calculate a new TxTransformation which only changes translation and  maintains  rotation?

 

Re: How to move objects at a certain distance

Creator
Creator
// Creating a new Transformation
TxVector _translation = new TxVector(100, 50, 200);
TxVector _rotation = new TxVector(0, 0, 0);
TxTransformation _offset = new TxTransformation(_translation, _rotation, TxTransformation.TxRotationType.RPY_XYZ);

This is how you can create a new TxTransformation which only changes the translation.

 

 

Regards

romox

Re: How to move objects at a certain distance

Pioneer
Pioneer

Thanks a lot!

It did work.

 

Best Regards,

Remond