safe copy of JointState data
Merge pull request #2949 from AndrewMeadows/inertia

safe copy of JointState data