DOF Velocity Offset at Rest

Ho do you read the dof states?
like this?
dof_states = gym.get_actor_dof_states(envs[0], handles[0], gymapi.STATE_ALL)