Robot warriors: The mechanics of boobytrapping