Map drawing method and device

By building a map canvas in the front-end interface and obtaining road parameter information, and drawing OpenDrive format maps, the problem of high map usage costs in the existing technology is solved, efficient and accurate map editing and viewing is achieved, and the development of autonomous driving systems is simplified. and testing.

CN118689477APending Publication Date: 2024-09-24BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410822504.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-24
Publication Date
2024-09-24

Smart Images

  • Figure CN118689477A
    Figure CN118689477A
Patent Text Reader

Abstract

The invention provides a map drawing method and device, and the method comprises the steps: constructing a display interface which is a front-end interface; according to the space information of a map to be drawn, a map canvas is constructed in the display interface, and the map canvas is used for drawing the map to be drawn; obtaining road parameter information of the to-be-drawn map, wherein the road parameter information is used for describing features of roads of different road types in the to-be-drawn map; in the map canvas, drawing a target road corresponding to the road type according to the road parameter information to obtain a target map; and displaying the target map on the display interface. By adopting the steps, the use cost of the OpenDrive map can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automobile technology, and in particular to a map drawing method and device. Background Art

[0002] OpenDrive is an open road description format for describing road networks and traffic rules to support applications such as autonomous driving and traffic simulation. The design goal of OpenDrive is to provide a comprehensive road description, including information such as road geometry, traffic signs, signal lights, lane rules, etc. With OpenDrive, autonomous driving systems can perceive, plan, and control based on road data, thereby achieving precise vehicle navigation and driving decisions.

[0003] At present, OpenDrive has become one of the important standards in the field of autonomous driving. Many manufacturers and organizations are using OpenDrive to describe road information to achieve the development and testing of autonomous driving systems. In addition, many simulation software also support the OpenDrive format, which can be used for traffic simulation and driving scene generation.

[0004] Currently, OpenDrive maps can be viewed and edited through related software, which provides an environment for simulating different traffic scenarios and road conditions to test the real-time, decision-making and safety of autonomous driving algorithms. However, the use of the above software for viewing and editing OpenDrive maps has a certain cost. Summary of the invention

[0005] The present application provides a map drawing method and device that can solve the problem of high usage cost of existing OpenDrive maps.

[0006] In a first aspect, an embodiment of the present application provides a map drawing method, the method comprising:

[0007] Constructing a display interface, wherein the display interface is a front-end interface;

[0008] According to the spatial information of the map to be drawn, a map canvas is constructed in the display interface, and the map canvas is used to draw the map to be drawn;

[0009] Acquire road parameter information of the map to be drawn, where the road parameter information is used to describe the characteristics of roads of different road types in the map to be drawn;

[0010] In the map canvas, a target road corresponding to the road type is drawn according to the road parameter information to obtain a target map;

[0011] The target map is displayed on the display interface.

[0012] In a second aspect, the present application provides a map drawing device, the device comprising:

[0013] A first construction module is used to construct a display interface, where the display interface is a front-end interface;

[0014] A second construction module is used to construct a map canvas in the display interface according to the spatial information of the map to be drawn, and the map canvas is used to draw the map to be drawn;

[0015] An acquisition module, used for acquiring road parameter information of the map to be drawn, wherein the road parameter information is used for describing the characteristics of roads of different road types in the map to be drawn;

[0016] A first drawing module, used for drawing a target road corresponding to the road type in the map canvas according to the road parameter information to obtain a target map;

[0017] The first display module is used to display the target map on the display interface.

[0018] In a third aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;

[0019] When the processor executes the computer program instructions, it implements the map drawing method in any one of the embodiments of the first aspect.

[0020] In a fourth aspect, an embodiment of the present application provides a computer storage medium having computer program instructions stored thereon, and when the computer program instructions are executed by a processor, a map drawing method as in any one of the embodiments in the first aspect is implemented.

[0021] In a fifth aspect, an embodiment of the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes a map drawing method as in any one of the embodiments in the first aspect above.

[0022] In the map drawing method and device of the embodiment of the present application, the method includes: constructing a display interface, the display interface is a front-end interface; constructing a map canvas in the display interface according to the spatial information of the map to be drawn, the map canvas is used to draw the map to be drawn; obtaining the road parameter information of the map to be drawn, the road parameter information is used to describe the characteristics of roads of different road types in the map to be drawn; in the map canvas, drawing the target road corresponding to the road type according to the road parameter information to obtain the target map; displaying the target map in the display interface. Through the above steps, different types of roads can be drawn into the map canvas, that is, the front-end interface, through the road parameter information of the map to be drawn in the OpenDrive format. Therefore, the drawn target map can be viewed and edited in the front-end interface, without the need to view and edit the map through related software, thereby reducing the cost of using the map in the OpenDrive format. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0024] Figure 1 It is a flowchart of a map drawing method provided by an embodiment of the present application;

[0025] Figure 2 is a schematic diagram of the OpenDrive map coordinate system provided by an embodiment of the present application;

[0026] Figure 3 is a schematic diagram of a local coordinate system relative to a reference line coordinate system provided by an embodiment of the present application;

[0027] Figure 4 It is a schematic diagram of converting an SVG coordinate system into an OpenDrive map coordinate system provided by an embodiment of the present application;

[0028] Figure 5 It is a schematic diagram of drawing a straight road reference line provided by an embodiment of the present application;

[0029] Figure 6 It is a schematic diagram of drawing a straight road boundary provided by an embodiment of the present application;

[0030] Figure 7 It is a schematic diagram of drawing a parametric cubic curve road reference line provided by an embodiment of the present application;

