[main_ai] Add function update ratio when a robot passes nearby