Page 1 of 1

problem whit Inverse kinematics tutorial

Posted: 27 May 2022, 08:27
by daggoth
i try to add a child scrip of this tutorial to my scene

https://www.coppeliarobotics.com/helpFi ... al.htm#run

but when i try to run it i got this error

[/UR5@childScript:error] 262: in sim.getObjectType: object does not exist.
stack traceback:
[C]: in function 'simGetObjectType'
...gram Files/CoppeliaRobotics/CoppeliaSimPro/lua/simIK.lua:262: in
function 'simIK.addIkElementFromScene'
[string "/UR5@childScript"]:18: in function 'sysCall_init'

you can take a look to my scene here

https://github.com/SebastienBeaugrand/Projet-2

thank you in advance

Re: problem whit Inverse kinematics tutorial

Posted: 27 May 2022, 14:13
by fferri
There is no call to sim.getObjectType in the CoppeliaSim's tutorial.

Also, your git repository is unreachable.

Re: problem whit Inverse kinematics tutorial

Posted: 27 May 2022, 17:37
by daggoth
finaly i found the problem
my handle object was not set as local

and your'e right there is no sim.getObjectType inside the tutorial but inside simIK.lua the function simIK.addIkElementFromScene have one but becose i was not called the sim.getObject as local the type was not good when it call simIK.addIkElementFromScene