Closed fferri closed 7 years ago
From @aidyk on September 8, 2017 5:52
Hi, could you provide me a minimal sample code to reproduce it? I'm not a repository owner, but I'd like to investigate the issue.
From @SiyuanQi on September 8, 2017 17:33
Hi, I eventually solved the problem by adjusting the execution priority of the dummy object script to "last". So I guess it has something to do with the workflow inside vrep, e.g. when the initialization of an object is called if it is created during simulation.
From @aidyk on September 9, 2017 2:14
It's good anyway, and thank you for sharing your experience!
From @SiyuanQi on August 19, 2017 2:23
Hi, I tried to run the API function
simExtOMPL_isStateValid(number taskHandle, table state)
from the embedded scripts and met some problems.My final goal is to load a model during simulation, and set a valid goal state for that model. I use a associated child script for that model, and defined a function
setTarget
that callssimExtOMPL_isStateValid
when executed. Task handle and state space are created in the initialization part.Here are several scenarios:
setTarget
directly from the associated child script. Works.setTarget
from a child script of a dummy object. Works.setTarget
from a child script of a dummy object. Failed.Here is the error message shown in V-REP:
What would possibly be the reason for this? Thank you!
_Copied from original issue: fferri/vrepExtOMPL#2