Bachelor Thesis: Homeostatic regulation of behavior in a robot swarm