How can I make the object orientation zero relative to world frame?

Typically: "How do I... ", "How can I... " questions
Post Reply
suri
Posts: 42
Joined: 07 Apr 2020, 17:24

How can I make the object orientation zero relative to world frame?

Post by suri »

Hello Admin

I need to get the object orientation relative to world frame.

I am using sim.getObjectOrientation(handle,-1). Orientation of object was zero two weeks back, but suddenly orientation changed. I wrote entire code considering this assumption. SInce the orientation changed I can not use my algorithm anymore. Is there any way to fix this problem in coppeliasim?

orientation = sim.getObjectOrientation(handle1,-1)
orientation = {0.00012020346912323, -0.00010339940490667, 0};

The above orientation was two weeks back.

now
orientation is {0.00012020346912323, -0.00010339940490667, -1.50810110569}.

I need the same yaw /orientation around z axis as two weeks back.

Object Position is same and orientation(which means pose of object) is also same as two weeks back in coppeliasim.

For instance, kindly have a look into the below link.
https://drive.google.com/file/d/1HR2dmP ... sp=sharing

Could you kindly tell me what might be the wrong? I could not able to figure out.

Thanks in advance

suri
Posts: 42
Joined: 07 Apr 2020, 17:24

Re: How can I make the object orientation zero relative to world frame?

Post by suri »

The problem is solved.

Post Reply