simSet method intricacies

Typically: "How do I... ", "How can I... " questions
atoz
Posts: 35
Joined: 18 Oct 2013, 09:02

simSet method intricacies

Postby atoz » 11 May 2017, 19:54

Hi,

I'd like to know exactly when the simSetObjectPosition, simSetObjectOrientation, simSet.... methods actually perform the update of the position/orientation etc.? I ask this because in my code when I update a position and then immediately after if I check that it has been updated through an if statement or print() it doesn't seem to show an update. However, the update does show up in the next cycle of the loop.

I'm running this in a non-threaded script where the code is executed during the sensing phase. Am I right in saying that these are non-blocking methods which do not guarantee immediate updates? Is there a workaround to getting the update immediately?

This post seems to be experiencing the same problem: http://www.forum.coppeliarobotics.com/viewtopic.php?f=9&t=6646

Thanks for your help.

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

Re: simSet method intricacies

Postby coppelia » 15 May 2017, 15:16

Hello,

can you post a simplified scene that illustrates the problem? The position is immediately modified. Maybe the object has some other dependencies. Can't tell without seeing it.

Cheers


Return to “General questions”

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 15 guests