terminate called after throwing an instance of 'jsoncons::json_runtime_error<std::out_of_range, void>'
what(): Invalid array subscript
Aborted (core dumped)
The Capsule handle returns valid input (i.e. 60).
CoppeliaSim Edu, Version 4.5.1 (rev. 4) 64bit (serialization version 24). Ubuntu 18.04 LTS.
_S.getContactInfo = sim.getContactInfo
function sim.getContactInfo(...)
local a, b, c, d = _S.getContactInfo(...)
if a == nil then
a = {} b = {} c = {} d = {}
end
return a, b, c, d
end
_S.getContactInfo = sim.getContactInfo
function sim.getContactInfo(...)
local a, b, c, d = _S.getContactInfo(...)
if a == nil then
a = {} b = {} c = {} d = {}
end
return a, b, c, d
end
coppelia wrote: ↑02 Nov 2023, 08:58
I cannot reproduce your error (at least on CoppeliaSim V4.6). At what stage exactly is the error produced?
Cheers
I didn't understand your question. I'm running the exact C++ example above. You've advised to add some new lines to sim.lua. Adding the suggested lines yields another errors.