Biologically inspired herding of animal groups by robots