Can you add spring dynamics to a joint (urdf)?
I'm trying to simulate a spring within the joints of a robot leg. I've managed to use
<gazebo reference="Joint">
<implicitSpringDamper>true</implicitSpringDamper>
<springStiffness>50</springStiffness>
<springReference>0.8</springReference>
</gazebo>
in the urdf to simulate a spring in that joint, but it only works when running the robot in gazebo. Is there a proper way to set up spring dynamics inside the joint in the urdf so that it works in rviz as well? I'm using melodic ros if that matters. Thanks!