Consensus for Multiagent Systems Under Output Constraints and Unknown Control Directions