Model-based control of perception/action