[0031] Figure 8It is a schematic diagram of obtaining the coordinates of the boundary points of a parametric cubic curve road provided by an embodiment of the present application;

[0032] Fig. 9 It is a schematic diagram of drawing a cubic polynomial curve road reference line provided by an embodiment of the present application;

[0033] Fig.10 This is a schematic diagram of arc road drawing provided by an embodiment of the present application;

[0034] Fig.11 It is a schematic diagram of the result of drawing a web page OpenDrive map provided by one embodiment of the present application;

[0035] Fig.12 This is a schematic diagram of clicking to obtain road parameters provided by an embodiment of the present application;

[0036] Fig.13 is a schematic diagram of a vehicle contour drawing result provided by an embodiment of the present application;

[0037] Fig.14 is a structural schematic diagram of a map drawing device provided in an embodiment of the present application;

[0038] Fig.15 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0040] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0041] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0042] In order to solve the problems in the prior art, the present application provides a method and device for drawing a map. The following first introduces the method for drawing a map provided by the present application.

[0043] Figure 1 FIG. 1 is a flow chart of a map drawing method provided by an embodiment of the present application. Figure 1 As shown, the method may specifically include the following steps:

[0044] Step 101, constructing a display interface, wherein the display interface is a front-end interface;

[0045] The front-end interface can be a web page interface. You can choose to use Scalable Vector Graphics (SVG) to build the display interface.

[0046] Step 102, constructing a map canvas in the display interface according to the spatial information of the map to be drawn, wherein the map canvas is used to draw the map to be drawn;

[0047] The spatial information includes the size and the first coordinate system of the map to be drawn. The map canvas can be drawn using an SVG image.

[0048] Specifically, in one embodiment, step 102 further includes:

[0049] Defining the width and height of the map canvas according to the size of the map to be drawn;

[0050] generating the initial map canvas according to the width and the height, wherein the initial map canvas includes a second coordinate system;

[0051] The origin of the second coordinate system is moved to the position where the origin of the first coordinate system is located, and the longitudinal axis direction of the second coordinate system is converted to the same direction as the longitudinal axis direction of the first coordinate system, so that the second coordinate system coincides with the inertial coordinate system in the first coordinate system, and the map canvas is obtained. The map canvas is obtained.

[0052] In this embodiment, the map to be drawn is the OpenDrive map. The unit of distance in the OpenDrive map is meter, and the unit of distance in SVG is pixel. For the convenience of drawing, a 1:1 ratio is adopted, that is, 1px in the SVG graphic represents 1m. The size of the map is defined in the header node of the OpenDrive map. According to the size of the map, the width and height of the canvas are defined using the "width", "height" and "viewbox" attributes of SVG.

[0053] It should be noted that OpenDrive map uses three coordinate systems, namely the first coordinate system mentioned above. The first coordinate system includes the inertial xyz coordinate system, the local uvz coordinate system and the reference line sth coordinate system, such as Figure 2 As shown. Unless otherwise specified, the search and positioning of the local coordinate system will be carried out relative to the reference line coordinate system. The setting of the position and direction of the reference line coordinate system is carried out relative to the inertial coordinate system. The definition of the first coordinate system is as follows:

[0054] 1) Inertial xyz coordinate system: The right-hand rule applies, with the x-axis pointing to the right, the y-axis pointing upward, and the z-axis pointing out of the drawing plane.

[0055] 2) Reference line sth coordinate system: The right-hand rule applies, the s-axis points to the tangent direction of the reference line, the t direction is orthogonal to the s direction, and the h-axis points outside the drawing plane.

[0056] 3) Local uvz coordinate system: Apply the right-hand rule, u matches s forward, v matches t leftward, and z matches h upward.

[0057] The local uvz coordinate system can only be placed in the reference line space, such as Figure 3 As shown, the origin of the local coordinate system and the direction (heading angle / yaw angle) relative to the reference line coordinate system and the origin of the local system are provided in the reference line coordinate system.

[0058] After the initial map canvas is generated using the defined width and height, the initial map canvas has a corresponding second coordinate system, and the overall coordinate system of the OpenDrive map is the inertial coordinate system. The coordinate axes of the second coordinate system are inconsistent with the coordinate axes of the inertial coordinate system in the OpenDrive map, that is, the y-axis direction is exactly opposite, and the coordinate origin position is also different, and the origin of the second coordinate system is located in the upper left corner.

[0059] In order to make the coordinate axes of the second coordinate system consistent with the coordinate axes of the inertial coordinate system, the inertial coordinate system in the OpenDrive map can be used as the reference for drawing in the subsequent drawing process, without the need to convert the second coordinate system to the coordinate system in the OpenDrive map. Therefore, the translate command of transform in SVG can be used to translate the coordinate origin to the lower left corner, and the scale command can be used to make the Y axis upward, such as Figure 4 As shown. After conversion, the map canvas can be obtained.

[0060] Step 103, obtaining road parameter information of the map to be drawn, wherein the road parameter information is used to describe the characteristics of roads of different road types in the map to be drawn;

[0061] OpenDrive maps include four different road types: straight roads, cubic curve roads, cubic polynomial curve roads, and arc roads. OpenDrive map files are usually written in XML format.

[0062] Step 104, in the map canvas, drawing a target road corresponding to the road type according to the road parameter information to obtain a target map;

[0063] Step 105: display the target map on the display interface.

