Vehicles other than a school bus, activity bus, motor vehicle carrying passengers for compensation, vehicle over 10,000 lbs. that is carrying hazardous materials, and any motor vehicle with a capacity of at least 16 persons do not need to stop at railroad tracks used for industrial switching purposes, where a police officer or flagman directs traffic to proceed, if there is a railroad gate that fl