A real-time route location rendering optimization method, device, equipment and storage medium

By repeatedly obtaining and calculating the straight-line distance of the vehicle's position coordinates in the autonomous driving cloud control platform and selecting the shortest distance to update the cursor position, the problem of deviation in the vehicle's real-time route drawing is solved, achieving more accurate and efficient route rendering.

CN114241082BActive Publication Date: 2025-09-09GUANGZHOU WERIDE TECH LTD CO
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111438351.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2025-09-09
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

In the autonomous driving cloud control and dispatching platform, the frequency fluctuation and position drift of the vehicle's real-time position reporting points cause the real-time vehicle route drawing to deviate from the actual route.

Method used

By obtaining the position coordinates of the target object corresponding to the task coordinates at least three times in a preset route consisting of several task coordinates of the target object, calculating the straight-line distance, selecting the task coordinates with the shortest straight-line distance as the current cursor position and updating it, and rendering the route position until the drawn route map includes the end point of the preset route.

Benefits of technology

It reduces route rendering deviations caused by abnormal data, improves the accuracy and efficiency of real-time vehicle route drawing, and ensures that the route is more consistent with the actual route.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114241082B_ABST
    Figure CN114241082B_ABST
Patent Text Reader

Abstract

The present application relates to a real-time route position rendering optimization method, device, equipment and storage medium. The method includes obtaining the position coordinates of the target object corresponding to the task coordinates at least three times in sequence in a preset route consisting of several task coordinates of the target object as the current cursor position; each time the current cursor position is obtained, the straight-line distance between the current cursor position and the corresponding task coordinates and the next task coordinates is calculated; based on the calculated straight-line distance, the task coordinate corresponding to the shortest straight-line distance is selected as the current cursor position and updated; based on the updated current cursor position, the route position is rendered using a line drawing method to obtain the current route map; the above steps are repeated until the drawn route map includes the end point of the preset route. This solves the problem that the existing vehicle real-time route drawing method deviates from the actual route. The present application has the effect of making the vehicle real-time route drawing more consistent with the actual route.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of route rendering technology, and in particular to a real-time route location rendering optimization method, apparatus, device and storage medium. Background Art

[0002] Currently, in the autonomous driving cloud control and dispatching platform, it is often necessary to draw real-time vehicle routes based on the vehicle's real-time location reporting points.

[0003] However, due to the frequency of vehicle real-time position reporting points and the possibility of vehicle position fluctuation or position drift, the actual real-time vehicle route drawing often deviates from the route.

[0004] With respect to the above-mentioned related technologies, the inventor believes that the existing method for drawing a real-time vehicle route has the defect of deviating from the actual route. Summary of the Invention

[0005] In order to make the real-time route drawing of a vehicle more consistent with the actual route, the present application provides a real-time route position rendering optimization method, device, equipment and storage medium.

[0006] In a first aspect, the present application provides a real-time route position rendering optimization method, which has the characteristic of making the real-time route drawing of the vehicle more consistent with the actual route.

[0007] This application is achieved through the following technical solutions:

[0008] A real-time route location rendering optimization method comprises the following steps:

[0009] In a preset route of a target object including a plurality of task coordinates, obtaining the position coordinates of the target object corresponding to the task coordinates at least three times in sequence as the current cursor position;

[0010] After obtaining the current cursor position each time, respectively calculating the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate;

[0011] Based on the calculated straight-line distance, the task coordinate corresponding to the shortest straight-line distance is selected as the current cursor position and updated;

[0012] Based on the updated current cursor position, the route position is rendered using the line drawing method to obtain the current route map;

[0013] Repeat the above steps until the drawn route map includes the end point of the preset route.

[0014] By adopting the above technical solution, in a preset route consisting of several task coordinates of a target object, the cloud control platform sequentially obtains the position coordinates of the target object corresponding to the task coordinates from the vehicle side as the current cursor position, and calculates the straight-line distance between the current cursor position and the corresponding task coordinates and the next task coordinates. Since the shorter the straight-line distance, the more accurate the coordinate position, the task coordinate corresponding to the shortest straight-line distance is selected based on the calculated straight-line distance as the current cursor position and updated to achieve the purpose of real-time route position rendering; at the same time, the position coordinates of the target object are obtained at least 3 times, and the current cursor position is calculated after each acquisition. The straight-line distance between the task coordinates corresponding to the set distance and the next task coordinates is calculated. Based on the calculated straight-line distance, the task coordinates corresponding to the shortest straight-line distance are finally selected from all the calculated straight-line distances as the current cursor position and updated to solve the problem of local fluctuation or position drift of the position data, reducing the large deviation in the rendering route caused by abnormal data and affecting the final route rendering, so that the real-time route drawing of the vehicle is more consistent with the actual route; based on the updated current cursor position, the route position is rendered using the line drawing method to obtain the current route map, and the above steps are repeated until the drawn route map contains the end point of the preset route, that is, the route drawing is completed.

