Controlling robots using CEP