They're NPN transistors and I'd assume that their emitter is connected to the negative terminal of your battery. It's not on the schematic, but it's probably assumed to be a given.
I've seen that sandwich robot design before, I even have the book. I find that it is better if you use an op-amp with a gain of 2 for the circuit because it is less likely to stop its motor suddenly and pass right over the line.