Measurement and Control of Self-organised Behaviour in Robot Swarms