[0064] After obtaining the above-mentioned road parameter information, the target roads corresponding to the above-mentioned straight roads, cubic curve roads, cubic polynomial curve roads and arc roads can be drawn according to the road parameter information. Data-Driven Documents (d3.js) can be used to draw the target roads and obtain the target map. Thus, the target map can be displayed in the front-end interface. It should be noted that d3.js is a powerful JavaScript library specifically used to create data-driven documents in web browsers. It allows the use of HTML, SVG and CSS to create rich interactive charts and visualizations, so that the target map can be displayed in the front-end interface.

[0065] In this embodiment, the map drawing method includes: constructing a display interface, which is a front-end interface; constructing a map canvas in the display interface according to the spatial information of the map to be drawn, and the map canvas is used to draw the map to be drawn; obtaining road parameter information of the map to be drawn, and the road parameter information is used to describe the characteristics of roads of different road types in the map to be drawn; in the map canvas, drawing a target road corresponding to the road type according to the road parameter information to obtain a target map; and displaying the target map in the display interface. Through the above steps, different types of roads can be drawn into the map canvas, that is, the front-end interface, through the road parameter information of the map to be drawn in the OpenDrive format. Therefore, the drawn target map can be viewed and edited in the front-end interface without the need to view and edit the map through related software, thereby reducing the cost of using maps in the OpenDrive format.

[0066] In an embodiment of the present application, in the map canvas, drawing a target road corresponding to the road type according to the road parameter information to obtain a target map includes:

[0067] According to the first coordinate information, the inertial coordinate system is translated and rotated so that the inertial coordinate system coincides with the local coordinate system, and a straight road reference line in the local coordinate system is obtained;

[0068] In the second coordinate system, an offset calculation is performed on the straight road reference line according to the first road boundary information and the second coordinate information to obtain a straight road boundary corresponding to the straight road reference line, wherein the straight road boundary is represented by a plurality of first coordinate points in the second coordinate system;

[0069] The plurality of first coordinate points are connected to obtain the straight road area, and the straight road area is included in the target map.

[0070] In this embodiment, when the road type is a straight road type, the target road includes a straight road area. Correspondingly, as shown in Table 1, the road parameter information includes the first coordinate information of the straight road in the inertial coordinate system, the second coordinate information in the reference line coordinate system, and the first road boundary information. Among them, the first coordinate information includes the s coordinate of the starting position of the road reference line corresponding to the straight road, the starting direction heading angle, and the road length; the second coordinate information includes the x and y coordinates of the starting position of the road reference line of the straight road. Among them, it should be noted that the road reference line (usually the center line of the road) is used to describe the direction of the road when viewed from above, and is the basic element of each road in OpenDrive. It can be defined by a series of curve segments, without width and height, and only represents the basic path of the road.

[0071]

[0072] Table 1 List of road parameter information for straight roads

[0073] like Figure 5 As shown, Figure 5 This is a schematic diagram of drawing a straight road reference line. The specific process is as follows:

[0074] (1) Coordinate translation: Based on the first coordinate (x, y), use the command: translate("x","y") to translate the origin of the inertial coordinate axis to point A;

[0075] (2) Coordinate rotation: Based on the starting heading angle hdg, use the command: rotate("hdg") to rotate the x-axis by an angle hdg, so that the inertial coordinate system and the local coordinate system coincide.

[0076] (3) Become Figure 5 The AB line in the uv coordinate axis in the right figure has a starting point A(0,0) and an end point B(length,0);

[0077] (4) Use the line command in d3.js to complete the drawing of the straight road reference line from starting point A to end point B.

