The invention relates to a method of controlling a device (104) of a vehicle (102) in order to modify a state of the vehicle (102), of the type comprising, for each problem (P) in
a domain (D), the domain (D) defining possible actions of the device (104) modifying the state of the vehicle (102) and the problem (P) indicating a starting state of the vehicle (102) and an arrival state of the vehicle (102): - a search, by a planning
software (110) installed on an embedded computer
system (108) in the vehicle (102), for a solution (S) to the problem (P), the solution (S) listing actions of the domain (D) to go from the starting state to the arrival state; - an evaluation, by a
validator software (116) installed on the embedded computer
system (108), of the solution (S);and - if the solution (S) is validated by the
validator software (116), a transmission of the solution (S) to a
control system (106) of the device (104) so ​​that the device successively performs the actions listed in the solution (S). The
validator software (116) is first obtained by a translation, by a translator software (114) executed by a computer
system (114) external to the vehicle (102), of the domain (D) so that the validator software (116) is dedicated to the domain (D), then installed on the embedded computer system (108). Figure for the abbreviation: Fig. 1;