Search

CN-121979513-A - Vehicle scene configuration method, execution method, device, electronic equipment and medium

CN121979513ACN 121979513 ACN121979513 ACN 121979513ACN-121979513-A

Abstract

The application provides a vehicle scene configuration method, an execution device, electronic equipment and a medium, wherein a cloud responds to the operation of a user on a graphical editing interface to generate a scene graph, the scene graph comprises a plurality of nodes and logic association relations among the nodes, the nodes comprise any one of event nodes, condition nodes and control nodes, the scene graph is converted into a scene description file, the nodes correspond to predefined code character strings, the code character strings correspond to a predefined implementation function of a vehicle end, the scene description file is issued to the vehicle end in response to a downloading request of the vehicle end, the vehicle end analyzes the scene description file to obtain the code character strings, and the target implementation function corresponding to the code character strings is executed when a vehicle event is triggered. The user can customize the scene graph based on own requirements, scene arrangement is more flexible, the generated scene description file is issued to the vehicle end through the cloud end, and the vehicle end is directly executed after analysis, so that efficient scene execution is realized.

Inventors

  • LI CHAOMENG
  • SUN HONGFU
  • XU KAITING
  • YU HONGCHAO

Assignees

  • 重庆赛力斯凤凰智创科技有限公司

Dates

Publication Date
20260505
Application Date
20251211

Claims (10)

  1. 1. A vehicle scene configuration method, applied to a cloud, the method comprising: Generating a scene graph in response to the operation of a user on a graphical editing interface, wherein the scene graph comprises a plurality of nodes and logic association relations among the nodes, and the nodes comprise any one of event nodes, condition nodes and control nodes; the scene graph is converted into a scene description file, wherein the nodes correspond to predefined code character strings, and the code character strings correspond to a realization function predefined by a vehicle end; And responding to a downloading request of the vehicle end, issuing the scene description file to the vehicle end so that the vehicle end can analyze the scene description file, acquire a code character string, and executing a target implementation function corresponding to the code character string when a vehicle event is triggered.
  2. 2. The method of claim 1, wherein converting the scene graph into a scene description file comprises: analyzing the node type of each node in the scene graph and the logic association relation among the nodes; converting the node type into a node definition containing a predefined code character string according to a preset mapping rule; Converting the logic association relation into an execution sequence definition; And encapsulating the node definition and the execution sequence definition into a scene description file according to a structural format.
  3. 3. A vehicle scene execution method, applied to a vehicle end, the method comprising: The method comprises the steps of obtaining a scene description file from a cloud, wherein the scene description file is generated by converting a scene graph generated by the cloud based on graphical editing interface operation, and nodes contained in the scene description file correspond to predefined code character strings; analyzing the scene description file to obtain a code character string; Determining a target implementation function corresponding to the code string; and monitoring a vehicle event, and executing the target implementation function when the vehicle event is triggered.
  4. 4. A method according to claim 3, wherein said determining an objective function corresponding to said code string comprises: And matching the code character string with a predefined method object through a reflection mechanism, and determining a target implementation function.
  5. 5. A method according to claim 3, wherein the listening for a vehicle event and executing the objective function upon triggering of the vehicle event comprises: responding to the triggering of the vehicle event, matching the identification of the triggering event with the codes of the input events of all scenes, and determining a target scene; Determining the node execution sequence according to the execution sequence definition in the scene description file of the target scene; and according to the node execution sequence, sequentially executing the target implementation functions corresponding to the nodes.
  6. 6. The method according to claim 5, wherein the sequentially executing the objective function corresponding to each node includes: if the current node is a control node, executing a control function corresponding to the control node, and taking a child node of the control node as a next node to be executed; if the current node is a conditional node, executing a conditional judgment function corresponding to the conditional node, and selecting one node from the child nodes of the conditional node as a next node to be executed according to a judgment result; If the current node is an event node, updating the waiting state of the scene to monitor a new event.
  7. 7. The method of claim 3, wherein the listening for vehicle events comprises: The event monitoring interface defines an event receiving method, and the event receiving method is used for receiving the vehicle event.
  8. 8. A vehicle scene configuration device, characterized by being applied to a cloud, the device comprising: The generation module is used for responding to the operation of a user on the graphical editing interface and generating a scene graph, wherein the scene graph comprises a plurality of nodes and logic association relations among the nodes, and the nodes comprise any one of event nodes, condition nodes and control nodes; the system comprises a scene graph, a conversion module, a scene description file, a code string and a vehicle-end pre-defined implementation function, wherein the scene graph is converted into the scene description file by the conversion module, and the node corresponds to the pre-defined code string which corresponds to the vehicle-end pre-defined implementation function; And the issuing module is used for responding to a downloading request of the vehicle end, issuing the scene description file to the vehicle end so that the vehicle end can analyze the scene description file, acquire a code character string and execute a target implementation function corresponding to the code character string when a vehicle event is triggered.
  9. 9. An electronic device is characterized by comprising a processor; A memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 7.
  10. 10. A computer readable storage medium, characterized in that instructions in the computer readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of claims 1 to 7.