[0078] The drawing of the straight road boundary is obtained according to the road reference line offset. The calculation formula of the width of the straight road boundary offset (ds) is as follows Figure 6 As shown. The distance ds1 from the starting point A of the straight road boundary to the starting point A is 0. The calculation formula can be used to obtain the starting road width rw1 = a. The coordinates of the starting point of the road boundary in the UV coordinate system are A1 (0, -rw1). The distance ds2 from the end point B of the straight road boundary to the starting point A is the road length length. The calculation formula can be used to obtain the end point road width rw2 (as shown Figure 6 As shown in the figure, the coordinates of the end point of the road boundary in the UV coordinate system are B1 (length, -rw2), and the line command in d3.js is used to complete the drawing of the straight road boundary.

[0079] The straight road area is drawn using the path and d3.line commands of d3.js. First, use d3.line to get the path of the area. The x and y in the path correspond to the uv coordinates of the reference line starting point A (0, 0), the reference line end point B (length, 0), the road boundary end point B1 (length, -rw2) and the road boundary starting point A1 (0, -rw1). The area enclosed by these four points is used to represent the straight road area. The straight road area can be drawn using the d3.path command based on the path obtained above.

[0080] In this embodiment, through flexible coordinate system conversion, accurate road boundary calculation and a coherent drawing process, efficient and accurate drawing of straight road areas in a map canvas is achieved.

[0081] In an embodiment of the present application, in the map canvas, drawing a target road corresponding to the road type according to the road parameter information to obtain a target map includes:

[0082] According to the third coordinate information, the inertial coordinate system is translated and rotated so that the inertial coordinate system and the local coordinate system coincide with each other;

[0083] According to the preset first point value, setting a plurality of first coordinate points in the local coordinate system;

[0084] Connecting the plurality of first coordinate points to obtain a cubic curve road reference line;

[0085] Calculate according to the fourth coordinate information to obtain a boundary point corresponding to each first coordinate point in the plurality of first coordinate points;

[0086] Connecting the boundary points to obtain a road boundary of a cubic polynomial curve;

[0087] In the local coordinate system, according to the fourth coordinate information and the second road boundary point, obtaining a first coordinate value corresponding to the cubic curve road reference line and a second coordinate value corresponding to the road boundary;

[0088] The cubic curve road area is drawn according to the first coordinate value and the second coordinate value, and the cubic curve road area is included in the target map.

[0089] In this embodiment, when the road type is a cubic curve road type, the target road includes a cubic curve road area. Correspondingly, as shown in Table 2, the road parameter information includes the third coordinate information of the cubic curve road in the inertial coordinate system, the fourth coordinate information in the reference line coordinate system, and the second road boundary information. Among them, the third coordinate information includes the starting position x, y coordinates, and the starting direction heading angle of the cubic curve road reference line; the fourth coordinate information includes the s coordinate of the starting position. In addition, the road parameter information also includes the road length. For details, please refer to Table 2.

[0090]

[0091]

[0092] Table 2 List of road parameter information for cubic curve roads

[0093] like Figure 7 As shown, Figure 7 This is a schematic diagram of drawing a cubic curve road reference line. The specific process is as follows:

[0094] (1) Coordinate translation: Use the command: translate("x","y") to translate the origin of the inertial coordinate axis to the starting point of the parametric cubic curve;

[0095] (2) Coordinate rotation: Use the command: rotate("hdg") to rotate the x-axis by the angle hdg so that the inertial reference coordinate system coincides with the local coordinate system;

[0096] (3) The parameter p takes a point [0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1] every 0.1 of the first point value, for a total of 11 first coordinate points;

[0097] (4) Calculate the u and v coordinates of each point in the local coordinate system according to the polynomial equation, i.e., the boundary point. For the polynomial equation, please refer to Figure 7 The expression in ;

[0098] (5) Use the curveBasis curve in d3.js to connect the 11 points in sequence to obtain the parametric cubic curve road reference line.

[0099] The calculation formula of the parametric cubic curve road width offset (ds) is as follows Figure 8 As shown, the parameter p takes a point every 0.1, and the coordinates of the corresponding points on the road boundary are calculated based on the 11 points on the reference line. The road width d corresponding to each point on the road boundary can be calculated based on the distance s along the road from the point to the starting point of the road. ds is approximated by adding the accumulated straight-line distances between each segmentation point. The calculation process of the corresponding point on the road boundary based on the point on the road reference line is as follows: Figure 8 As shown in the figure, the 11 points on the calculated road boundary are connected in sequence using the curveBasis curve in d3.js to obtain the parametric cubic curve road boundary.

[0100] The parametric cubic curve road area is drawn using the path and d3.area commands of d3.js. First, d3.area is used to obtain the path of the road area. The parameters x0 and y0 of d3.area correspond to the u and v coordinate values ​​of the 11 points on the parametric cubic curve road reference line calculated above. The parameters x1 and y1 of d3.area correspond to the u and v coordinate values ​​of the 11 points on the parametric cubic curve road boundary calculated above. The parameter curve type of d3.area is d3.curveBasis, which means that the path is connected by a curve. Then, the parametric cubic curve road area is drawn using the d3.path command according to the path obtained above.

[0101] In this embodiment, efficient and accurate drawing of a cubic curve road area in a map canvas is achieved through flexible coordinate system conversion, precise road boundary calculation, and a coherent drawing process.

[0102] In an embodiment of the present application, in the map canvas, drawing a target road corresponding to the road type according to the road parameter information to obtain a target map includes:

[0103] According to the fifth coordinate information, the inertial coordinate system is translated and rotated so that the inertial coordinate system and the local coordinate system coincide with each other;

[0104] According to a preset second point value, obtaining a second coordinate point corresponding to the second point value in the local coordinate system;

[0105] Connecting the second coordinate points to obtain a cubic polynomial curve road reference line;

[0106] In the local coordinate system, according to the sixth coordinate information and the third road boundary information, obtaining a third coordinate value corresponding to the cubic polynomial curve road reference line and a fourth coordinate value corresponding to the road boundary;

[0107] The cubic polynomial curve road area is drawn according to the third coordinate value and the fourth coordinate value, and the cubic polynomial curve road area is included in the target map.

[0108] In this embodiment, when the road type is a cubic polynomial curve road type, the target road includes a cubic polynomial curve road area. Correspondingly, as shown in Table 3, the road parameter information includes the fifth coordinate information of the cubic polynomial curve road in the inertial coordinate system, the sixth coordinate information in the reference line coordinate system, and the third road boundary information. The fifth coordinate information includes the starting position of the road reference line corresponding to the cubic polynomial curve road. x、y The sixth coordinate information includes the s coordinate of the starting position of the road reference line of the straight road. In addition, the road parameter information also includes the road length. For details, please refer to Table 3.

[0109]

[0110] Table 3 List of road parameter information for cubic polynomial curve roads

[0111] like Fig. 9 As shown, Fig. 9 This is a schematic diagram of drawing a cubic polynomial curve road reference line. The specific process is as follows:

[0112] (1) Coordinate translation: Use the command: translate("x","y") to translate the origin of the inertial coordinate axis to the starting point of the cubic polynomial curve;

[0113] (2) Coordinate rotation: Use the command: rotate("hdg") to rotate the x-axis by an angle of hdg so that the inertial coordinate system and the local coordinate system coincide.

[0114] (3) In the local coordinate system, take the parameter u and select a point every 0.01 m from the second point value to obtain a series of points, namely the second coordinate points. In addition, the cumulative value D of the straight-line distance between two adjacent points is approximated as the curve length (e.g. Fig. 9 As shown), stop when D>length;

[0115] (4) Calculate the u and v coordinates of each point in the local coordinate system according to the polynomial equation. For the polynomial equation, please refer to Fig. 9 ;

[0116] (5) Use the curveBasis curve in d3.js to connect each point in sequence to obtain a cubic polynomial curve road reference line.

[0117] The road boundary drawing method of cubic polynomial curve road is similar to that of parametric cubic curve. The road width d corresponding to the point on the road boundary can be calculated based on the distance s along the road from the point to the starting point. ds is approximated by adding the accumulated straight-line distances between each segmentation point. For details, see Figure 8 . refer to Figure 8 The method is used to calculate the points on the road boundary corresponding to each point on the reference line obtained above, and then the curveBasis curve in d3.js is used to connect each point on the road boundary in sequence to obtain the cubic polynomial curve road boundary.

[0118] The drawing of the cubic polynomial curve road area also uses the path and d3.area commands of d3.js. First, use d3.area to obtain the path of the road area. The parameters x0 and y0 of d3.area correspond to the u and v coordinate values ​​of a series of points on the cubic polynomial curve road reference line calculated above. The parameters x1 and y1 of d3.area correspond to the u and v coordinate values ​​of a series of points on the cubic polynomial curve road boundary calculated above. The parameter curve type of d3.area is d3.curveBasis, which means connecting the path with a curve. Then use the d3.path command to draw the cubic polynomial curve road area according to the path obtained above.

[0119] In this embodiment, efficient and accurate drawing of cubic polynomial curve road areas in a map canvas is achieved through flexible coordinate system conversion, precise road boundary calculation, and a coherent drawing process.

[0120] In an embodiment of the present application, in the map canvas, drawing a target road corresponding to the road type according to the road parameter information to obtain a target map includes:

[0121] According to the seventh coordinate information, the inertial coordinate system is translated and rotated so that the inertial coordinate system and the local coordinate system coincide with each other;

[0122] According to a preset third point value, obtaining a third coordinate point corresponding to the third point value in the local coordinate system;

[0123] According to the curvature, obtaining the arc angle of the third coordinate point relative to the starting position in the seventh coordinate information;

[0124] Calculate the distance between the arc angle and the starting position to obtain the coordinate value of the third coordinate point in the local coordinate system;

[0125] Acquire a fourth coordinate point corresponding to the third coordinate point according to the coordinate value, wherein the fourth coordinate point is a boundary point of the arc road;

[0126] Connect the third coordinate point to obtain an arc road reference line;

[0127] The arc road area is drawn according to the eighth coordinate information, the arc road reference line and the fourth road boundary information, and the arc road area is included in the target map.

[0128] In this embodiment, when the road type is a curved road type, the target road includes a curved road area. Correspondingly, as shown in Table 4, the road parameter information includes the seventh coordinate information of the curved road in the inertial coordinate system, the eighth coordinate information in the reference line coordinate system, and the fourth road boundary information. For details, please refer to Table 4.

[0129]

[0130] Table 4 Road parameter information list of arc roads

[0131] like Fig.10 As shown, Fig.10 This is a schematic diagram of drawing a cubic polynomial curve road reference line. The specific process is as follows:

[0132] (1) Coordinate translation: translate the origin of the coordinate axis to the starting point of the arc road reference line using the command: translate("x","y");

[0133] (2) Coordinate rotation: Rotate the x-axis by angle hdg using the command: rotate("hdg");

[0134] (3) Select a point every 0.5 m on the arc road reference line, such as Fig.10 As shown, calculate the uv coordinate value of point A on the reference line,

[0135] (4) Using the arc length and arc radius of point A relative to the starting point, calculate the corresponding arc angle α;

[0136] (5) Calculate the uv coordinates u0 and v0 of point A based on the arc angle and the straight-line distance from point A to the starting point;

[0137] (6) Calculate the uv coordinates u1 and v1 of point B based on the lane width rw and arc angle corresponding to point B on the boundary. The calculation method is as follows: Fig.10 As shown;

[0138] Using the above method, take a point every 0.5m on the arc road, calculate the UV coordinate value of the point on the reference line and the point on the corresponding lane boundary until the length of the arc is reached, and the last point is the end point of the arc road.

[0139] The curveBasis curve in d3.js is used to sequentially connect the points on the arc road reference line to obtain the arc road reference line. Then the curveBasis curve in d3.js is used to sequentially connect the points on the arc road boundary calculated above to obtain the road boundary of the arc road.

[0140] The drawing of the arc road area also uses the path and d3.area commands of d3.js. First, use d3.area to obtain the path of the road area. The parameters x0 and y0 of d3.area correspond to the u and v coordinate values ​​of a series of points on the arc road reference line calculated above. The parameters x1 and y1 of d3.area correspond to the u and v coordinate values ​​of a series of points on the arc road boundary calculated above. The parameter curve type of d3.area is d3.curveBasis, which means connecting the path with a curve. Then use the d3.path command to draw the arc road area according to the path obtained above.

[0141] In this embodiment, through flexible coordinate system conversion, accurate road boundary calculation and a coherent drawing process, efficient and accurate drawing of arc road areas in a map canvas is achieved.

[0142] In an embodiment of the present application, after the target map is displayed on the display interface, the method further includes:

[0143] When the target map receives a click event, obtaining the target lane corresponding to the clicked area;

[0144] The road parameters corresponding to the target lane are displayed.

[0145] When using d3.path to draw the road area, the ".on("click",function())" command is used to add a property to monitor mouse clicks to the area. When the left mouse button is clicked on the road area, the color of the road is changed through d3.attr('fill','color') to highlight the road. The ID of the lane can be obtained through the mouse click event, and the relevant parameters of the road can be extracted from the map road dataset. The el-form component of element-plus is used to build a form to display the road parameters. The display result is as follows: Fig.12 As shown, it can be displayed on the front end and used for path planning.

[0146] In this embodiment, by clicking on the target map, the road parameters of the corresponding target lane are displayed, so that the road parameters can be viewed on the front-end interface, which increases the convenience of the target map.

[0147] In an embodiment of the present application, after the target map is displayed on the display interface, the method further includes:

[0148] According to the size of the vehicle to be drawn, the vehicle to be drawn is drawn using lines to obtain a vehicle outline;

[0149] The vehicle outline is drawn in the target map according to a preset position and a preset orientation.

[0150] The web map car is used to simulate the vehicle and display the vehicle's position and direction in the map in real time. The car is drawn with the front center point of the car or the center of the vehicle as the reference point, and is drawn using the d3.path command. The shape of the car is drawn using multiple line segments. If the actual size of the vehicle is available, the line segments can be drawn based on the actual size of the vehicle to construct the car. You can also use the SVG drawing software to draw the outline of the vehicle based on the top view of the vehicle, and then reduce it according to a certain ratio to correspond to the map size, and draw the car on the web map. The drawing result is as follows: Fig.13 After obtaining the x, y coordinate values ​​and heading angle of the vehicle reference point from the backend program, the position and heading of the map car can be updated through d3.attr("transform", "translate('x', 'y') rotate('heading')". This ensures that the vehicle position and heading are updated in real time and are consistent with the actual vehicle position and heading in the map.

[0151] In an embodiment of the present application, after drawing the vehicle outline in the target map according to the preset position and the preset orientation, the method further includes:

[0152] receiving control commands for the target map and the vehicle profile;

[0153] The target map and the vehicle profile are controlled according to the control command.

[0154] In this embodiment, the zoom command of d3.js can be used to achieve the separate zooming and translation of the web map and the car on the canvas, and this function can be achieved through d3.select(this).selectAll('#id').attr('transform',d3.event.transform). The specific operation is to zoom in and out the map by using the mouse wheel, and to translate the map by long pressing the left mouse button, which can facilitate the viewing and operation of the map and the car.

[0155] In this embodiment, through the method of map road parameters, the method of map car drawing and position update, and the map zooming and panning method, it can be applied to the intelligent driving real car test. During the intelligent driving real car test, according to the vehicle position and orientation information measured by the back-end program, the position and orientation of the vehicle in the map can be updated in real time in the web map.

[0156] Fig.14 A schematic diagram of the structure of a map drawing device provided by an embodiment of the present application is shown. For the sake of convenience of explanation, only the parts related to the embodiment of the present application are shown.

[0157] Reference Fig.14 , the mapping device 1400 may include:

[0158] The first construction module 1401 is used to construct a display interface, where the display interface is a front-end interface;

[0159] A second construction module 1402 is used to construct a map canvas in the display interface according to the spatial information of the map to be drawn, and the map canvas is used to draw the map to be drawn;

[0160] An acquisition module 1403 is used to acquire road parameter information of the map to be drawn, where the road parameter information is used to describe the characteristics of roads of different road types in the map to be drawn;

[0161] A first drawing module 1404 is used to draw a target road corresponding to the road type in the map canvas according to the road parameter information to obtain a target map;

[0162] The first display module 1405 is used to display the target map on the display interface.

[0163] Optionally, the second building module 1402 includes:

[0164] A definition submodule, used to define the width and height of the map canvas according to the size of the map to be drawn;

[0165] A generating submodule, configured to generate the initial map canvas according to the width and the height, wherein the initial map canvas includes a second coordinate system;

[0166] The moving submodule is used to move the origin position of the second coordinate system to the position where the origin of the first coordinate system is located, and to convert the longitudinal axis direction of the second coordinate system to the same direction as the longitudinal axis direction of the first coordinate system, so that the second coordinate system coincides with the inertial coordinate system in the first coordinate system to obtain the map canvas.

[0167] Optionally, the first drawing module 1404 includes:

[0168] A first rotation submodule is used to translate and rotate the inertial coordinate system according to the first coordinate information, so that the inertial coordinate system coincides with the local coordinate system, and obtain a straight road reference line in the local coordinate system;

[0169] a first calculation submodule, configured to perform offset calculation on the straight road reference line according to the first road boundary information and the second coordinate information in the second coordinate system to obtain a straight road boundary corresponding to the straight road reference line, wherein the straight road boundary is represented by a plurality of first coordinate points in the second coordinate system;

[0170] The first connection submodule is used to connect the plurality of first coordinate points to obtain the straight road area, and the straight road area is included in the target map.

[0171] Optionally, the first drawing module 1404 includes:

[0172] A second rotation submodule, configured to translate and rotate the inertial coordinate system according to the third coordinate information, so that the inertial coordinate system and the local coordinate system coincide with each other;

[0173] A first setting submodule, used for setting a plurality of first coordinate points in the local coordinate system according to a preset first point value;

[0174] A second connection submodule, used to connect the plurality of first coordinate points to obtain a cubic curve road reference line;

[0175] A second calculation submodule, configured to perform calculation according to the fourth coordinate information to obtain a boundary point corresponding to each first coordinate point in the plurality of first coordinate points;

[0176] A third connection submodule is used to connect the boundary points to obtain a road boundary of a cubic polynomial curve;

[0177] A first acquisition submodule is used to acquire, in the local coordinate system, a first coordinate value corresponding to the cubic curve road reference line and a second coordinate value corresponding to the road boundary according to the fourth coordinate information and the second road boundary point;

[0178] The first drawing submodule is used to draw the cubic curve road area according to the first coordinate value and the second coordinate value, and the cubic curve road area is included in the target map.

[0179] Optionally, the first drawing module 1404 includes:

[0180] a third rotation submodule, configured to translate and rotate the inertial coordinate system according to the fifth coordinate information, so that the inertial coordinate system and the local coordinate system coincide with each other;

[0181] A second acquisition submodule, configured to acquire, according to a preset second point value, a second coordinate point corresponding to the second point value in the local coordinate system;

[0182] A fourth connection submodule, used to connect the second coordinate points to obtain a cubic polynomial curve road reference line;

[0183] A third acquisition submodule is used to acquire, in the local coordinate system, a third coordinate value corresponding to the cubic polynomial curve road reference line and a fourth coordinate value corresponding to the road boundary according to the sixth coordinate information and the third road boundary information;

[0184] The second drawing submodule is used to draw the cubic polynomial curve road area according to the third coordinate value and the fourth coordinate value, and the cubic polynomial curve road area is included in the target map.

[0185] Optionally, the map drawing device 1400 further includes:

[0186] An acquisition module, configured to acquire the target lane corresponding to the clicked area when the target map receives a click event;

[0187] The second display module is used to display the road parameters corresponding to the target lane.

[0188] Optionally, the map drawing device 1400 further includes:

[0189] A second drawing module is used to draw the vehicle to be drawn using lines according to the size of the vehicle to be drawn, so as to obtain a vehicle outline;

[0190] The third drawing module is used to draw the vehicle outline in the target map according to a preset position and a preset orientation.

[0191] Optionally, the map drawing device 1400 further includes:

[0192] A receiving module, used for receiving control commands for the target map and the vehicle profile;

[0193] A control module is used to control the target map and the vehicle profile according to the control command.

[0194] The map drawing device 1400 provided in the embodiment of the present application can implement each process implemented in the aforementioned method embodiment, and will not be described again here to avoid repetition.

[0195] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0196] Fig.15 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0197] The device may include a processor 1501 and a memory 1502 storing program instructions.