[0015] In a preferred example, the present application may be further configured as follows: before the step of sequentially acquiring the position coordinates of the target object corresponding to the task coordinates at least three times along a route connected by a plurality of task coordinates of the preset target object, the following steps may be further included:

[0016] Based on a preset route consisting of several task coordinates of a target object, the position coordinates of the target object corresponding to the task coordinates are obtained for the first time as the current cursor position;

[0017] First, determine whether the current cursor position is a normal position coordinate;

[0018] When the current cursor position is an abnormal position coordinate, the position coordinate of the target object is acquired at least three times.

[0019] By adopting the above technical solution, based on a preset target object's route consisting of several task coordinates, after obtaining the position coordinates of the target object corresponding to the task coordinates for the first time, it is first determined whether the current cursor position is a normal position coordinate to determine whether the position data has local fluctuations or position drift problems; if the current cursor position is an abnormal position coordinate, the position coordinates of the target object are obtained at least three times to solve the problem of local fluctuations or position drift in the position data, reducing the large deviation in the drawing and rendering route caused by abnormal data and affecting the final route rendering and drawing, and the drawing accuracy is higher, so that the real-time route drawing of the vehicle is more consistent with the actual route; at the same time, the position coordinates of the target object are only obtained at least three times when the current cursor position is an abnormal position coordinate, that is, only once when the current cursor position is a normal position coordinate, which greatly improves the data processing efficiency during real-time route position rendering optimization.

[0020] In a preferred example, the present application can be further configured to include the following steps:

[0021] When the current cursor position is a normal position coordinate, the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate is calculated and compared respectively;

[0022] When the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, the corresponding task coordinate is used as the current cursor position.

[0023] By adopting the above technical solution, if the current cursor position is the normal position coordinate, the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate is calculated and compared respectively; because the shorter the straight-line distance, the more accurate the coordinate position, so when the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, the corresponding task coordinate is used as the current cursor position and updated to achieve the purpose of real-time route position rendering.

[0024] In a preferred example, the present application can be further configured to include the following steps:

[0025] When the straight-line distance between the current cursor position and the corresponding task coordinate is greater than the straight-line distance between the current cursor position and the next task coordinate, the next task coordinate is used as the current cursor position.

[0026] By adopting the above technical solution, if the straight-line distance between the current cursor position and the corresponding task coordinate is greater than the straight-line distance between the current cursor position and the next task coordinate, the next task coordinate is used as the current cursor position, and the more accurate the determined coordinate position is, the more consistent the real-time route drawing of the vehicle is with the actual route.

[0027] In a preferred example, the present application can be further configured to include the following steps:

[0028] When the current cursor position is a normal position coordinate and the last acquired position coordinate of the target object corresponding to the task coordinate is an abnormal position coordinate, respectively calculating and comparing the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate;

[0029] When the straight-line distance between the current cursor position and the corresponding task coordinates is less than the straight-line distance between the current cursor position and the next task coordinates, the route information is not updated.

[0030] By adopting the above technical solution, if the current cursor position is a normal position coordinate and the position coordinate of the target object corresponding to the task coordinate obtained last time is an abnormal position coordinate, at the same time, the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, that is, the accuracy of the current cursor position is more accurate, and the route information is not updated at this time.

[0031] In a preferred example, the present application can be further configured to include the following steps:

[0032] When the current cursor position is a normal position coordinate and the position coordinate of the target object corresponding to the task coordinate obtained last time is a normal position coordinate, respectively calculating the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate and comparing them;

[0033] When the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, the corresponding task coordinate is used as the current cursor position.

[0034] By adopting the above technical solution, if the current cursor position is the normal position coordinate and the position coordinate of the target object corresponding to the task coordinate obtained last time is the normal position coordinate, at the same time, the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, then the corresponding task coordinate is used as the current cursor position, and the route information is updated to achieve the purpose of real-time route position rendering.

[0035] In a preferred example, the present application may be further configured as follows: in a route of a preset target object consisting of a plurality of task coordinates, the task coordinates are distributed in a point group.

[0036] By adopting the above technical solution, the task coordinates are distributed in a point group, that is, any task coordinate is a point set, so that the distribution between adjacent task coordinates is denser, the position coordinate accuracy is higher, and the real-time vehicle route drawing is more consistent with the actual route.

[0037] In a preferred example, the present application can be further configured as follows: the route consisting of a plurality of task coordinates of the preset target object is a task route map indicated by the user on the map board that the vehicle needs to travel.

[0038] By adopting the above technical solution, the user indicates the task route map that the vehicle needs to travel on the map drawing board, that is, a route consisting of several task coordinates of the preset target object is formed, which is flexible to set up.

[0039] In a preferred example, the present application can be further configured to: visualize the roadmap.

