Action and perception for spatiotemporal patterns