[0198] When the processor 1501 executes the program, the steps in any of the above method embodiments are implemented.

[0199] Exemplarily, the program may be divided into one or more modules / units, one or more modules / units are stored in the memory 1502, and executed by the processor 1501 to complete the present application. One or more modules / units may be a series of program instruction segments capable of completing a specific function, and the instruction segments are used to describe the execution process of the program in the device.

[0200] Specifically, the processor 1501 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0201] Memory 1502 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 1502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 1502 may include removable or non-removable (or fixed) media. In appropriate cases, memory 1502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, memory 1502 is a non-volatile solid-state memory.

[0202] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) readable storage media (e.g., memory devices) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0203] The processor 1501 implements any one of the methods in the above embodiments by reading and executing program instructions stored in the memory 1502 .

[0204] In one example, the electronic device may further include a communication interface 1503 and a bus 1510. The processor 1501, the memory 1502, and the communication interface 1503 are connected via the bus 1510 and communicate with each other.

[0205] The communication interface 1503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0206] Bus 1510 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0207] In addition, in combination with the method in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores program instructions; when the program instructions are executed by a processor, any one of the methods in the above embodiment is implemented.

[0208] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0209] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0210] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0211] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0212] The functional modules shown in the above block diagram can be implemented as hardware, software, firmware or their combination. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), suitable firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. Programs or code segments can be stored in machine-readable media, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable media" can include any medium that can store or transmit information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. Code segments can be downloaded via computer grids such as the Internet, intranets, etc.