[0040] By adopting the above technical solution, the route map is visualized on the cloud control platform, so that the real-time route to be rendered can be fed back and presented on the cloud control platform, which is intuitive and convenient for management personnel to monitor.

[0041] On the second aspect, the present application provides a real-time route position rendering optimization method, which has the characteristic of making the real-time route drawing of the vehicle more consistent with the actual route.

[0042] This application is achieved through the following technical solutions:

[0043] A real-time route location rendering optimization method comprises the following steps:

[0044] Obtain the position coordinates of the target object corresponding to the task coordinates at least three times in sequence as the current cursor position;

[0045] In a preset route of a target object consisting of several task coordinates, each time after obtaining the current cursor position, respectively calculating the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate;

[0046] Based on the calculated straight-line distance, the task coordinate corresponding to the shortest straight-line distance is selected as the current cursor position and updated;

[0047] Repeat the above steps until all the location data for drawing the route map are obtained;

[0048] The obtained location data is uploaded to the cloud control platform and a route map is drawn and rendered.

[0049] By adopting the above technical solution, all the location data obtained and processed on the vehicle side for drawing the route map is uploaded to the cloud control platform, and then the cloud control platform draws and renders the route map based on the obtained location data to present it to customers for viewing. In practice, this solution has better performance when executed on the vehicle side.

[0050] On the third aspect, the present application provides a real-time route position rendering optimization method, which has the characteristic of making the real-time route drawing of the vehicle more consistent with the actual route.

[0051] This application is achieved through the following technical solutions:

[0052] A real-time route location rendering optimization method comprises the following steps:

[0053] In a preset route of a target object including several task coordinates, the control vehicle obtains the position coordinates of the target object corresponding to the task coordinates at least three times in sequence;

[0054] The obtained position coordinates corresponding to the task coordinates are uploaded to the cloud control platform and used as the current cursor position;

[0055] In a preset route of a target object consisting of several task coordinates, the cloud control platform calculates the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate each time after obtaining the current cursor position;

[0056] The cloud control platform selects the task coordinates corresponding to the shortest straight-line distance based on the calculated straight-line distance as the current cursor position and updates it;

[0057] The cloud control platform uses the line drawing method to render the route position based on the updated current cursor position to obtain the current route map;

[0058] The cloud control platform repeats the above steps until the drawn route map includes the end point of the preset route.

[0059] In a fourth aspect, the present application provides a real-time route position rendering optimization device, which has the characteristic of making the real-time route drawing of the vehicle more consistent with the actual route.

[0060] This application is achieved through the following technical solutions:

[0061] A real-time route position rendering optimization device, comprising:

[0062] The vehicle-mounted module is used to obtain the location coordinates of the target object and report them;

[0063] The cloud control platform is used to preset a route consisting of several task coordinates of the target object and receive the location coordinates reported by the vehicle-mounted module.

[0064] By adopting the above technical solution, the on-board module obtains the position coordinates of the target object and reports them to provide real-time position coordinate information for the real-time route drawing of the target object; the cloud control platform executes the above-mentioned real-time route position rendering optimization method based on the preset route of the target object consisting of several task coordinates and the position coordinates reported by the received on-board module to solve the problem of local fluctuation or position drift of position data, reduce the large deviation in the rendering route caused by abnormal data and affect the final route rendering, so that the real-time route drawing of the vehicle is more consistent with the actual route.

[0065] In a fifth aspect, the present application provides a device having the characteristic of making the real-time route drawing of a vehicle more consistent with the actual route.

[0066] This application is achieved through the following technical solutions:

[0067] A device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned real-time route location rendering optimization method are implemented.

[0068] In a sixth aspect, the present application provides a storage medium having the characteristic of making the real-time route drawing of the vehicle more consistent with the actual route.

[0069] This application is achieved through the following technical solutions:

[0070] A storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned real-time route position rendering optimization method.

[0071] In summary, this application includes at least one of the following beneficial technical effects:

[0072] 1. In a preset route consisting of several task coordinates of a target object, the cloud control platform sequentially obtains the position coordinates of the target object corresponding to the task coordinates from the vehicle side as the current cursor position, and calculates the straight-line distance between the current cursor position and the corresponding task coordinates and the next task coordinates. Since the shorter the straight-line distance, the more accurate the coordinate position, the task coordinate corresponding to the shortest straight-line distance is selected based on the calculated straight-line distance as the current cursor position and updated to achieve the purpose of real-time route position rendering; at the same time, the position coordinates of the target object are obtained at least 3 times, and finally, among all the calculated straight-line distances, the task coordinate corresponding to the shortest straight-line distance is selected as the current cursor position and updated to solve the problem of local fluctuation or position drift of the position data, reducing the large deviation in the rendering route caused by abnormal data and affecting the final route rendering, so that the real-time vehicle route rendering is more consistent with the actual route;

