move JointState to libraries