[0213] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0214] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0215] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A map drawing method, characterized in that: The following steps are involved: Constructing a display interface, wherein the display interface is a front-end interface; According to the spatial information of the map to be drawn, a map canvas is constructed in the display interface, and the map canvas is used to draw the map to be drawn; Acquire road parameter information of the map to be drawn, where the road parameter information is used to describe the characteristics of roads of different road types in the map to be drawn; In the map canvas, a target road corresponding to the road type is drawn according to the road parameter information to obtain a target map; The target map is displayed on the display interface.

2. The map drawing method according to claim 1, characterized in that: The spatial information includes the size of the map to be drawn and a first coordinate system; The step of constructing a map canvas in the display interface according to the spatial information of the map to be drawn includes: Defining the width and height of the map canvas according to the size of the map to be drawn; generating an initial map canvas according to the width and the height, wherein the initial map canvas includes a second coordinate system; The origin position of the second coordinate system is moved to the position where the origin of the first coordinate system is located, and the longitudinal axis direction of the second coordinate system is converted to the same direction as the longitudinal axis direction of the first coordinate system, so that the second coordinate system coincides with the inertial coordinate system in the first coordinate system, thereby obtaining the map canvas.

3. The map drawing method according to claim 2, characterized in that: The road type includes a straight road; the target road includes a straight road area; the first coordinate system includes an inertial coordinate system, a reference line coordinate system and a local coordinate system; the road parameter information includes first coordinate information of the straight road in the inertial coordinate system, second coordinate information in the reference line coordinate system and first road boundary information; The step of drawing a target road corresponding to the road type in the map canvas according to the road parameter information to obtain a target map includes: According to the first coordinate information, the inertial coordinate system is translated and rotated so that the inertial coordinate system coincides with the local coordinate system, and a straight road reference line in the local coordinate system is obtained; In the second coordinate system, an offset calculation is performed on the straight road reference line according to the first road boundary information and the second coordinate information to obtain a straight road boundary corresponding to the straight road reference line, wherein the straight road boundary is represented by a plurality of first coordinate points in the second coordinate system; The plurality of first coordinate points are connected to obtain the straight road area, and the straight road area is included in the target map.

