Search found 8 matches

by elephant
25 Feb 2021, 00:35
Forum: General questions
Topic: Confusing on function parameter
Replies: 3
Views: 25

Re: Confusing on function parameter

From CoppeliaSim version > 4.1.0 rev1, sim.setShapeMassAndInertia and sim.getShapeMassAndInertia are deprecated. Use instead sim.setShapeMass , sim.getShapeMass , sim.setShapeInertia and sim.getShapeInertia . I dont understand, im sorry. These functions doesnt exist on Regular API function list pag...
by elephant
24 Feb 2021, 05:09
Forum: General questions
Topic: Confusing on function parameter
Replies: 3
Views: 25

Confusing on function parameter

Im trying to use the function simSetShapeMassAndInertia but didnt understand and i dont know what values to put in last parameter, called "transformation". I'm using this function only to set the inertia matrix to change all 9 components to zero. About the mass and that transformation, can be the sa...
by elephant
22 Feb 2021, 16:41
Forum: General questions
Topic: How to change the default settings?
Replies: 2
Views: 45

Re: How to change the default settings?

It is not clear what you are asking: if you are asking how to change the embedded script of a specific model, simply add it to the scene, modify the script, and re-export the model if you want a piece of script to be executed whenever some robot is added to the scene, then you can define a sysCall_...
by elephant
21 Feb 2021, 21:38
Forum: General questions
Topic: Evaluate whether object name exists or not
Replies: 4
Views: 1879

Re: Evaluate whether object name exists or not

Hello Tiago, you have two options: 1. You can disable throwing errors for V-REP API functions if you set variable raiseErrorWithApiScriptFunctions to false in system/usrset.txt . This is not an elegant solution, since an error message will still be output in the status bar. 2. You can use following...
by elephant
21 Feb 2021, 05:06
Forum: General questions
Topic: How to change the default settings?
Replies: 2
Views: 45

How to change the default settings?

Is possible to change for example, what script will embed when the user put a new robot on scene?
by elephant
21 Feb 2021, 04:40
Forum: General questions
Topic: How to use callScriptFunction in threaded script?
Replies: 4
Views: 71

Re: How to use callScriptFunction in threaded script?

fferri wrote:
19 Feb 2021, 09:48
Have a while loop running continuously in the main thread function, like it's done in the default threaded script.
Thank you! that solved my problem.
by elephant
18 Feb 2021, 22:33
Forum: General questions
Topic: How to use callScriptFunction in threaded script?
Replies: 4
Views: 71

Re: How to use callScriptFunction in threaded script?

Hello, Make sure that the script that you are calling is initialized. This means, the script should have started, and not yet ended. In your case, the script immediately ends, and so it will immediately deinitialize. Cheers But how can i do it? " the script should have started, and not yet ended"
by elephant
13 Feb 2021, 21:05
Forum: General questions
Topic: How to use callScriptFunction in threaded script?
Replies: 4
Views: 71

How to use callScriptFunction in threaded script?

In legacy remote API side, im using the python function like this: sim.simxCallScriptFunction(clientID, 'Dobot', sim.sim_scripttype_childscript, 'movetoPoss', [50,0,0,0], [], [], bytearray(), sim.simx_opmode_blocking) and the threaded child script on Dobot robot is: function movetoPos(j1,j2,j3,j4,en...