simIK.generatePath fails

Report crashes, strange behaviour, or apparent bugs
Post Reply
siilats
Posts: 3
Joined: 28 Mar 2023, 18:01

simIK.generatePath fails

Post by siilats »

I get

Code: Select all

raise Exception(resp.get('error'))
Exception: ...oppeliaSim.app/Contents/MacOS/../Resources/lua/simIK.lua:188: attempt to index a nil value (field 'ikEnvs')
I see in the wizard it generates code with _ but even if I change it

Code: Select all

 ikElement,ikHandleMap,ikToSimMap=simIK.addElementFromScene(ikEnv,ikGroup,simBase,simTip,simTarget,constraint)
it didnt help. changing manually in simIK.lua

Code: Select all

function simIK.debugGroupIfNeeded(ikEnv,ikGroup,debugFlags)
    if not _S.ikEnvs then
        _S.ikEnvs={}
    end
fixes it

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

Re: simIK.generatePath fails

Post by coppelia »

Hello,

yes, you are right. This happens when you create an IK task not via simIK.addElementfromScene. Did you run a specific CoppeliaSim example or scene that triggered that?

Cheers

Post Reply