Today when I launched CoppeliaSim, I noticed a lot of changes.
Example:
1) Path is a dummy object now and can be edited directly within the scene window (no need to go to edit path toolbar)
2) Joint IK mode is completely gone.
I would like to follow a path, earlier it was possible through (putting joints in hybrid IK mode)--
Code: Select all
--Function Initialization:
threadFunction=function()
while true do
sim.followPath(target, path, 1, posOnPath, v, 0)
end
end
--Initialization of parameters:
path=sim.getObjectHandle('Path')
target=sim.getObjectHandle('Target')
pathLength=sim.getPathLength(path)
posOnPath=0 -- varies between 0 (start) and pathLength (end)
v=0.3 -- velocity of the movement on the path (0.025m/s)
res,err=xpcall(threadFunction,function(err) return debug.traceback(err) end)
if not res then
sim.addStatusbarMessage('Lua runtime error: '..err)
end
Not sure how I can accomplish that now[C]: in function 'simGetPathLength'
[string "Target@childScript"]:11: in function 'sim_code_function_to_run'
Any help is appreciated.
Thank You.