sim.getJointVelocity() returns 0 after elapsed time of the simulation

Typically: "How do I... ", "How can I... " questions
Post Reply
mikim
Posts: 4
Joined: 29 Mar 2025, 18:32

sim.getJointVelocity() returns 0 after elapsed time of the simulation

Post by mikim »

Hi, I've run into a same issue as described in this post: https://forum.coppeliarobotics.com/viewtopic.php?t=9892.

I am using Coppelia Sim 4.10.0. The issue seems to only occur using the Newton engine (which is the one I prefer) and is dependant on simulation time step size - with higher steps comes sooner. The solution given in the post solves the issue on the one hand, but causes quite frequent spikes in the signal (which was smooth using the built it function) on the other.

Is this behaviour again a bug, or can it be caused by something else? Can it be fixed without using the custom getJointVelocity() function?
coppelia
Site Admin
Posts: 10807
Joined: 14 Dec 2012, 00:25

Re: sim.getJointVelocity() returns 0 after elapsed time of the simulation

Post by coppelia »

Hello,

please excuse the late reply due to summer vacation. Can you post your scene?

Cheers
Post Reply