Description

Vehicle scene configuration method, execution method, device, electronic equipment and medium Technical Field The embodiment of the application relates to the technical field of automobiles, in particular to a vehicle scene configuration method, an execution device, electronic equipment and a medium. Background The intelligent cabin scene is a core functional module of the intelligent automobile, and intelligent interaction and personalized experience in the automobile are realized by integrating interaction technology, a multi-mode interaction mode and scene service. In the related art, the scene triggering condition and the control mode of the vehicle are preset, and the user cannot modify the scene triggering condition and the control mode. The preset fixed scene is difficult to meet the requirements of different users. Disclosure of Invention In view of the foregoing, embodiments of the present invention are provided to provide a vehicle scene configuration method, an execution method, an apparatus, an electronic device, and a medium that overcome or at least partially solve the foregoing problems. In order to achieve the above purpose, the technical scheme adopted by the invention is as follows: in a first aspect, an embodiment of the present application discloses a vehicle scene configuration method, applied to a cloud, the method including: Generating a scene graph in response to the operation of a user on a graphical editing interface, wherein the scene graph comprises a plurality of nodes and logic association relations among the nodes, and the nodes comprise any one of event nodes, condition nodes and control nodes; the scene graph is converted into a scene description file, wherein the nodes correspond to predefined code character strings, and the code character strings correspond to a realization function predefined by a vehicle end; And responding to a downloading request of the vehicle end, issuing the scene description file to the vehicle end so that the vehicle end can analyze the scene description file, acquire a code character string, and executing a target implementation function corresponding to the code character string when a vehicle event is triggered. In a second aspect, an embodiment of the present application discloses a vehicle scene execution method, which is applied to a vehicle end, and the method includes: The method comprises the steps of obtaining a scene description file from a cloud, wherein the scene description file is generated by converting a scene graph generated by the cloud based on graphical editing interface operation, and nodes contained in the scene description file correspond to predefined code character strings; analyzing the scene description file to obtain a code character string; Determining a target implementation function corresponding to the code string; and monitoring a vehicle event, and executing the target implementation function when the vehicle event is triggered. In a third aspect, an embodiment of the present application discloses a vehicle scene configuration device, applied to a cloud, the device including: The generation module is used for responding to the operation of a user on the graphical editing interface and generating a scene graph, wherein the scene graph comprises a plurality of nodes and logic association relations among the nodes, and the nodes comprise any one of event nodes, condition nodes and control nodes; the system comprises a scene graph, a conversion module, a scene description file, a code string and a vehicle-end pre-defined implementation function, wherein the scene graph is converted into the scene description file by the conversion module, and the node corresponds to the pre-defined code string which corresponds to the vehicle-end pre-defined implementation function; And the issuing module is used for responding to a downloading request of the vehicle end, issuing the scene description file to the vehicle end so that the vehicle end can analyze the scene description file, acquire a code character string and execute a target implementation function corresponding to the code character string when a vehicle event is triggered. In a fourth aspect, an embodiment of the present application discloses a vehicle scene execution device, which is applied to a vehicle end, and the device includes: the system comprises an acquisition module, a code string generation module and a code string generation module, wherein the acquisition module is used for acquiring a scene description file from a cloud end, the scene description file is generated by converting a scene graph generated by the cloud end based on graphical editing interface operation, and nodes contained in the scene description file correspond to the predefined code string; the analysis module is used for analyzing the scene description file and acquiring a code character string; a determining module, configured to determine an objective implementation function correspon