check for NaN values before sending velocities to robot