Page 1 of 1

Using simxCallScriptFunction in headless mode

Posted: 24 Jan 2019, 04:34
by 3mayuge3
Hello,

I have one question about headless mode. I would like to call my function written in child script when the simulation is headless mode. I using python code (remote API), so it's better to use simxCallScriptFunction. I tried that, but it didn't work well (get return code 8).
In the first place, is it possible to call functions via remote API in headless mode?

Thank you.

Re: Using simxCallScriptFunction in headless mode

Posted: 25 Jan 2019, 11:23
by coppelia
Hello,

that should normally work. Return value 8 means simx_return_remote_error_flag, i.e. an error occured on the server side. Are you sure your scene is correctly loaded? Are you sure your simulation is running (you can't call a child script function if simulation is not running).

Cheers

Re: Using simxCallScriptFunction in headless mode

Posted: 27 Jan 2019, 06:05
by 3mayuge3
Thank you for your reply.

Ok, I' ll check simulation and scene again. Thank you for your advice.