Why does funtion sim.getJointForce have nil value at the first execution?

Typically: "How do I... ", "How can I... " questions
Post Reply
biscuit122
Posts: 17
Joined: 23 Jan 2018, 16:16

Why does funtion sim.getJointForce have nil value at the first execution?

Post by biscuit122 » 11 Sep 2018, 13:11

Hi, I have found that sim.getJointForce outputs a nil value at its first loop. Why does it appear?
I am looking forward to your answer. Thanks

fferri
Posts: 209
Joined: 09 Sep 2013, 19:28

Re: Why does funtion sim.getJointForce have nil value at the first execution?

Post by fferri » 11 Sep 2018, 17:05

It means that no value is available yet: http://www.coppeliarobotics.com/helpFil ... tForce.htm
forceOrTorque: the force or the torque applied to the joint along/about its z-axis, or nil in case of an error, or if no value is available yet.

Post Reply