The invention relates to a method and a device for controlling a lidar sensor (201). Therefore, according to a set of conditions required for the vehicle (10) to drive at an autonomous level higher than the specified level in autonomous mode, the automatic opening of the detachable wall is controlled to protect the lidar sensor (201) from the influence of the external environment. The lidar sensor (201) is mounted in the vehicle (10) and in a housing for receiving the lidar sensor (201),The enclosure is enclosed by a detachable enclosure that protects the lidar sensor from the outside when the enclosure is in the closed position.Abstract figure: Figure 2
展开▼