[0073] 2. If the current cursor position is abnormal, the target object's position coordinates are acquired at least three times to address local fluctuations or drift in position data. This reduces the impact of large deviations in route rendering caused by abnormal data, which can affect the final route rendering. This results in higher rendering accuracy, making the vehicle's real-time route rendering more consistent with the actual route. Furthermore, the target object's position coordinates are acquired at least three times only when the current cursor position is abnormal, compared to only once when the current cursor position is normal. This significantly improves data processing efficiency during real-time route position rendering optimization.

[0074] 3. If the current cursor position is the normal position coordinate, calculate the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate and compare them. Since the shorter the straight-line distance, the more accurate the coordinate position, if the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, use the corresponding task coordinate as the current cursor position and update it. If the straight-line distance between the current cursor position and the corresponding task coordinate is greater than the straight-line distance between the current cursor position and the next task coordinate, use the next task coordinate as the current cursor position. This achieves the purpose of real-time route position rendering.

[0075] 4. If the current cursor position is a normal position coordinate and the position coordinates of the target object corresponding to the task coordinates obtained last time are abnormal position coordinates, and the straight-line distance between the current cursor position and the corresponding task coordinates is less than the straight-line distance between the current cursor position and the next task coordinates, that is, the accuracy of the current cursor position is relatively accurate, the route information will not be updated at this time; if the current cursor position is a normal position coordinate and the position coordinates of the target object corresponding to the task coordinates obtained last time are normal position coordinates, the corresponding task coordinates will be used as the current cursor position, and the route information will be updated to achieve the purpose of real-time route position rendering;

[0076] 5. The task coordinates are distributed in a point cluster, that is, any task coordinate is a point set. The denser the distribution between adjacent task coordinates, the higher the accuracy of the position coordinates, and the more consistent the real-time route drawing of the vehicle is with the actual route;

[0077] 6. All the location data obtained and processed by this solution on the vehicle side for drawing the route map is uploaded to the cloud control platform, and then the cloud control platform draws and renders the route map based on the obtained location data to present it to the customer. In practice, this solution has better performance when executed on the vehicle side. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1This is a flow chart of a real-time route position rendering optimization method according to one embodiment of the present application when the current cursor position is an abnormal position coordinate.

[0079] Figure 2 This is a flow chart of a real-time route position rendering optimization method according to one embodiment of the present application when the current cursor position is a normal position coordinate.

[0080] Figure 3 This is a schematic diagram of obtaining the position coordinates of the target object for the first time.

[0081] Figure 4 This is a schematic diagram of obtaining the position coordinates of the target object for the second time.

[0082] Figure 5 It is a schematic diagram showing that the acquired position coordinates of the target object have local fluctuations or drift problems.

[0083] Figure 6 It is a schematic diagram of obtaining the position coordinates of the target object for the second time after a local fluctuation or drift problem occurs.

[0084] Figure 7 It is a schematic diagram of obtaining the position coordinates of the target object for the third time after a local fluctuation or drift problem occurs.

[0085] Figure 8 This is a schematic diagram of obtaining the position coordinates of the target object for the fourth time.

[0086] Figure 9 This is a structural block diagram of a real-time route location rendering optimization device according to one embodiment of the present application. DETAILED DESCRIPTION

[0087] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make non-creative modifications to the present embodiment as needed, but as long as they are within the scope of the claims of the present application, they are protected by the patent law.

[0088] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0089] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0090] The embodiments of the present application are described in further detail below with reference to the accompanying drawings.

[0091] Reference Figure 1 , an embodiment of the present application provides a real-time route location rendering optimization method, and the main steps of the method are described as follows.

[0092] S01: In a preset route of a target object including several task coordinates, the position coordinates of the target object corresponding to the task coordinates are obtained at least three times in sequence as the current cursor position;

[0093] S011: After obtaining the current cursor position each time, calculate the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate;

[0094] S012: Based on the calculated straight-line distance, select the task coordinate corresponding to the shortest straight-line distance as the current cursor position and update it;

[0095] S3: Based on the updated current cursor position, the route position is rendered using a line drawing method to obtain the current route map;

[0096] S4: Repeat the above steps until the drawn route map includes the end point of the preset route.

[0097] Furthermore, before the step of S01: obtaining the position coordinates of the target object corresponding to the task coordinates at least three times in a preset route including a plurality of task coordinates of the target object, the method further includes the following steps:

[0098] S1: Based on a preset route consisting of several task coordinates of a target object, first obtain the position coordinates of the target object corresponding to the task coordinates as the current cursor position;

[0099] S2: Determine whether the current cursor position is the normal position coordinate;

[0100] If the current cursor position is an abnormal position coordinate, the position coordinate of the target object is obtained at least three times in sequence.

[0101] Reference Figure 2 , further, S02: if the current cursor position is the normal position coordinate, then respectively calculate the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate and compare them;

[0102] S021: Determine whether the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate;

[0103] S022: If the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, the corresponding task coordinate is used as the current cursor position.