4. The map drawing method according to claim 3, characterized in that: The road type includes a cubic curve road; the target road includes a cubic curve road area; the road parameter information includes third coordinate information of the cubic curve road in the inertial coordinate system, fourth coordinate information in the reference line coordinate system, and second road boundary information; The step of drawing a target road corresponding to the road type in the map canvas according to the road parameter information to obtain a target map includes: According to the third coordinate information, the inertial coordinate system is translated and rotated so that the inertial coordinate system and the local coordinate system coincide with each other; According to the preset first point value, setting a plurality of first coordinate points in the local coordinate system; Connecting the plurality of first coordinate points to obtain a cubic curve road reference line; Calculate according to the fourth coordinate information to obtain a boundary point corresponding to each first coordinate point in the plurality of first coordinate points; Connecting the boundary points to obtain a road boundary of a cubic polynomial curve; In the local coordinate system, according to the fourth coordinate information and the second road boundary point, obtaining a first coordinate value corresponding to the cubic curve road reference line and a second coordinate value corresponding to the road boundary; The cubic curve road area is drawn according to the first coordinate value and the second coordinate value, and the cubic curve road area is included in the target map.

5. The map drawing method according to claim 3, characterized in that: The road type includes a cubic polynomial curve road; the target road includes a cubic polynomial curve road area; the road parameter information includes fifth coordinate information of the cubic polynomial curve road in the inertial coordinate system, sixth coordinate information in the reference line coordinate system, and third road boundary information; The step of drawing a target road corresponding to the road type in the map canvas according to the road parameter information to obtain a target map includes: According to the fifth coordinate information, the inertial coordinate system is translated and rotated so that the inertial coordinate system and the local coordinate system coincide with each other; According to a preset second point value, obtaining a second coordinate point corresponding to the second point value in the local coordinate system; Connecting the second coordinate points to obtain a cubic polynomial curve road reference line; In the local coordinate system, according to the sixth coordinate information and the third road boundary information, obtaining a third coordinate value corresponding to the cubic polynomial curve road reference line and a fourth coordinate value corresponding to the road boundary; The cubic polynomial curve road area is drawn according to the third coordinate value and the fourth coordinate value, and the cubic polynomial curve road area is included in the target map.

