How to change the origin of the absolute coordinate system

Typically: "How do I... ", "How can I... " questions
Post Reply
DavideIng
Posts: 34
Joined: 21 Sep 2017, 17:27

How to change the origin of the absolute coordinate system

Post by DavideIng » 10 Nov 2017, 12:55

Hello,
I have setted up a vrep scene with many ePucks, I get they position from Matlab but some coordinates are negative.
I need to shift the origin of the absolute coordinate system to get all the position components (X,Y,Z) positive.
Someone might explain my how to do that?

Many thanks
Davide

coppelia
Site Admin
Posts: 6218
Joined: 14 Dec 2012, 00:25

Re: How to change the origin of the absolute coordinate system

Post by coppelia » 13 Nov 2017, 22:20

Hello,

you can just subtract values from your coordinates to obtain that shift. Or you can use the third argument of simxGetObjectPosition to retrieve the position relative to another object (which could be a dummy appropriately placed in the scene).

Cheers

Post Reply