Matlab & VREP in headless mode.
Matlab & VREP in headless mode.
Can anybody help me with the proper syntax for using boolean parameter for headless mode in matlab script? What I am trying to do is, to launch a simulation from matlab script in headless mode, so that only running the matlab script should start the simulation.
Re: Matlab & VREP in headless mode.
Hello,
have a look at the command line options here.
e.g. use for instance:
Cheers
have a look at the command line options here.
e.g. use for instance:
Code: Select all
pathToVrep/vrep.exe -h -s -q pathToAScene/theScene.ttt
Re: Matlab & VREP in headless mode.
Thanks for the reply,
I was thinking more of a in-script thing like,
[numberreturnCode,booleanparamValue]=vrep.simxGetBooleanParameter(clientID,33,vrep.simx_opmode_blocking)
[numberreturnCode]=vrep.simxSetBooleanParameter(clientID,33,booleanparamValue,vrep.simx_opmode_oneshot)
where 33 is the "sim.boolparam_headless".
But its not working.
I was thinking more of a in-script thing like,
[numberreturnCode,booleanparamValue]=vrep.simxGetBooleanParameter(clientID,33,vrep.simx_opmode_blocking)
[numberreturnCode]=vrep.simxSetBooleanParameter(clientID,33,booleanparamValue,vrep.simx_opmode_oneshot)
where 33 is the "sim.boolparam_headless".
But its not working.
Re: Matlab & VREP in headless mode.
sim.boolparam_headless can only be read: you cannot turn a non-headless V-REP instance into a headless instance. You need to launch V-REP in headless mode.
Cheers
Cheers