Cascade headlock gate
The cascade headlock gate guides the entering does to line up for milking (only the last unit is open; as the first doe lowers her head into the self-locking unit, the mechanism opens the second-to-last unit for the next doe).
Read more here.