what the hell man, that sounds ridiculous to have people robbing you near your school? doesn't the police do anything or whatsoever?
And carrying a baton might give you a sense of security, but in actual fact it might be placing you in more danger.
Being without any weapons, you submit to them and hand over your stuff without putting a fight whereas with a baton, you will attempt to fight with them which might put you in more danger....
if they have numbers and a knife, and see you trying to challenge them with a baton, things might end up really bad!
so i advise you not to carry a baton or any weapon whatsoever, even if it is for self-defense. Instead try to get the authorities involved.