[0104] S023: If the straight-line distance between the current cursor position and the corresponding task coordinate is greater than the straight-line distance between the current cursor position and the next task coordinate, the next task coordinate is used as the current cursor position.

[0105] Further, S022: If the straight-line distance between the current cursor position and the corresponding task coordinates is less than the straight-line distance between the current cursor position and the next task coordinates, before taking the corresponding task coordinates as the current cursor position, first determine whether the position coordinates of the target object corresponding to the task coordinates obtained last time are abnormal position coordinates; if the position coordinates of the target object corresponding to the task coordinates obtained last time are abnormal position coordinates, the route information will not be updated.

[0106] If the position coordinates of the target object obtained last time that correspond to the task coordinates are normal position coordinates, the corresponding task coordinates are used as the current cursor position, and the route information is updated.

[0107] Specifically, within a pre-defined target object's route, which consists of several connected task coordinates, the task coordinates are distributed as a point cloud. If more than one task coordinate is obtained, it forms a point cloud cluster, meaning any task coordinate is a collection of points. This allows for a denser distribution of adjacent task coordinates, resulting in higher positional accuracy and a more accurate real-time route mapping for the vehicle.

[0108] In this embodiment, the acquired point cloud is pre-processed using an existing point cloud processing method so that the point set of the task coordinates is abstracted into a point coordinate, which will not be described in detail here.

[0109] Reference Figure 3 , several ideal coordinates are preset, including the starting point task coordinates, point A task coordinates, point B task coordinates, point C task coordinates, point D task coordinates, point E task coordinates, point F task coordinates and end point task coordinates, and several task coordinates are connected in sequence to form a route for the target object.

[0110] Based on the preset route containing the target object, the position coordinates of the target object corresponding to the task coordinates are obtained in sequence, such as obtaining the position coordinates of point P1 corresponding to the starting task coordinates as the current cursor position, and determining whether the current cursor position is the normal position coordinate.

[0111] Since the position coordinates of point P1 are judged to be normal position coordinates, the straight-line distances between the position coordinates of point P1 and the starting task coordinates and the task coordinates of point A are calculated and compared.

[0112] If the straight-line distance between the position coordinates of point P1 and the starting task coordinates is greater than the straight-line distance between the position coordinates of point P1 and the task coordinates of point A, the task coordinates of point A are used as the current cursor position, and a route is drawn from the starting task coordinates to the task coordinates of point A.

[0113] Next, refer to Figure 4 , obtain the position coordinates of the target object corresponding to the second task coordinates, such as, obtain the position coordinates of point P2 corresponding to the task coordinates of point A as the current cursor position, and determine whether the current cursor position is the normal position coordinates.

[0114] Since the position coordinates of point P2 are judged to be normal position coordinates, the straight-line distances between the position coordinates of point P2 and the task coordinates of point A and point B are calculated and compared.

[0115] If the straight-line distance between the position coordinates of point P2 and the task coordinates of point A is greater than the straight-line distance between the position coordinates of point P2 and the task coordinates of point B, the task coordinates of point B are used as the current cursor position, and the route from the task coordinates of point A to the task coordinates of point B is continued to be drawn.

[0116] Next, refer to Figure 5 , obtain the position coordinates of the target object corresponding to the third task coordinates, such as, obtain the position coordinates of point P3 corresponding to the task coordinates of point B as the current cursor position, and determine whether the current cursor position is the normal position coordinates.

[0117] Because the position coordinates of point P3 are determined to be abnormal, i.e., the position coordinates of point P3 have experienced a transient reported offset, exhibiting certain position fluctuations or drift, the position coordinates of point P3 are acquired at least three times in sequence to address the issue of local fluctuations or drift in the position data and reduce the impact of large deviations in the rendering route caused by abnormal data, which could affect the final route rendering. In this embodiment, when local fluctuations or drift in the position data occur, the position coordinate data is acquired three times in sequence.

[0118] After obtaining the position coordinates of point P3, use the position coordinates of point P3 as the current cursor position, calculate the straight-line distances between the current cursor position and the task coordinates of point B and point C, and record them.

[0119] Next, refer to Figure 6 , obtain the position coordinates of point P3 corresponding to the task coordinates of point C in turn as the current cursor position, calculate the straight-line distance between the current cursor position and the task coordinates of point C and point D again, and record them.

[0120] Secondly, refer to Figure 7 , obtain the position coordinates of point P3 corresponding to the task coordinates of point D in turn as the current cursor position, calculate the straight-line distance between the current cursor position and the task coordinates of point D and point E again, and record them.

[0121] Finally, based on the calculated straight-line distance, the task coordinates corresponding to the shortest straight-line distance are selected as the current cursor position and updated.

