This was a short book I read in the late 80s or early 90s. I believe it has a cover of two robot policemen pointing guns and was probably called something like ".. of the robots" (I'm thinking War of the Robots, but that doesn't seem to match anything).
From what I remember of the plot, the main character is a boy at school in a society run by robots. The teacher is some sort of computer and one of the other pupils smashes it somehow. Police robots show up and have some sort of weapon that creates a sort of forcefield dome around their target. I recall they also had a gun which turned the victim to dust.
There's also some minor mention of things like "moving sidewalks/pavements" everywhere.
I have a faint recollection that there's a revolution in the end.