+ 1

How do you think, may I use this in python to use a function which is in v rep?

simxCallScriptFunction (regular API equivalent: sim.callScriptFunction) Description Remotely calls a CoppeliaSim script function. When calling simulation scripts, then simulation must be running (and threaded scripts must still be running, i.e. not ended yet). Refer to this section for additional details. Python synopsis number returnCode,array outInts,array outFloats,array outStrings,string outBuffer=simxCallScriptFunction(number clientID,string scriptDescription,number scriptHandleOrType,string functionName,array inInts,array inFloats,array inStrings,string inBuffer,number operationMode) Python parameters clientID: the client ID. refer to simxStart. scriptDescription: the name of the scene object where the script is attached to, or an empty string if the script has no associated scene object. scriptHandleOrType: the handle of the script, otherwise the type of the script: sim_scripttype_mainscript (0): the main script will be called. sim_scripttype_childscript (1): a child script will be called. sim_scripttype_customizationscript (6): a customization script will be called. functionName: the name of the Lua function to call in the specified script. inInts: the input integer values that are handed over to the script function. Can be []. inFloats: the input floating-point values that are handed over to the script function. Can be []. inStrings: the input strings that are handed over to the script function. Can be []. inBuffer: the input buffer that is handed over to the script function. Should be a bytearray. operationMode: a remote API function operation mode. Recommended operation mode for this function is simx_opmode_blocking Python return values returnCode: a remote API function return code outInts: the returned integer values. outFloats: the returned floating-point values. outStrings: the returned strings. outBuffer: the returned buffer. Other languages C/C++, Java, Matlab, Octave, Lua

6th Mar 2021, 5:17 PM
Zhenis Otarbay
Zhenis Otarbay - avatar
1 Antwort
+ 1
Keep it simple. How can we help you?
10th Mar 2021, 5:37 PM
▲TopGun ▲
▲TopGun ▲ - avatar