[0122] Reference Figure 5-Figure 7 In this embodiment, taking the position coordinates of point P3 as an example, the calculated straight-line distances include the straight-line distances between the first point P3 position coordinate and the task coordinates of point B, the straight-line distance between the first point P3 position coordinate and the task coordinates of point C, the straight-line distance between the second point P3 position coordinate and the task coordinates of point C, the straight-line distance between the second point P3 position coordinate and the task coordinates of point D, the straight-line distance between the third point P3 position coordinate and the task coordinates of point D, and the straight-line distance between the third point P3 position coordinate and the task coordinates of point E. After comparison, the shortest straight-line distance, i.e., the straight-line distance between the third point P3 position coordinate and the task coordinates of point E, is selected. The task coordinates of point E are used as the current cursor position of the point P3 position coordinates. Even if the point P3 position coordinates are updated to the task coordinates of point E, the drawn traveled route information is updated from the task coordinates of point B to the task coordinates of point E.

[0123] Reference Figure 8 , obtain the position coordinates of the target object corresponding to the sixth task coordinates, such as, obtain the position coordinates of point P4 corresponding to the task coordinates of point E as the current cursor position, and determine whether the current cursor position is a normal position coordinate.

[0124] Since the position coordinates of point P4 are judged to be normal, that is, the position coordinates of point P4 are restored to normal, the judgment is made again based on the current cursor position, and the straight-line distances between the position coordinates of point P4 and the task coordinates of point E and point F are calculated and compared.

[0125] When the calculated straight-line distance between the P4 point position coordinate and the E point task coordinate is less than the straight-line distance between the P4 point position coordinate and the F point task coordinate, and the last acquired P3 point position coordinate corresponding to the task coordinate of the target object is an abnormal position coordinate, the E point task coordinate is used as the current cursor position, and the route information is not updated at this time.

[0126] Based on the updated current cursor position, a line drawing method is used to render the route position, resulting in the current route map. The above steps are repeated until the drawn route map includes the destination of the preset route. In this embodiment, the line drawing method can be a polyline() function or a line() function, so that the current cursor position of the current update is sequentially connected to the current cursor position of the next update, ultimately forming a route map including the destination.

[0127] The route map can be displayed visually, and the rendered real-time route can be fed back and presented on the cloud control platform, which is intuitive and convenient for management personnel to monitor.

[0128] Furthermore, the preset target object's route consisting of several task coordinates is a task route map indicated by the user on the map board that the vehicle needs to travel through, and the setting is flexible.

[0129] Furthermore, a real-time route position rendering optimization method is provided, which is based on a preset target object's route consisting of several task coordinates. The position coordinates of the target object corresponding to the task coordinates are first obtained as the current cursor position, and then it is determined whether the current cursor position is a normal position coordinate.

[0130] If not, the position coordinates of the target object corresponding to the task coordinates are obtained at least three times in sequence as the current cursor position, and after each acquisition of the position coordinates, the straight-line distance between the current cursor position and the corresponding task coordinates and the next task coordinates is calculated.

[0131] Because the shorter the straight-line distance, the more accurate the coordinate position, the task coordinate corresponding to the shortest straight-line distance among all the calculated straight-line distances is selected as the current cursor position and updated to solve the problem of local fluctuation or position drift of position data. This reduces the large deviation in the rendering route caused by abnormal data, which affects the final route rendering and makes the real-time vehicle route drawing more consistent with the actual route. At the same time, the position coordinates of the target object are only acquired at least three times when the current cursor position is an abnormal position coordinate, that is, only once when the current cursor position is a normal position coordinate, which greatly improves the data processing efficiency during real-time route position rendering optimization.

[0132] If the current cursor position is a normal position coordinate, the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate is calculated and compared.

[0133] Since the shorter the straight-line distance, the more accurate the coordinate position, when the straight-line distance between the current cursor position and the corresponding task coordinates is less than the straight-line distance between the current cursor position and the next task coordinates, and the position coordinates of the target object corresponding to the task coordinates obtained last time are abnormal position coordinates, that is, the accuracy of the current cursor position is relatively accurate, the route information will not be updated at this time.

[0134] When the straight-line distance between the current cursor position and the corresponding task coordinates is less than the straight-line distance between the current cursor position and the next task coordinates, and the position coordinates of the target object corresponding to the task coordinates obtained last time are normal position coordinates, the corresponding task coordinates are used as the current cursor position.

[0135] If the current cursor position is the normal position coordinate and the straight-line distance between the current cursor position and the corresponding task coordinate is greater than the straight-line distance between the current cursor position and the next task coordinate, then the next task coordinate is used as the current cursor position, and the route information is updated to achieve the purpose of real-time route position rendering.

[0136] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0137] Reference Figure 9 The present application also provides a real-time route location rendering optimization device, which corresponds to the real-time route location rendering optimization method in the above embodiment. The real-time route location rendering optimization device includes:

[0138] The vehicle-mounted module is used to obtain the location coordinates of the target object and report them. In this embodiment, the vehicle-mounted module can be a local host on the vehicle side, which obtains the location point cluster of the vehicle through the local host on the vehicle side and reports it.

