simCallScriptFunction of simMoveToJointPositions got Error

Typically: "How do I... ", "How can I... " questions
Post Reply
Ashleycc
Posts: 3
Joined: 15 Apr 2021, 10:43

simCallScriptFunction of simMoveToJointPositions got Error

Post by Ashleycc »

Hi guys,
Still from the scene "blobDetectionPickandPlace", when i call function with Python from Lua script, got the error as :
One of the function's argument type is not correct or table sizes are invalid or do not match.

Lua function:
movetopositionszero=function(inInts, inFloats, inStrings, inBuffer)

sim.moveToJointPositions(fkDrivingJoints,{0,0,0,0},angularVelocity,angularAccel)
return {},{},{}, ''

end

Python:
vrep.simxCallScriptFunction(clientID, 'irb360',
vrep.sim_scripttype_childscript, 'movetopositionszero', [fkDrivingJoints,0,0,0,0], [angularVelocity,angularAccel], [], emptyBuff,
vrep.simx_opmode_oneshot_wait)

Error:
[irb360@childScript:error] 57: One of the function's argument type is not correct or table sizes are invalid or do not match (in function 'simMoveToJointPositions')

Thank you for your help!!

Post Reply