auto-shutdown command remoteAPI strange behavior
Posted: 21 May 2016, 00:36
Hello,
I have an executable using the remoteAPI that checks on the status of VREP in order to determine if it should continue running.
a remoteApiServer is started in the child script, and the client in a c++ executable.
if (simxGetConnectionID!= -1) works wonderfully if I stop the simulation from VREP and then close VREP.
However strange behavior comes when I use some of the command-line commands
I use the -s -q arguements (autostart simulation and autoshutdown vrep when sim done).
when the simulation stops, vrep closes (due to -q), but simxGetConnectionID continues to return a non -1 value.
this obviously causes the external program to continue believing the connection is value, despite the fact that vrep is closed and the remoteApi server should have closed when the simulation ended.
I have no clue what the behavior of the getConnectionID is behind the scenes, so any information there would be appreciated.
I have an executable using the remoteAPI that checks on the status of VREP in order to determine if it should continue running.
a remoteApiServer is started in the child script, and the client in a c++ executable.
if (simxGetConnectionID!= -1) works wonderfully if I stop the simulation from VREP and then close VREP.
However strange behavior comes when I use some of the command-line commands
I use the -s -q arguements (autostart simulation and autoshutdown vrep when sim done).
when the simulation stops, vrep closes (due to -q), but simxGetConnectionID continues to return a non -1 value.
this obviously causes the external program to continue believing the connection is value, despite the fact that vrep is closed and the remoteApi server should have closed when the simulation ended.
I have no clue what the behavior of the getConnectionID is behind the scenes, so any information there would be appreciated.