[0139] The cloud control platform is used to preset a route consisting of several task coordinates of the target object and receive the location coordinates reported by the vehicle module.

[0140] Furthermore, the cloud control platform receives the location coordinates reported by the on-board module, and after executing the above-mentioned real-time route location rendering optimization method, the real-time route map is displayed on the cloud control platform to render the route in real time, which is conducive to real-time route monitoring, path finding, and cruising routes, etc. For the specific definition of a real-time route location rendering optimization device, please refer to the definition of a real-time route location rendering optimization method above, which will not be repeated here. The various modules in the above-mentioned real-time route location rendering optimization device can be fully or partially implemented by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0141] Furthermore, a vehicle-mounted module of a real-time route position rendering optimization device obtains and reports the position coordinates of a target object to provide real-time position coordinate information for the real-time route drawing of the target object; the cloud control platform executes the above-mentioned real-time route position rendering optimization method based on a preset route consisting of several task coordinates of the target object and the position coordinates reported by the received vehicle-mounted module to solve the problem of local fluctuation or position drift of position data, reduce the large deviation in the rendering route caused by abnormal data and affect the final route rendering, so that the real-time route drawing of the vehicle is more consistent with the actual route; at the same time, the drawn real-time route map is displayed on the cloud control platform to render the route in real time, which is conducive to real-time route monitoring, path finding, and cruising route, etc.

[0142] An embodiment of the present application also provides a real-time route location rendering optimization method, and the main steps of the method are described as follows.

[0143] Obtain the position coordinates of the target object corresponding to the task coordinates at least three times in sequence as the current cursor position;

[0144] In a route consisting of several task coordinates of a preset target object, each time the current cursor position is obtained, the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate is calculated;

[0145] Based on the calculated straight-line distance, the task coordinate corresponding to the shortest straight-line distance is selected as the current cursor position and updated;

[0146] Repeat the above steps until all the location data for drawing the route map are obtained;

[0147] The obtained location data is uploaded to the cloud control platform, and the route map is drawn and rendered. In addition, all the location data for drawing the route map obtained and processed by this solution on the vehicle side is uploaded to the cloud control platform, which draws and renders the route map for presentation to the customer, achieving better execution results.

[0148] An embodiment of the present application also provides a real-time route location rendering optimization method, and the main steps of the method are described as follows.

[0149] In a preset route of a target object including several task coordinates, the control vehicle obtains the position coordinates of the target object corresponding to the task coordinates at least three times in sequence;

[0150] The obtained position coordinates corresponding to the task coordinates are uploaded to the cloud control platform and used as the current cursor position;

[0151] In a preset route consisting of several task coordinates of a target object, the cloud control platform calculates the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate each time it obtains the current cursor position;

[0152] Based on the calculated straight-line distance, the cloud control platform selects the task coordinates corresponding to the shortest straight-line distance as the current cursor position and updates it;

[0153] The cloud control platform uses the line drawing method to render the route position based on the updated current cursor position to obtain the current route map;

[0154] The cloud control platform repeats the above steps until the drawn route map includes the end point of the preset route.

[0155] That is, this solution can be applied to cloud control platforms for street sweepers, vehicle scheduling cloud control platforms, and logistics scheduling cloud control platforms, etc.

[0156] In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When executed by the processor, the computer program implements a real-time route location rendering optimization method.

[0157] In one embodiment, a computer-readable storage medium is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0158] S01: In a preset route of a target object including several task coordinates, the position coordinates of the target object corresponding to the task coordinates are obtained at least three times in sequence as the current cursor position;

[0159] S011: After obtaining the current cursor position each time, calculate the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate;

[0160] S012: Based on the calculated straight-line distance, select the task coordinate corresponding to the shortest straight-line distance as the current cursor position and update it;

[0161] S3: Based on the updated current cursor position, the route position is rendered using a line drawing method to obtain the current route map;

[0162] S4: Repeat the above steps until the drawn route map includes the end point of the preset route.

[0163] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0164] Those skilled in the art will clearly understand that for the sake of convenience and brevity in description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.

Claims

1. A real-time route location rendering optimization method, characterized in that: The following steps are involved: In a route of a preset target object including a plurality of task coordinates, the position coordinates of the preset target object corresponding to the task coordinates are obtained as the current cursor position, and then whether the current cursor position is a normal position coordinate is determined; If the current cursor position is an abnormal position coordinate, the position coordinate of the target object corresponding to the task coordinate is obtained at least three times in sequence as the current cursor position; if the current position is a normal position coordinate, the position coordinate of the target object corresponding to the task coordinate is obtained only once as the current cursor position; After obtaining the current cursor position each time, respectively calculating the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate; Based on the calculated straight-line distance, the task coordinate corresponding to the shortest straight-line distance is selected as the current cursor position and updated; Based on the updated current cursor position, the route position is rendered using the line drawing method to obtain the current route map; Repeat the above steps until the drawn route map includes the end point of the preset route; Among them, the abnormal position coordinates are the position coordinates reported by the vehicle end that have position fluctuations or position offsets.

