A method for the dynamic validation of a function of a sensor unit (7) of a rail vehicle (6) for object localization is described. In this method, a reference object (3), whose reference position (RP) is known, and which is located on or along a track (2) traversed by the rail vehicle (6), which, in addition to at least one reference object (3), has a plurality of
reference measurement points (RMP) distributed along the track (2), the positions (P-RMP) of which are also known, is detected by the sensor unit (7). The relative position (RLP) of the reference object (3) is determined by measuring a distance (d) of the reference object (3) to the sensor unit (7) and an angle (α) from which the reference object (3) is detected by the sensor unit (7).Based on the relative position (RLP) and a railway track map (SLK) depicting the
route of the railway track (2), a distance (ds) to the reference object (3) along the railway track is determined. An ego-
pose (EP) of the rail vehicle (6) is also determined by a self-localization unit (4) mounted on the rail vehicle (6). A first
reference measurement point (RMP1) from the multitude of distributed
reference measurement points (RMP) is selected, which is closest to an ego position (EPS) encompassed by the ego-
pose (EP), and a second reference
measurement point (RMP2) from the multitude of distributed reference measurement points (RMP) is selected, which is closest to the reference object (3). Based on the first reference
measurement point (RMP1) and the second reference
measurement point (RMP2), a
reference distance (ds) is calculated. R) up to the reference object (3). Finally, the function of the sensor unit (7) for object localization is determined by calculating a deviation (AW) of the determined distance (ds) from the
reference distance (ds). R ) validated. An arrangement (1) for the dynamic validation of a function of a sensor unit (7) of a rail vehicle (6) for object localization is also described.