def joint_state_from_cmd(cmd): js = JointState() js.name = cmd.keys() js.position = cmd.values() return js