Control method of vehicle map display, vehicle, and storage medium
Patent Information
- Application Number
- CN202210715774.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-22
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2042-06-22
AI Technical Summary
[0003]但是,对各种应用进程来讲,应用进程向用户提供用高精地图,尤其使用三维地图进行地图导航时,会因为地图导航的复杂性导致应用进程相比其他没有提供地图导航的应用进程更不稳定
[0051]本申请的车辆地图显示的控制方法、车辆和非易失性计算机可读存储介质,车载系统控制中控地图进程启动监听服务,接收仪表地图进程对三维地图渲染资源的缓存请求,将缓存请求对应的渲染资源发送至中控地图进程的监听服务。接着,控制中控地图进程使用该渲染资源启动虚拟显示设备的建立,在接收虚拟显示设备已经建立完成的车载系统回调通知之后,创建仪表地图实例。最后将建立的虚拟显示设备与仪表地图实例绑定,根据绑定关系利用三维地图渲染资源完成仪表地图实例的地图渲染,并传输至仪表地图进程进行显示。既能保证渲染三维地图的效果的独立性,又能够降低仪表地图进程显示三维地图的复杂度从而提高仪表屏的稳定性,提高驾驶安全。
Smart Images

Figure CN115222903B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and more specifically, to a control method for vehicle map display, a vehicle, and a non-volatile computer-readable storage medium. Background Technology
[0002] As intelligent vehicles increasingly utilize multiple screens, the instrument cluster has become a crucial information display platform during driving. It carries a significant amount of safety information relevant to driver assistance, making the stability of its application extremely important. Displaying high-precision 3D maps, such as those on the instrument cluster, can provide users with more direct safety information.
[0003] However, for various applications, those providing high-precision maps, especially 3D maps for navigation, are less stable than those without map navigation due to the complexity of map navigation. Furthermore, the instrument panel uses a low-performance chip that cannot handle the high-performance rendering requirements of 3D maps. Therefore, rendering 3D maps on the instrument panel's applications reduces its stability and poses driving safety risks. Summary of the Invention
[0004] This application provides a control method for vehicle map display, a vehicle, and a non-volatile computer-readable storage medium.
[0005] This application provides a control method for vehicle map display, the method comprising:
[0006] Start the monitoring service in the central control map process;
[0007] Receive the instrument map process's cache request for 3D map rendering resources, and send the rendering resources corresponding to the cache request to the central control map process's listening service;
[0008] The central control map process uses this rendering resource to initiate the creation of a virtual display device;
[0009] Receive the vehicle system callback notification that the virtual display device has been established, and create an instrument panel map instance;
[0010] Bind the created virtual display device to the instrument map instance;
[0011] Based on the binding relationship, the 3D map rendering resources are used to complete the map rendering of the instrument map instance, and then transmitted to the instrument map process for display.
[0012] In this way, the vehicle system controls the central control map process to start a listening service, receive caching requests for 3D map rendering resources from the instrument cluster map process, and send the corresponding rendering resources to the central control map process's listening service. Next, the central control map process uses these rendering resources to initiate the creation of a virtual display device. After receiving a callback notification from the vehicle system indicating that the virtual display device has been created, it creates an instrument cluster map instance. Finally, the created virtual display device is bound to the instrument cluster map instance, and based on the binding relationship, the 3D map rendering resources are used to render the map for the instrument cluster map instance, which is then transmitted to the instrument cluster map process for display. This approach ensures the independence of the 3D map rendering effect while reducing the complexity of displaying the 3D map in the instrument cluster map process, thereby improving the stability of the instrument cluster screen and enhancing driving safety.
[0013] The step of receiving the instrument map process's cache request for 3D map rendering resources and sending the rendering resources corresponding to the cache request to the central control map process's listening service includes:
[0014] Receive cache requests for 3D map rendering resources from the instrument map process;
[0015] The rendering resources corresponding to the cached request are sent to the listening service of the central map process through inter-process communication.
[0016] Thus, after receiving the instrument map process's cache request for 3D map rendering resources, the rendering resources corresponding to the cache request can be sent to the central control map process's listening service through inter-process communication.
[0017] The central control map process uses rendering resources to initiate the establishment of a virtual display device, including:
[0018] The central control map process uses this rendering resource to call the application programming interface of the vehicle system;
[0019] The application programming interface that calls the vehicle system is used to initiate the creation of a virtual display device with preset attributes.
[0020] Thus, after the central control map process uses the rendering resource to call the application programming interface of the vehicle system, it uses the application programming interface of the vehicle system to start the creation of a virtual display device with preset attributes, so that the 3D development engine can correctly identify the created virtual display device.
[0021] After the central control map process uses the rendering resources to initiate the establishment of the virtual display device, the method includes:
[0022] Compile the 3D development engine script of the central control map process into a 3D development engine dynamic link library;
[0023] The interface of the 3D development engine's dynamic link library is called to determine the virtual display device to be created.
[0024] In this way, after compiling the 3D development engine script of the central control map process into a 3D development engine dynamic link library, the interface of the 3D development engine dynamic link library is called to determine the established virtual display device, thereby finding the virtual display device established by the central control map process.
[0025] The process of calling the interface of the 3D development engine's dynamic link library to determine the established virtual display device includes:
[0026] The interface of the 3D development engine's dynamic link library is called to check the string length of the virtual display device;
[0027] The number of virtual display devices discovered by the 3D development engine can be obtained by measuring the string length of the virtual display device.
[0028] If a new virtual display device is added based on the number of virtual display devices, retrieve the last virtual display device in the device list.
[0029] The last virtual display device is identified as the established virtual display device.
[0030] Thus, the interface of the 3D development engine's dynamic link library is called to check the string length of the virtual display device, and the number of virtual display devices discovered by the 3D development engine is obtained through the string length of the virtual display device. If a new virtual display device is determined based on the number of virtual display devices, the last virtual display device in the device list is retrieved, and this last virtual display device is identified as the created virtual display device. Therefore, even when multiple new virtual display devices are discovered, the virtual display device created by the central control map process can be found.
[0031] The interface for calling the 3D development engine's dynamic link library determines the virtual display device to be created from the device list, including:
[0032] The interface of the 3D development engine's dynamic link library is called to check the string length of the virtual display device;
[0033] The number of virtual display devices discovered by the 3D development engine can be obtained by measuring the string length of the virtual display device.
[0034] If a new virtual display device is added based on the number of virtual display devices, then obtain the newly added virtual display device.
[0035] The newly added virtual display device is confirmed as the established virtual display device.
[0036] Thus, the interface of the 3D development engine's dynamic link library is called to check the string length of the virtual display device, and the number of virtual display devices discovered by the 3D development engine is obtained through the string length of the virtual display device. If a new virtual display device is added based on the number of virtual display devices, the newly added virtual display device is obtained and confirmed to be a newly created virtual display device. Therefore, when a new virtual display device is added, it can be determined that this newly added virtual display device is a virtual display device created by the central control map process.
[0037] After binding the established virtual display device with the instrument map instance, the process includes:
[0038] Based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is pre-set through the application programming interface of the vehicle system.
[0039] Thus, based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is pre-set through the vehicle system's application programming interface, so that the 3D map obtained after rendering the instrument panel map instance is more suitable for display on the instrument panel screen.
[0040] The step of pre-setting the instrument panel map instance based on the differences between the instrument panel map instance and the central control map instance through the vehicle system's application programming interface includes:
[0041] Based on the differences between the instrument panel map instance and the central control map instance, the rendering controller of the instrument panel map instance is set to a preset height through the application programming interface of the vehicle system.
[0042] Thus, based on the differences between the instrument panel map instance and the central control map instance, the rendering controller of the instrument panel map instance is set to a preset height through the application programming interface of the vehicle system, so that the 3D map obtained after rendering the instrument panel map instance is more suitable for display on the instrument panel screen.
[0043] The step of pre-setting the instrument panel map instance based on the differences between the instrument panel map instance and the central control map instance through the vehicle system's application programming interface includes:
[0044] Based on the differences between the instrument panel map instance and the central control map instance, the preset resource configuration file corresponding to the instrument panel map instance is loaded through the application programming interface of the vehicle system.
[0045] Thus, based on the differences between the instrument panel map instance and the central control map instance, the preset resource configuration file corresponding to the instrument panel map instance is loaded through the application programming interface of the vehicle system, so that the 3D map obtained after rendering the instrument panel map instance has a color scheme that is more suitable for display on the instrument panel screen.
[0046] The step of pre-setting the instrument panel map instance based on the differences between the instrument panel map instance and the central control map instance through the vehicle system's application programming interface includes:
[0047] Based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is locked to a preset position on the instrument panel display interface of the vehicle system via the application programming interface of the vehicle system.
[0048] Thus, based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is locked to a preset position on the instrument panel display interface via the vehicle system's application programming interface. This allows the rendered 3D map from the instrument panel map instance to surround the vehicle model.
[0049] This application also provides a vehicle, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the above-described control method.
[0050] This application also provides a non-volatile computer-readable storage medium for a computer program that implements the above-described control method when the computer program is executed by one or more processors.
[0051] This application discloses a vehicle map display control method, a vehicle, and a non-volatile computer-readable storage medium. The in-vehicle system controls the central control map process to initiate a listening service, receives a caching request for 3D map rendering resources from the instrument cluster map process, and sends the corresponding rendering resources to the central control map process's listening service. Next, the central control map process uses these rendering resources to initiate the creation of a virtual display device. After receiving a callback notification from the in-vehicle system indicating that the virtual display device has been created, an instrument cluster map instance is created. Finally, the created virtual display device is bound to the instrument cluster map instance. Based on the binding relationship, the 3D map rendering resources are used to complete the map rendering of the instrument cluster map instance, which is then transmitted to the instrument cluster map process for display. This method ensures the independence of the 3D map rendering effect while reducing the complexity of displaying the 3D map in the instrument cluster map process, thereby improving the stability of the instrument cluster screen and enhancing driving safety.
[0052] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0053] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, wherein:
[0054] Figure 1 This is a flowchart illustrating the control method of this application;
[0055] Figure 2 This is a timing diagram of the control method of this application;
[0056] Figure 3 This is a flowchart illustrating the control method of this application;
[0057] Figure 4 This is a flowchart illustrating the control method of this application;
[0058] Figure 5 This is a flowchart illustrating the control method of this application;
[0059] Figure 6 This is a flowchart illustrating the control method of this application;
[0060] Figure 7 This is a flowchart illustrating the control method of this application;
[0061] Figure 8 This is a flowchart illustrating the control method of this application;
[0062] Figure 9 This is a flowchart illustrating the control method of this application;
[0063] Figure 10 This is a flowchart illustrating the control method of this application;
[0064] Figure 11 This is a flowchart illustrating the control method of this application;
[0065] Figure 12 This is a schematic diagram illustrating the connection state between the non-volatile computer-readable storage medium and the processor of this application. Detailed Implementation
[0066] This application is described in detail below, and examples of embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0067] Displaying 3D maps on the instrument panel can be achieved through image-transfer rendering. Specifically, the map rendering buffer is reorganized into a public image file structure, such as BMP, PNG, and JPG formats. The reorganized data is then packaged and transmitted to the instrument panel map process via inter-program communication. The instrument panel map process parses the packaged data, renders it again, and then displays the 3D map on the instrument panel.
[0068] Displaying 3D maps on the instrument panel also includes rendering using OpenGL shared memory. Specifically, the instrument map process uses OpenGL technology to render the map before displaying it on the instrument panel. This rendering method uses inter-process communication to share the OpenGL buffer for map rendering.
[0069] Please see Figure 1 The vehicle map display control method of this application includes the following steps:
[0070] 01: Control the central map process to start the monitoring service;
[0071] 02: Receive the instrument map process's cache request for 3D map rendering resources, and send the rendering resources corresponding to the cache request to the central control map process's listening service;
[0072] 03: Control the central map process to use this rendering resource to initiate the creation of the virtual display device;
[0073] 04: Receive the vehicle system callback notification that the virtual display device has been established, and create an instrument panel map instance;
[0074] 05: Bind the created virtual display device to the instrument map instance;
[0075] 06: Based on the binding relationship, use 3D map rendering resources to complete the map rendering of the instrument map instance and transmit it to the instrument map process for display.
[0076] This application also provides a vehicle, including a memory and a processor. The memory stores a computer program, and the processor is used to control the central control map process to start a listening service, and to receive cache requests for 3D map rendering resources from the instrument panel map process, send the rendering resources corresponding to the cache requests to the listening service of the central control map process, control the central control map process to use the rendering resources to start the establishment of a virtual display device, receive a vehicle system callback notification that the virtual display device has been established, and create an instrument panel map instance. It is also used to bind the established virtual display device to the instrument panel map instance, and to complete the map rendering of the instrument panel map instance using 3D map rendering resources according to the binding relationship, and transmit the map to the instrument panel map process for display.
[0077] Specifically, the vehicle cabin is equipped with an instrument panel and a central control screen, which can display 3D maps, such as high-precision maps. The vehicle also features a Qualcomm 8155 chip to support the operation of the in-vehicle system, which uses the Android operating system. The Android operating system can run applications such as the instrument panel map application, the central control screen map application, and a 3D development engine (Unity). The control method of this application can be compiled using various languages; this application uses C# as an example. The instrument panel map refers to the 3D map displayed on the instrument panel, and the central control screen map refers to the 3D map displayed on the central control screen. A virtual display device is a concept in the Android operating system that virtualizes a block of display memory as a display device for use by in-vehicle system applications.
[0078] Please see Figure 2 The control method steps displayed on the vehicle map in this application are as follows:
[0079] Step 01: The vehicle system control center map process starts the listening service.
[0080] Once the central control map process starts its listening service, it can receive 3D map rendering resources sent by the vehicle system. This listening service for receiving 3D map rendering resources can be configured to start in the project settings of the Android operating system.
[0081] Step 02: The vehicle system receives the instrument panel map process's cache request for 3D map rendering resources and sends the rendering resources corresponding to the cache request to the central control map process's listening service.
[0082] Rendering the map requires 3D map rendering resources from the processor (CPU) or graphics processing unit (GPU). When the instrument panel map is not displayed on the dashboard, and the user selects to display it, the instrument panel map process needs to request 3D map rendering resource cache from the vehicle system for use in subsequent 3D map rendering. If the user cancels the display of the instrument panel map, the vehicle system needs to release the 3D map rendering resources.
[0083] The 3D map rendering resource cache is a type of display memory where the instrument panel map is rendered directly later. After receiving a cache request from the instrument panel process, the vehicle system packages the corresponding 3D map rendering resources and sends them to the central control map's monitoring service.
[0084] Step 03: Control the central map process to use the rendering resources to start the creation of the virtual display device.
[0085] Upon receiving the rendering resource, the vehicle system's central control map process uses it to call the vehicle system's application programming interface (API) to generate a virtual display. Since the 3D development engine cannot directly receive display content created in the Android system, but can only recognize the concept of a monitor, this application creates a virtual display device as an intermediary, allowing the 3D development engine to recognize this virtual display device as a monitor and use the 3D map rendering resource requested from the system by the instrument cluster map process.
[0086] Step 04: Receive the vehicle system callback notification that the virtual display device has been established, and create an instrument panel map instance.
[0087] When the vehicle system receives a callback notification from the vehicle system that the virtual display device has been established, the central control map process calls the 3D development engine proxy interface to notify the 3D development engine to create an instrument map instance.
[0088] Step 05: Bind the created virtual display device to the instrument map instance.
[0089] After recognizing the virtual display device, the 3D development engine needs to directly render the instrument map instance it creates onto the 3D map rendering resource. Therefore, it's necessary to bind the instrument map instance created by the 3D development engine to the virtual display device to achieve the goal of directly rendering the instrument map instance onto the 3D map rendering resource. The 3D development engine is the kernel, and the instrument map instance is the outer business wrapper. Therefore, binding the virtual display device to the instrument map instance is also binding the virtual display device to the 3D development engine. Specifically, the binding process can involve binding the virtual display device to the rendering controller (camera) of the GameObject to be rendered within the instrument map instance. The rendering controller is a concept that determines the content and location to be rendered on the instrument screen. The rendered object can include elements that may appear in the 3D map, such as lanes, roads, bridges, and water.
[0090] Step 06: Based on the binding relationship, use 3D map rendering resources to complete the map rendering of the instrument map instance and transmit it to the instrument map process for display.
[0091] The in-vehicle system, based on the binding relationship between the virtual display device and the instrument map instance, renders the instrument map instance using 3D map rendering resources, transmits it to the instrument map process, and then displays it on the instrument screen to meet the user's need to display the instrument map on the instrument screen.
[0092] Understandably, the control method of this application, on an in-vehicle platform equipped with a Qualcomm 8155 chip and Android operating system, uses a 3D development engine to render a complex 3D map, and then transmits it to the instrument panel map process for drawing. Since most of the computation is completed on the central control map process, it can both ensure the independence of the rendered 3D map effect and reduce the complexity of the instrument panel map process, thereby improving its stability. Specifically, image-transfer rendering requires packaging and decompressing each frame of data for transmission. This packaging and decompression requires additional processor resources, and this rendering method requires rendering dozens of map frames per second. Therefore, this method causes the instrument panel map process and the central control map process to consume a lot of processor resources. In contrast, this application uses a 3D development engine to render directly on the rendering buffer of the in-vehicle system, without the need for the same data packaging and transmission as the image-transfer rendering method. Therefore, the additional consumption of processor resources is basically zero, and the efficiency is consistent with rendering within the same process. At the same time, the open graphics library shared memory rendering method still requires rendering on the open graphics library, which also increases the complexity of the instrument panel map process and reduces its stability and security. In this application, after the instrument panel map process requests a 3D map rendering resource from the vehicle system, it is shared across processes by the vehicle system with the central control map process. Steps 02, 03, and 04 implement the binding of the rendering controller and the 3D map rendering resource in the underlying driver of the 3D development engine. This ensures that the entire process of rendering the instrument panel map is as efficient as rendering within a single process, eliminating the need for memory copying and resulting in high performance. The instrument panel map process requests a 3D map rendering resource upon startup, and all subsequent calculations are completed within the central control map process. Therefore, even if the central control map process crashes, it only affects the instrument panel map process's partial rendering of the 3D map, demonstrating high stability. This application uses a 3D development engine for 3D development, allowing for easy customization of instrument panel map instances, such as customizing various materials and specializing the rendering controller, resulting in high scalability.
[0093] In this way, the vehicle system controls the central control map process to start a listening service, receive caching requests for 3D map rendering resources from the instrument cluster map process, and send the corresponding rendering resources to the central control map process's listening service. Next, the central control map process uses these rendering resources to initiate the creation of a virtual display device. After receiving a callback notification from the vehicle system indicating that the virtual display device has been created, it creates an instrument cluster map instance. Finally, the created virtual display device is bound to the instrument cluster map instance, and based on the binding relationship, the 3D map rendering resources are used to render the map for the instrument cluster map instance, which is then transmitted to the instrument cluster map process for display. This approach ensures the independence of the 3D map rendering effect while reducing the complexity of displaying the 3D map in the instrument cluster map process, thereby improving the stability of the instrument cluster screen and enhancing driving safety.
[0094] Please see Figure 3 Step 02 includes:
[0095] 020: Receives cache requests for 3D map rendering resources from the instrument map process;
[0096] 021: The rendering resources corresponding to the cached request are sent to the listening service of the central control map process through inter-process communication.
[0097] The processor is used to receive caching requests for 3D map rendering resources from the instrument map process, and to provide a listening service for sending the rendering resources corresponding to the caching requests to the central control map process via inter-process communication.
[0098] Specifically, the vehicle system can send 3D map rendering resources to the central control map process's listening service via inter-process communication (IPC). IPC is a cross-process communication method in the Android operating system. This method allows information to be propagated or exchanged between different processes.
[0099] Thus, after receiving the instrument map process's cache request for 3D map rendering resources, the rendering resources corresponding to the cache request can be sent to the central control map process's listening service through inter-process communication.
[0100] Please see Figure 4 Step 03 includes:
[0101] 030: Controls the central control map process to use this rendering resource to call the vehicle system's application programming interface;
[0102] 031: Use the application programming interface of the vehicle system to initiate the creation of a virtual display device with preset attributes.
[0103] The processor is used to control the central control map process to use the rendering resources to call the application programming interface of the vehicle system, and to use the application programming interface of the vehicle system to start the establishment of a virtual display device with preset attributes.
[0104] Specifically, the 3D development engine identifies virtual display devices with specific attributes. For example, it identifies virtual display devices with a presentation mode attribute. If a virtual display device does not have this attribute, the 3D development engine cannot correctly identify it. Therefore, this application utilizes the 3D development engine and the Android operating system's proxy mechanism to control the central control map process to call the vehicle system's application programming interface (API) using 3D map rendering resources, and then calls this API to initiate the creation of a virtual display device with the presentation mode attribute.
[0105] Thus, after the central control map process uses the rendering resource to call the application programming interface of the vehicle system, it uses the application programming interface of the vehicle system to start the creation of a virtual display device with preset attributes, so that the 3D development engine can correctly identify the created virtual display device.
[0106] Please see Figure 5 The control method also includes the following steps:
[0107] 07: Compile the 3D development engine script of the central control map process into a 3D development engine dynamic link library;
[0108] 08: Call the interface of the 3D development engine dynamic link library to determine the virtual display device to be created.
[0109] The processor is used to compile the 3D development engine script of the central control map process into a 3D development engine dynamic link library, and to use the interface of the 3D development engine dynamic link library to determine the virtual display device to be established.
[0110] Specifically, after the central control map process establishes a virtual display device, it needs to determine which of the existing virtual display devices was established by the central control process. Therefore, after the central control map process establishes a virtual display device, the central control map process's 3D development engine script is compiled into a 3D development engine dynamic link library. Then, the interface of the 3D development engine dynamic link library is called to find the existing virtual display device established by the central control map process.
[0111] In this way, after compiling the 3D development engine script of the central control map process into a 3D development engine dynamic link library, the interface of the 3D development engine dynamic link library is called to determine the established virtual display device, thereby finding the virtual display device established by the central control map process.
[0112] Please see Figure 6 Step 08 includes:
[0113] 080: Call the interface of the 3D development engine's dynamic link library to check the string length of the virtual display device;
[0114] 081: Obtain the number of virtual display devices discovered by the 3D development engine by the string length of the virtual display device;
[0115] 082: If a new virtual display device is added based on the number of virtual display devices, retrieve the last virtual display device in the device list;
[0116] 083: Determine the last virtual display device as the established virtual display device.
[0117] The processor is used to call the interface of the 3D development engine dynamic link library to check the string length of the virtual display device, and to obtain the number of virtual display devices discovered by the 3D development engine through the string length of the virtual display device, and to obtain the last virtual display device in the device list when the number of virtual display devices determines that a new virtual display device has been added, and to determine that the last virtual display device is a newly created virtual display device.
[0118] Specifically, the method of calling the interface of the 3D development engine dynamic link library to determine the established virtual display device includes calling the interface of the 3D development engine dynamic link library to check the string length of the virtual display device, then obtaining the number of virtual display devices discovered by the 3D development engine through the string length of the virtual display device, and when multiple new virtual display devices are found, obtaining the last virtual display device in the device list storing virtual display devices, and determining that the last virtual display device is the virtual display device established by the central control map process.
[0119] Thus, the interface of the 3D development engine's dynamic link library is called to check the string length of the virtual display device, and the number of virtual display devices discovered by the 3D development engine is obtained through the string length of the virtual display device. If a new virtual display device is determined based on the number of virtual display devices, the last virtual display device in the device list is retrieved, and this last virtual display device is identified as the created virtual display device. Therefore, even when multiple new virtual display devices are discovered, the virtual display device created by the central control map process can be found.
[0120] Please see Figure 7 Step 08 includes:
[0121] 084: Call the interface of the 3D development engine's dynamic link library to check the string length of the virtual display device;
[0122] 085: Obtain the number of virtual display devices discovered by the 3D development engine by the string length of the virtual display device;
[0123] 086: If a new virtual display device is added based on the number of virtual display devices, obtain the newly added virtual display device;
[0124] 087: Confirm that the newly added virtual display device is the established virtual display device.
[0125] The processor is used to call the interface of the 3D development engine dynamic link library to check the string length of the virtual display device, and to obtain the number of virtual display devices discovered by the 3D development engine through the string length of the virtual display device, and to obtain the newly added virtual display device when the number of virtual display devices determines that a new virtual display device has been added, and to determine that the newly added virtual display device is an established virtual display device.
[0126] Specifically, the method of calling the interface of the 3D development engine dynamic link library to determine the established virtual display device also includes calling the interface of the 3D development engine dynamic link library to check the string length of the virtual display device, then obtaining the number of virtual display devices discovered by the 3D development engine through the string length of the virtual display device, and when a new virtual display device is discovered, obtaining the new virtual display device and determining that the new virtual display device is a virtual display device established by the central control map process.
[0127] Thus, the interface of the 3D development engine's dynamic link library is called to check the string length of the virtual display device, and the number of virtual display devices discovered by the 3D development engine is obtained through the string length of the virtual display device. If a new virtual display device is added based on the number of virtual display devices, the newly added virtual display device is obtained and confirmed to be a newly created virtual display device. Therefore, when a new virtual display device is added, it can be determined that this newly added virtual display device is a virtual display device created by the central control map process.
[0128] Please see Figure 8 The control method also includes the following steps:
[0129] 09: Based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is pre-set through the application programming interface of the vehicle system.
[0130] The processor is used to pre-set the instrument panel map instance based on the differences between the instrument panel map instance and the central control map instance through the application programming interface of the vehicle system.
[0131] Specifically, since the central control map instance and the instrument panel map instance are two different map instances, the design of the instrument panel map instance must be based on the differences between them to ensure that the rendered 3D map from the instrument panel map instance is more suitable for display on the instrument panel screen. Therefore, this application pre-sets the instrument panel map instance through the vehicle system's application programming interface, making the 3D map displayed on the instrument panel screen more user-friendly and easy to view. There are many methods for pre-setting the instrument panel map instance, such as loading a different rendering texture than the central control screen or setting a different map scale than the 3D map displayed on the central control screen.
[0132] Thus, based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is pre-set through the vehicle system's application programming interface, so that the 3D map obtained after rendering the instrument panel map instance is more suitable for display on the instrument panel screen.
[0133] Please see Figure 9 Step 09 includes:
[0134] 090: Based on the differences between the instrument panel map instance and the central control map instance, set the rendering controller of the instrument panel map instance to a preset height through the application programming interface of the vehicle system.
[0135] The processor is used to set the rendering controller of the instrument map instance to a preset height through the application programming interface of the vehicle system, based on the differences between the instrument map instance and the central control map instance.
[0136] Specifically, the method of setting the instrument panel map instance includes setting the rendering controller of the instrument panel map instance to a preset height through the application programming interface of the vehicle system. The preset height can be set by the developers.
[0137] Understandably, since the display ranges of the instrument panel and the central control screen are different, it is necessary to set the rendering controller of the instrument map instance to a preset height so that the 3D map obtained after rendering the instrument map instance is more suitable for display on the instrument panel.
[0138] Thus, based on the differences between the instrument panel map instance and the central control map instance, the rendering controller of the instrument panel map instance is set to a preset height through the application programming interface of the vehicle system, so that the 3D map obtained after rendering the instrument panel map instance is more suitable for display on the instrument panel screen.
[0139] Please see Figure 10 Step 09 includes:
[0140] 091: Based on the differences between the instrument panel map instance and the central control map instance, load the preset resource configuration file corresponding to the instrument panel map instance through the application programming interface of the vehicle system.
[0141] The processor is used to load the preset resource configuration file corresponding to the instrument map instance through the application programming interface of the vehicle system, based on the differences between the instrument map instance and the central control map instance.
[0142] Specifically, the method for pre-setting the instrument panel map instance includes loading a preset resource configuration file corresponding to the instrument panel map instance through the application programming interface of the vehicle system. The preset resource configuration file can be set by the developers, for example, loading a map color scheme file specifically for the instrument panel, so that the color scheme of the 3D map obtained after rendering the instrument panel map instance is more suitable for display on the instrument panel.
[0143] Thus, based on the differences between the instrument panel map instance and the central control map instance, the preset resource configuration file corresponding to the instrument panel map instance is loaded through the application programming interface of the vehicle system, so that the 3D map obtained after rendering the instrument panel map instance has a color scheme that is more suitable for display on the instrument panel screen.
[0144] Please see Figure 11 Step 09 includes:
[0145] 092: Based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is locked to the preset position on the instrument panel display interface of the vehicle system through the application programming interface of the vehicle system.
[0146] The processor is used to control the instrument map instance to lock to a preset position on the instrument display interface of the vehicle system through the application programming interface of the vehicle system, based on the differences between the instrument map instance and the central control map instance.
[0147] Specifically, the method for pre-setting the instrument panel map instance includes controlling the instrument panel map instance to lock to a preset position on the instrument panel display interface of the vehicle system via the application programming interface (API) of the vehicle system. The preset position can be set by the developers; for example, when a vehicle model is displayed on the instrument panel, the map instance is locked around the vehicle model. This allows the 3D map obtained after rendering the instrument panel map instance to surround the vehicle model.
[0148] Thus, based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is locked to a preset position on the instrument panel display interface via the vehicle system's application programming interface. This allows the rendered 3D map from the instrument panel map instance to surround the vehicle model.
[0149] The control method described in this application can be implemented through code compilation. The following example demonstrates some steps of the compilation process using C#:
[0150] In step 01:
[0151]
[0152] In step 02:
[0153]
[0154] In step 03:
[0155]
[0156] In step 04:
[0157]
[0158] In step 06:
[0159]
[0160] Please see Figure 12 This application also provides a non-volatile computer-readable storage medium 100 containing a computer program 101. When the computer program 101 is executed by one or more processors 200, the one or more processors 200 perform the control method of any of the above embodiments.
[0161] In the description of this specification, the references to terms such as "certain embodiments," "in one example," "exemplarily," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, users skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0162] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which this application pertains.
[0163] Although this application has been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Users of ordinary skills in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A control method for displaying a vehicle map, characterized in that, The method includes: Start the monitoring service in the central control map process; Receive the instrument map process's cache request for 3D map rendering resources, and send the rendering resources corresponding to the cache request to the central control map process's listening service; The central control map process uses this rendering resource to initiate the creation of a virtual display device; Receive the vehicle system callback notification that the virtual display device has been established, and create an instrument panel map instance; Bind the created virtual display device to the instrument map instance; Based on the binding relationship, the 3D map rendering resources are used to complete the map rendering of the instrument map instance, and then transmitted to the instrument map process for display. Wherein, after the central control map process uses the rendering resources to initiate the establishment of the virtual display device, the method includes: Compile the 3D development engine script of the central control map process into a 3D development engine dynamic link library; The interface of the 3D development engine's dynamic link library is called to determine the virtual display device to be created.
2. The control method according to claim 1, characterized in that, The step of receiving the instrument map process's cache request for 3D map rendering resources and sending the rendering resources corresponding to the cache request to the central control map process's listening service includes: Receive cache requests for 3D map rendering resources from the instrument map process; The rendering resources corresponding to the cached request are sent to the listening service of the central map process through inter-process communication.
3. The control method according to claim 1, characterized in that, The central control map process uses rendering resources to initiate the establishment of a virtual display device, including: The central control map process uses this rendering resource to call the application programming interface of the vehicle system; The application programming interface that calls the vehicle system is used to initiate the creation of a virtual display device with preset attributes.
4. The control method according to claim 1, characterized in that, The process of calling the interface of the 3D development engine's dynamic link library to determine the established virtual display device includes: The interface of the 3D development engine's dynamic link library is called to check the string length of the virtual display device; The number of virtual display devices discovered by the 3D development engine can be obtained by measuring the string length of the virtual display device. If a new virtual display device is added based on the number of virtual display devices, retrieve the last virtual display device in the device list. The last virtual display device is identified as the established virtual display device.
5. The control method according to claim 1, characterized in that, The interface for calling the 3D development engine's dynamic link library determines the virtual display device to be created from the device list, including: The interface of the 3D development engine's dynamic link library is called to check the string length of the virtual display device; The number of virtual display devices discovered by the 3D development engine can be obtained by measuring the string length of the virtual display device. If a new virtual display device is added based on the number of virtual display devices, then obtain the newly added virtual display device. The newly added virtual display device is confirmed as the established virtual display device.
6. The control method according to claim 1, characterized in that, After binding the established virtual display device with the instrument map instance, the process includes: Based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is pre-set through the application programming interface of the vehicle system.
7. The control method according to claim 6, characterized in that, The step of pre-setting the instrument panel map instance based on the differences between the instrument panel map instance and the central control map instance through the vehicle system's application programming interface includes: Based on the differences between the instrument panel map instance and the central control map instance, the rendering controller of the instrument panel map instance is set to a preset height through the application programming interface of the vehicle system.
8. The control method according to claim 6, characterized in that, The step of pre-setting the instrument panel map instance based on the differences between the instrument panel map instance and the central control map instance through the vehicle system's application programming interface includes: Based on the differences between the instrument panel map instance and the central control map instance, the preset resource configuration file corresponding to the instrument panel map instance is loaded through the application programming interface of the vehicle system.
9. The control method according to claim 6, characterized in that, The step of pre-setting the instrument panel map instance based on the differences between the instrument panel map instance and the central control map instance through the vehicle system's application programming interface includes: Based on the differences between the instrument panel map instance and the central control map instance, the instrument panel map instance is locked to a preset position on the instrument panel display interface of the vehicle system via the application programming interface of the vehicle system.
10. A vehicle, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, it implements the control method according to any one of claims 1-9.
11. A non-volatile computer-readable storage medium for computer programs, characterized in that, When the computer program is executed by one or more processors, it implements the control method according to any one of claims 1-9.
Citation Information
Patent Citations
Map information display method and device, computer device, and storage medium
CN109388467A
Vehicle-mounted desktop level navigation and double-screen interaction method
CN111488093A