New update? Missing lot of functionalities

Report crashes, strange behaviour, or apparent bugs
Post Reply
r_dhak
Posts: 9
Joined: 02 Jan 2019, 15:10

New update? Missing lot of functionalities

Post by r_dhak »

Hello,

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
Now I am getting an error
[C]: in function 'simGetPathLength'
[string "Target@childScript"]:11: in function 'sim_code_function_to_run'
Not sure how I can accomplish that now

Any help is appreciated.

Thank You.

r_dhak
Posts: 9
Joined: 02 Jan 2019, 15:10

Re: New update? Missing lot of functionalities

Post by r_dhak »

Never mind.

Got it. Need to define the IK in a script now.

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

Re: New update? Missing lot of functionalities

Post by coppelia »

Hello,

yes, correct. You will see that defining functionality within a script (and not via the GUI) makes everything easier and faster in the long run. And also much more scalable. But if you really need, you can still temporarily enable old dialog items by setting showOldDlgs = true in system/usrset.txt.

Cheers

Post Reply