problem whit Inverse kinematics tutorial

Typically: "How do I... ", "How can I... " questions
Post Reply
daggoth
Posts: 2
Joined: 27 May 2022, 06:31

problem whit Inverse kinematics tutorial

Post 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

fferri
Posts: 1187
Joined: 09 Sep 2013, 19:28

Re: problem whit Inverse kinematics tutorial

Post by fferri »

There is no call to sim.getObjectType in the CoppeliaSim's tutorial.

Also, your git repository is unreachable.

daggoth
Posts: 2
Joined: 27 May 2022, 06:31

Re: problem whit Inverse kinematics tutorial

Post 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

Post Reply