2. A real-time route position rendering optimization method according to claim 1, characterized in that: The following steps are also included: When the current cursor position is a normal position coordinate, the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate is calculated and compared respectively; When the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, the corresponding task coordinate is used as the current cursor position.

3. A real-time route position rendering optimization method according to claim 2, characterized in that: The following steps are also included: When the straight-line distance between the current cursor position and the corresponding task coordinate is greater than the straight-line distance between the current cursor position and the next task coordinate, the next task coordinate is used as the current cursor position.

4. A real-time route position rendering optimization method according to claim 1, characterized in that: The following steps are also included: When the current cursor position is a normal position coordinate and the last acquired position coordinate of the target object corresponding to the task coordinate is an abnormal position coordinate, respectively calculating and comparing the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate; When the straight-line distance between the current cursor position and the corresponding task coordinates is less than the straight-line distance between the current cursor position and the next task coordinates, the route information is not updated.

5. A real-time route position rendering optimization method according to claim 4, characterized in that: The following steps are also included: When the current cursor position is a normal position coordinate and the position coordinate of the target object corresponding to the task coordinate obtained last time is a normal position coordinate, respectively calculating the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate and comparing them; When the straight-line distance between the current cursor position and the corresponding task coordinate is less than the straight-line distance between the current cursor position and the next task coordinate, the corresponding task coordinate is used as the current cursor position.

6. A real-time route position rendering optimization method according to any one of claims 1 to 5, characterized in that: In a route of a preset target object consisting of a plurality of task coordinates, the task coordinates are distributed in a point group.

7. A real-time route position rendering optimization method according to any one of claims 1 to 5, characterized in that: The preset target object's route consisting of a plurality of task coordinates is the task route map indicated by the user on the map board and required for the vehicle to travel.

8. A real-time route location rendering optimization method according to any one of claims 1 to 5, characterized in that: The roadmap is visualized.

9. A real-time route location rendering optimization method, characterized in that: The following steps are involved: In a route of a preset target object including a plurality of task coordinates, the position coordinates of the preset target object corresponding to the task coordinates are obtained as the current cursor position, and then whether the current cursor position is a normal position coordinate is determined; If the current cursor position is an abnormal position coordinate, the position coordinate of the target object corresponding to the task coordinate is obtained at least three times in sequence as the current cursor position; if the current position is a normal position coordinate, the position coordinate of the target object corresponding to the task coordinate is obtained only once as the current cursor position; After obtaining the current cursor position each time, respectively calculating the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate; Based on the calculated straight-line distance, the task coordinate corresponding to the shortest straight-line distance is selected as the current cursor position and updated; Repeat the above steps until all the location data for drawing the route map are obtained; Uploading the obtained location data to the cloud control platform and rendering the route map; Among them, the abnormal position coordinates are the position coordinates reported by the vehicle end that have position fluctuations or position offsets.

10. A real-time route location rendering optimization method, characterized in that: The following steps are involved: In a route consisting of several task coordinates of a preset target object, the control vehicle obtains the position coordinates of the preset target object corresponding to the task coordinates as the current cursor position, and first determines whether the current cursor position is a normal position coordinate; If the current cursor position is an abnormal position coordinate, the control vehicle side sequentially obtains the position coordinate of the target object corresponding to the task coordinate at least three times as the current cursor position; if the current position is a normal position coordinate, the control vehicle side only obtains the position coordinate of the target object corresponding to the task coordinate once as the current cursor position; The obtained position coordinates corresponding to the task coordinates are uploaded to the cloud control platform and used as the current cursor position; In a preset route of a target object consisting of several task coordinates, the cloud control platform calculates the straight-line distance between the current cursor position and the corresponding task coordinate and the next task coordinate each time after obtaining the current cursor position; The cloud control platform selects the task coordinates corresponding to the shortest straight-line distance based on the calculated straight-line distance as the current cursor position and updates it; The cloud control platform uses the line drawing method to render the route position based on the updated current cursor position to obtain the current route map; The cloud control platform repeats the above steps until the drawn route map includes the end point of the preset route; Among them, the abnormal position coordinates are the position coordinates reported by the vehicle end that have position fluctuations or position offsets.

11. A real-time route location rendering optimization device, characterized in that: The method according to any one of claims 1 to 8, comprising: The vehicle-mounted module is used to obtain the location coordinates of the target object and report them; The cloud control platform is used to preset a route consisting of several task coordinates of the target object and receive the location coordinates reported by the vehicle-mounted module.

12. A device, characterized in that The method comprises a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method according to any one of claims 1 to 8.

13. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Networked vehicle automatic driving system and method

    CN111949037A