Get velocity and acceleration


Hi. Is there a way to get joint velocity and acceleration no matter what kind of move command you use.

I am trying to implement a 3D model in Rviz, and it is quit challenging to publish velocity and acceleration-data dependent on what kind of mode I am using. It would be nice with a general GetVelocityAndAcceleration-command