Problem with "Inverse kinematics tutorial" sim.getObjectType

Typically: "How do I... ", "How can I... " questions
Post Reply
roker
Posts: 1
Joined: 04 Oct 2022, 08:32

Problem with "Inverse kinematics tutorial" sim.getObjectType

Post by roker »

Hi,

I want to move a UR3 in inverse kinematics mode. I have followed through with you're "Inverse kinematics tutorial" where everything is nice and clear.
But...
I'm having problems with getting the sim.getObjectType for a IKgroup object (an IKgroup object that is returned from a simIK.createIkGroup). The sim.getObject reports an error "object does not exist". I checked that functions simIK.createEnvironment and simIK.createIkGroup both return a valid handle.

I think this post (https://forum.coppeliarobotics.com/viewtopic.php?t=9763) is related, but the solution reported by the poster isn't working for me...

Here is the link to my scene file: https://file.io/9tzGOKHrT2hi
The nonthreaded child script in the simulation file is attached to a dummy object "Dummy".

Thank you for your time and possible answers/suggestions/solutions.

Best regards,
Rok

coppelia
Site Admin
Posts: 10360
Joined: 14 Dec 2012, 00:25

Re: Problem with "Inverse kinematics tutorial" sim.getObjectType

Post by coppelia »

Hello,

sim.getObjectType will only return the type of a CoppeliaSim object. An IK group generated via simIK.createIkGroup is technically not a CoppeliaSim object, but an object returned by the IK plugin.

Btw, your scene file is not available anymore it seems.

Cheers

Post Reply