6. The map drawing method according to claim 3, characterized in that: The road type includes an arc road; the target road includes an arc road area; the road parameter information includes seventh coordinate information of the arc road in the inertial coordinate system, eighth coordinate information in the reference line coordinate system, curvature of the arc road and fourth road boundary information; The step of drawing a target road corresponding to the road type in the map canvas according to the road parameter information to obtain a target map includes: According to the seventh coordinate information, the inertial coordinate system is translated and rotated so that the inertial coordinate system and the local coordinate system coincide with each other; According to a preset third point value, obtaining a third coordinate point corresponding to the third point value in the local coordinate system; According to the curvature, obtaining the arc angle of the third coordinate point relative to the starting position in the seventh coordinate information; Calculate the distance between the arc angle and the starting position to obtain the coordinate value of the third coordinate point in the local coordinate system; Acquire a fourth coordinate point corresponding to the third coordinate point according to the coordinate value, wherein the fourth coordinate point is a boundary point of the arc road; Connect the third coordinate point to obtain an arc road reference line; The arc road area is drawn according to the eighth coordinate information, the arc road reference line and the fourth road boundary information, and the arc road area is included in the target map.

7. The map drawing method according to claim 1, characterized in that: After the target map is displayed on the display interface, the method further includes: When the target map receives a click event, obtaining a target lane corresponding to the clicked area; The road parameters corresponding to the target lane are displayed.

8. The map drawing method according to claim 1, characterized in that: After the target map is displayed on the display interface, the method further includes: According to the size of the vehicle to be drawn, the vehicle to be drawn is drawn using lines to obtain a vehicle outline; The vehicle outline is drawn in the target map according to a preset position and a preset orientation.

9. The map drawing method according to claim 8, characterized in that: After drawing the vehicle outline in the target map according to the preset position and the preset orientation, the method further includes: receiving control commands for the target map and the vehicle profile; The target map and the vehicle profile are controlled according to the control command.

10. A map drawing device, characterized in that: The device comprises: A first construction module is used to construct a display interface, where the display interface is a front-end interface; A second construction module is used to construct a map canvas in the display interface according to the spatial information of the map to be drawn, and the map canvas is used to draw the map to be drawn; An acquisition module, used for acquiring road parameter information of the map to be drawn, wherein the road parameter information is used for describing the characteristics of roads of different road types in the map to be drawn; A first drawing module, used for drawing a target road corresponding to the road type in the map canvas according to the road parameter information to obtain a target map; The first display module is used to display the target map on the display interface.