Map generation method and device for driverless vehicle, electronic equipment and storage medium
By acquiring and processing sampling points during vehicle driving, a high-precision map for driverless vehicles is generated, which solves the problem of insufficient map accuracy in narrow scenes in the existing technology and improves the driving safety of driverless vehicles.
Patent Information
- Application Number
- CN202310189581.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-08-27
AI Technical Summary
Existing technologies are difficult to meet high-precision requirements when generating maps for driverless vehicles, especially in small spaces or indoor scenes, resulting in large deviations between vehicle driving routes and actual roads, affecting driving safety.
By obtaining the attributes of multiple sampling points collected while the vehicle is driving in the area, the vehicle's driving trajectory is determined, and a single driving trajectory is used as the center line to generate a route in the driverless vehicle map according to the preset route width threshold. Divide sub-trajectories and merge route segments to improve map accuracy.
It improves the map accuracy and driving safety of unmanned vehicles, and reduces the probability of deviating from the road or hitting objects in narrow or obstacle-dense scenes.
Smart Images

Figure CN118548868A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of unmanned driving technology, and in particular to a method and device for generating a map for an unmanned driving vehicle, an electronic device, and a storage medium. Background Art
[0002] In recent years, driverless technology has been developing rapidly. Driverless technology can be applied in a variety of scenarios, and vehicles drive and complete tasks according to the routes in the driverless car map.
[0003] In the related technology, the point cloud map can be used as a base map, and a map for unmanned vehicles (high-precision map) can be manually drawn based on the point cloud map.
[0004] However, for some scenarios with small spaces or indoors, such as park logistics and factory cleaning, low-speed unmanned driving is required, and the driving accuracy of unmanned vehicles is required to be high, for example, the deviation between the driving route and the actual road should not exceed 0.5 meters. Therefore, in these scenarios, the accuracy of high-precision maps produced using the methods in related technologies is not enough. Summary of the invention
[0005] In view of this, the present disclosure proposes a solution for generating a map for an unmanned vehicle.
[0006] According to one aspect of the present disclosure, a method for generating a map for an unmanned vehicle is provided, comprising:
[0007] Acquire the attributes of multiple sampling points collected when the vehicle is traveling in the area, wherein the attributes include the coordinates of the sampling points, and the sampling points are the positions of the vehicle when sampling;
[0008] Determining a plurality of driving trajectories of the vehicle according to the coordinates of the plurality of sampling points;
[0009] Taking the single driving trajectory as the center line and according to the preset route width threshold, a route in the unmanned vehicle map is generated.
[0010] In a possible implementation, the generating of a route in the map for the unmanned vehicle with the single driving trajectory as the center line according to a preset route width threshold includes:
[0011] Traversing the sampling points, and determining a first sampling point having a segmentation identifier among the sampling points;
[0012] The driving track formed by the sampling points is divided into a plurality of sub-driving tracks by using the first sampling points.
[0013] In a possible implementation, using the first sampling point to divide the driving trajectory formed by the sampling point into a plurality of sub-driving trajectories includes:
[0014] In the case where the segment identifier is an intersection, determining a trajectory formed by continuous first sampling points as a first sub-travel trajectory;
[0015] Determine a second sampling point that is continuous before the first sub-driving trajectory as a second sub-driving trajectory, wherein the second sampling point is a sampling point that does not have a segmentation mark;
[0016] A second sampling point that is continuous after the first sub-driving trajectory is determined as a third sub-driving trajectory.
[0017] In a possible implementation, using the first sampling point to divide the driving trajectory formed by the sampling point into a plurality of sub-driving trajectories includes:
[0018] In the case where the segment identifier is a left turn or a right turn, and there is a third sampling point before the first sampling point, a trajectory consisting of the sampling points between the first sampling point and the third sampling point and the third sampling point is determined as a fourth sub-travel trajectory; the third sampling point is the first sampling point before and adjacent to the first sampling point;
[0019] In the case that the third sampling point does not exist before the first sampling point currently traversed, the trajectory formed by the sampling points before the first sampling point currently traversed is determined as the fifth sub-travel trajectory.
[0020] In a possible implementation, the generating of a route in the map for the unmanned vehicle with the single driving trajectory as the center line according to the preset route width threshold includes:
[0021] Taking the sub-travel trajectory as the center line and according to the preset route width threshold, generating a route segment;
[0022] The routing segments are traversed in sampling order, and if the index values of the sampling points in two adjacent routing segments are continuous, the two adjacent routing segments are merged.
[0023] In a possible implementation, the generating of a route in the map for the unmanned vehicle with the single driving trajectory as the center line according to the preset route width threshold includes:
[0024] Taking the sub-travel trajectory as the center line and according to the preset route width threshold, generating a route segment;
[0025] Traversing the routing segments in a sampling order, and if the index values of the sampling points in two adjacent routing segments are not continuous, determining the distance between the two adjacent routing segments;
[0026] When the distance is less than a preset distance threshold, the two adjacent routing segments are merged.
[0027] In a possible implementation, the routing segment is composed of the sub-travel track and routing edges on both sides of the sub-travel track, and the routing segment is generated based on the sub-travel track as the center line and according to the preset routing width threshold, including:
[0028] Determine a line connecting two adjacent sampling points in the sub-travel trajectory as a first line segment;
[0029] Determine a first perpendicular line and a second perpendicular line perpendicular to the first line segment, wherein the first perpendicular line passes through one of the two adjacent sampling points, and the second perpendicular line passes through the other of the two adjacent sampling points;
[0030] According to the preset route width threshold, boundary points are determined on the first vertical line and the second vertical line respectively;
[0031] The boundary points on both sides of the sub-driving route are respectively connected to obtain a routing edge.
[0032] According to another aspect of the present disclosure, a map generating device for an unmanned vehicle is provided, comprising:
[0033] A sampling point attribute acquisition unit, used to acquire the attributes of a plurality of sampling points collected during the vehicle's driving in the area, wherein the attributes include the coordinates of the sampling points, and the sampling points are the positions of the vehicle at the time of sampling;
[0034] A driving trajectory determination unit, used to determine a plurality of driving trajectories of the vehicle according to the coordinates of a plurality of sampling points;
[0035] The route generation unit is used to generate a route in the map for the unmanned vehicle based on the single driving trajectory as the center line and according to a preset route width threshold.
[0036] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0037] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.
[0038] According to another aspect of the present disclosure, a computer program product is provided, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0039] In an embodiment of the present disclosure, the attributes of multiple sampling points collected during the vehicle's driving in the area are obtained, and the attributes include the coordinates of the sampling points, and the sampling points are the positions of the vehicle when sampling; based on the coordinates of the multiple sampling points, multiple driving trajectories of the vehicle are determined. Since the sampling points are collected and obtained during the normal driving of the vehicle, if the unmanned vehicle drives according to the vehicle driving trajectory presented by the sampling points, the probability of deviating from the road can be reduced. Therefore, a single driving trajectory can be used as the center line, and a route in the unmanned vehicle map can be generated according to a preset route width threshold. In this way, the accuracy of the unmanned vehicle map can be improved. The unmanned vehicle drives according to the map composed of the routes obtained in this way, which can improve driving safety. Even in a scene with a small space or a scene with many obstacles, the probability of the vehicle deviating from the road or colliding with an object can be reduced.
[0040] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.
[0042] Figure 1 A flowchart of a method for generating a map for an unmanned vehicle provided in an embodiment of the present disclosure.
[0043] Figure 2a A schematic diagram of a method for merging routing segments provided in an embodiment of the present disclosure.
[0044] Figure 2b A schematic diagram of another method for merging routing segments provided in an embodiment of the present disclosure.
[0045] Figure 3 A schematic diagram of a map generating device for an unmanned vehicle provided in an embodiment of the present disclosure.
[0046] Figure 4 A schematic diagram of an electronic device provided in an embodiment of the present disclosure.
[0047] Figure 5 A schematic diagram of another electronic device provided according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0048] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0049] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0050] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.
[0051] Autonomous vehicle maps are different from ordinary electronic maps. Autonomous vehicle maps can guide vehicles to drive automatically. Autonomous vehicle maps can consist of multiple routes. A route can be the route a vehicle takes from one location to another. There can be multiple routes between two locations. Routes can have overlapping parts.
[0052] In related technologies, point clouds can be used to draw maps for driverless cars. This method is suitable for wide roads, such as roads with two lanes or more in both directions. When vehicles travel on such roads, they are more tolerant of errors in the maps for driverless cars. Because the roads are wide, even if there are certain errors in the routes in the maps, it will not cause the vehicles to run off the road or collide with roadside facilities.
[0053] However, in indoor scenes, point clouds representing ceilings and walls will interfere with the drawing of autonomous driving maps, increasing the probability of errors. In addition, in the case of narrow roads, for example, when a vehicle is driving on the road and the distance between the vehicle and the edge of the road is no more than 30 cm, the autonomous driving map drawn using point clouds cannot meet the needs of driving safety, making it easy for the vehicle to collide with the edge of the road when turning.
[0054] Therefore, there is an urgent need to improve the accuracy of autonomous driving maps to meet the needs of vehicles driving indoors or on narrow roads.
[0055] Figure 1 The following is a flow chart of a method for generating a map for an unmanned vehicle provided in an embodiment of the present disclosure. Figure 1 As shown, the method includes:
[0056] S11, acquiring attributes of a plurality of sampling points collected when the vehicle is traveling in the area, wherein the attributes include coordinates of the sampling points, and the sampling points are positions of the vehicle when sampling;
[0057] The vehicle is driven in a preset area under the control of the driver. The area can be an area for unmanned vehicles to drive. The area can be an outdoor area or an indoor area.
[0058] During the driving process of the vehicle, the position of the vehicle is collected manually or automatically by the device to obtain multiple sampling points. In the embodiment of the present disclosure, the device can be used to automatically obtain sampling points during the driving process of the vehicle according to the preset collection frequency; or the staff can manually collect sampling points during the driving process of the vehicle. The embodiment of the present disclosure does not limit the method of collecting sampling points. The sampling points here can have sampling point attributes, and the sampling point attributes include: sampling point coordinates, and in addition, segmentation identifiers can also be included. The sampling point coordinates here can be the coordinates of the vehicle's position corresponding to the geographic coordinate system at the time of sampling. For example, if the Universal Transverse Mercator projection coordinate system (UTM) is sampled, the sampling point coordinates can be UTM coordinates. The sampling points with segmentation identifiers can segment the vehicle's driving trajectory. The segmentation identifiers here can represent special positions in the vehicle's driving trajectory, such as turns, intersections, etc.
[0059] S12, determining a plurality of driving trajectories of the vehicle according to the coordinates of the plurality of sampling points;
[0060] After obtaining the attributes of the sampling points, the relative positional relationship between the sampling points can be determined according to the coordinates of the sampling points, and then the trajectory presented by the sampling points arranged according to the coordinates, that is, the vehicle driving trajectory, is obtained.
[0061] The vehicle driving trajectory can represent the driving route of the vehicle from the starting point to the end point. The same road can correspond to multiple driving trajectories. For example, a straight road 1 with points A and B as endpoints, and there is no turn in the road 1. The vehicle can form driving trajectory 1 from point A to point B, and the vehicle can form driving trajectory 2 from point B to point A. Therefore, road 1 can correspond to at least two driving trajectories. In addition, road 1 can also correspond to other driving trajectories passing through road 1.
[0062] S13, taking the single driving trajectory as the center line and according to a preset route width threshold, generating a route in the map for the unmanned vehicle.
[0063] The route in the self-driving car map is the predetermined route of the vehicle from one point to another. The route can guide the self-driving vehicle to automatically drive from the starting point of the route to the end point of the route.
[0064] Taking a driving track as the center line, according to the preset route width, determine the distance between the route edge and the center line, generate a route edge on both sides of the center line, and the center line and the route edges on both sides of the center line constitute a route. The map for unmanned vehicles can be composed of at least one route. The preset route width here can be smaller than the width of the actual road corresponding to the route.
[0065] In an embodiment of the present disclosure, the attributes of multiple sampling points collected during the vehicle's driving in the area are obtained, and the attributes include the coordinates of the sampling points, and the sampling points are the positions of the vehicle when sampling; based on the coordinates of the multiple sampling points, multiple driving trajectories of the vehicle are determined. Since the sampling points are collected and obtained during the normal driving of the vehicle, if the unmanned vehicle drives according to the vehicle driving trajectory presented by the sampling points, the probability of deviating from the road can be reduced. Therefore, a single driving trajectory can be used as the center line, and a route in the unmanned vehicle map can be generated according to a preset route width threshold. In this way, the accuracy of the unmanned vehicle map can be improved. The unmanned vehicle drives according to the map composed of the routes obtained in this way, which can improve driving safety. Even in a scene with a small space or a scene with many obstacles, the probability of the vehicle deviating from the road or colliding with an object can be reduced.
[0066] In a possible implementation, the generating of a route in a map for an unmanned vehicle with a single driving trajectory as the center line according to a preset route width threshold includes: traversing the sampling points to determine a first sampling point with a segmentation mark among the sampling points; and using the first sampling point to divide the driving trajectory formed by the sampling points into a plurality of sub-driving trajectories.
[0067] In the disclosed embodiment, the sampling point attribute may include a segment identification field. The value of the segment identification field may be a true value or a false value, or may be a value that specifically identifies a special location. The special location here may be a location connecting two road sections, for example, a location connecting two straight road sections, such as a turn or an intersection. In this case, the value of the segment identification may be: intersection, turn, etc.
[0068] When the segmentation identifier in the sampling point attribute is a true value or a value specifically identifying a special position, the sampling point is determined as the first sampling point. The first sampling point and other sampling points together constitute a driving trajectory. Therefore, the driving trajectory can be divided into at least two sub-driving trajectories using the first sampling point. A single sub-driving trajectory can correspond to a road section on a real road.
[0069] The number of sub-trajectories obtained after division is related to the position of the first sampling point and the number of the first sampling points. If there are N first sampling points, and M of them are the endpoints of the driving trajectory, N-M+1 sub-trajectories can be divided using the N first sampling points. Among them, N≥1, 0≤M≤2, N, M are positive integers.
[0070] In actual scenarios, the sub-trajectory corresponding to the same road segment can appear in multiple driving trajectories. Therefore, multiple driving trajectories may have some overlapping trajectories. A single driving trajectory corresponds to a route in the map for unmanned vehicles. A single route contains at least one route segment. Each sub-trajectory can correspond to a route segment. Therefore, the driving trajectory is first divided into multiple sub-trajectories to facilitate the selection of sub-trajectories when generating routes, for example: selecting one from repeated sub-trajectories and selecting non-repeated sub-trajectories; improving the efficiency and accuracy of generating routes using driving trajectories.
[0071] In a possible implementation, the first sampling points are used to divide the driving trajectory formed by the sampling points into multiple sub-driving trajectories, including: when the segmentation identifier is an intersection, the trajectory formed by the continuous first sampling points is determined as the first sub-driving trajectory; the second continuous sampling points before the first sub-driving trajectory are determined as the second sub-driving trajectory, and the second sampling points are sampling points without a segmentation identifier; the second continuous sampling points after the first sub-driving trajectory are determined as the third sub-driving trajectory.
[0072] In the process of collecting sampling points, when a vehicle passes through an intersection, multiple sampling points may be collected continuously, and the segmentation identifiers of these sampling points are assigned values that characterize the intersection, for example, the value of the segmentation identifier may be: intersection. Therefore, there are multiple continuous first sampling points. In the embodiment of the present disclosure, a sampling point without a segmentation identifier (a segmentation identifier is a false value, or the value of the segmentation identifier is empty) is defined as a second sampling point.
[0073] In the disclosed embodiment, a driving trajectory consisting of a plurality of continuous first sampling points is determined as a first sub-driving trajectory. A driving trajectory consisting of continuous second sampling points located before and adjacent to the first sub-driving trajectory is determined as a second sub-driving trajectory; and a driving trajectory consisting of continuous second sampling points located after and adjacent to the first sub-driving trajectory is determined as a third sub-driving trajectory.
[0074] In this way, when the driving trajectory contains an intersection, the driving trajectory is divided into a first sub-driving trajectory corresponding to the road section where the intersection is located, a second sub-driving trajectory between the intersection and the first sampling point before and adjacent to the intersection, and a third sub-driving trajectory between the intersection and the first sampling point after and adjacent to the intersection.
[0075] In actual roads, intersections are often used as traffic hubs. Therefore, in the map for driverless cars, intersections often appear in multiple routes. Therefore, the first sub-trajectory corresponding to the intersection is first determined, and then the first sub-trajectory is used to divide the driving trajectory. In this way, the divided sub-trajectory is more reasonable in the subsequent generation of routes, which improves the accuracy and efficiency of generating routes. Moreover, using the first sub-trajectory to divide the driving trajectory can improve the efficiency of driving trajectory division and make it easier to divide the driving trajectory.
[0076] In a possible implementation, the first sampling point is used to divide the driving trajectory formed by the sampling points into multiple sub-driving trajectories, including: when the segment is identified as a left turn or a right turn, if there is a third sampling point before the first sampling point, the trajectory composed of the sampling points between the first sampling point and the third sampling point and the third sampling point is determined as a fourth sub-driving trajectory; the third sampling point is the first sampling point before and adjacent to the first sampling point; when the third sampling point does not exist before the first sampling point currently traversed, the trajectory composed of the sampling points before the first sampling point currently traversed is determined as a fifth sub-driving trajectory.
[0077] In the process of collecting sampling points, when the vehicle turns, the segment identifier of the collected sampling points can be assigned a value representing the turning point, for example, the value of the segment identifier can be: left turn or right turn. In this way, the first sampling point is collected at the turning point. In the embodiment of the present disclosure, the first sampling point that is before the first sampling point and adjacent to the first sampling point is determined as the third sampling point.
[0078] In the embodiment of the present disclosure, if the first sampling point is not the first first sampling point of the driving trajectory, that is, if there is a third sampling point before the first sampling point, the trajectory composed of the third sampling point and the sampling points between the third sampling point and the first sampling point is determined as the fourth sub-driving trajectory. If the first sampling point is the first first sampling point of the driving trajectory, that is, if there is no third sampling point before the first sampling point, the trajectory composed of the sampling points before the first sampling point is determined as the fifth sub-driving trajectory.
[0079] In this way, when the driving trajectory includes a turn, the driving trajectory is divided by the first sampling point collected at the turn. When there is no third sampling point before the first sampling point, the sub-driving trajectory before the first sampling point does not contain any first sampling point; when there is a third sampling point before the first sampling point, the sub-driving trajectory contains a first sampling point, and the first sampling point is located at the head of the sub-driving trajectory.
[0080] In actual roads, the turning point is often used as a sign to divide the road. For example, before the turn, the car is on Road C, and after the turn, it is on Road D. This can also be confirmed from the naming of actual roads. Therefore, using the segment identification value as the first sampling point of the left or right turn to divide the driving trajectory meets the actual application requirements and improves the accuracy and efficiency of generating routes. Moreover, using the first sub-driving trajectory to divide the driving trajectory can improve the efficiency of driving trajectory division and make it easier to divide the driving trajectory.
[0081] In actual roads, intersections are often used as traffic hubs. Therefore, in driverless car maps, intersections often appear in multiple routes. Therefore, the first sub-trajectory corresponding to the intersection is first determined, and then the first sub-trajectory is used to divide the driving trajectory. In this way, the divided sub-trajectory is more reasonable in the subsequent generation of routes, which improves the accuracy and efficiency of generating routes. Moreover, the driving trajectory is divided by using the first sampling point with a segment identification value of a left turn or a right turn, which can improve the efficiency of driving trajectory division and make it easier to divide the driving trajectory.
[0082] In a possible implementation, the method of generating a route in a map for an unmanned vehicle with the single driving trajectory as the center line according to the preset route width threshold includes: generating route segments with the sub-driving trajectory as the center line according to the preset route width threshold; traversing the route segments in a sampling order, and merging the two adjacent route segments if the index values of the sampling points in the two adjacent route segments are continuous.
[0083] In the disclosed embodiment, before generating the route segment, after dividing the route track into sub-travel tracks, a target sub-travel track can be selected. The target sub-travel track can be used to generate each route of the map for the driverless vehicle. The target sub-travel tracks do not overlap with each other. Then, taking the target sub-travel track as the center line, the route segment edges are generated on both sides of the center line according to the preset route width threshold. The center line and the route segment edges on both sides of the center line constitute the route segment. In this way, the probability of repeatedly generating the same route segment can be reduced, thereby improving the efficiency of generating routes and reducing the workload.
[0084] During sampling, the sampling points can present a driving route after being arranged in the sampling order. Therefore, the route segment can be traversed in the sampling order. The sampling point attribute may include an index value of the sampling point, and the index value may be an identifier that reflects the sampling order, such as an Arabic numeral. In the process of traversing the route segment, if the index value of the last sampling point a in the previous route segment of two adjacent route segments is continuous with the index value of the sampling point b with the smallest distance from the sampling point a in the next route segment, the two route segments are connected so that the two route segments belong to the same route. Exemplarily: the sampling point attribute may include a subordinate route field. If the index values of the sampling points in two adjacent route segments are continuous, the two route segments belong to the same route, for example, they belong to route 1. Then, the value of the subordinate route segment field of the sampling points in the two adjacent route segments may be the identifier of route 1. In the case where the same route segment belongs to multiple routes, the value of the subordinate route segment field in the route segment may be multiple.
[0085] Figure 2a A schematic diagram of a method for merging routing segments provided in an embodiment of the present disclosure.
[0086] Figure 2a As shown, a road in the real world can be represented. For the convenience of description below, the road is named Road P1. The vehicle obtains 12 sampling points from location P to location Q, namely A1...A12. Among them, the segments of A6, A7, and A8 are marked as intersections. Therefore, the driving trajectory A1-A12 of the vehicle from location P to location Q can be divided into three sub-trajectory: A1-A5, A6-A8, and A9-A12. These three sub-trajectory generate routing segments, respectively, using A1-A5 to generate routing segment 1, using A6-A8 to generate routing segment 2, and using A9-A12 to generate routing segment 3.
[0087] When a route needs to be generated, the route segments are traversed in the sampling order. The index value of the last sampling point in route segment 1 is A5, and the index value of the sampling point closest to A5 in route segment 2 is A6, indicating that route segments 1 and route segments 2 are continuous. Routing segments 1 and routing segments 2 can be merged into the same route.
[0088] In the disclosed embodiment, whether two adjacent route segments can be merged into a route is directly determined by whether the index values of the sampling points are continuous, which is simple and easy to implement and improves the efficiency of merging route segments.
[0089] In a possible implementation, the generating of a route in a map for an unmanned vehicle with the single driving trajectory as the center line according to the preset route width threshold includes: generating a route segment with the sub-driving trajectory as the center line according to the preset route width threshold; traversing the route segment in a sampling order, and determining the distance between the two adjacent route segments if the index values of the sampling points in two adjacent route segments are not continuous; and merging the two adjacent route segments when the distance is less than the preset distance threshold.
[0090] In the disclosed embodiment, before generating a route segment, after dividing the driving track into sub-driving tracks, a target sub-driving track can be selected, and each target sub-driving track does not overlap with each other. Then, with the target sub-driving track as the center line, the route segment edges are generated on both sides of the center line according to the preset route width threshold. The center line and the route segment edges on both sides of the center line constitute the route segment. In this way, the probability of repeatedly generating the same route segment can be reduced, thereby improving the efficiency of generating routes and reducing the workload.
[0091] During sampling, the sampling points can be arranged in the sampling order to present a driving route. Therefore, the route segments can be traversed in the sampling order. The sampling point attributes may include index values of the sampling points, and the index values may be identifiers that reflect the sampling order, such as Arabic numerals. In the process of traversing the route segments, if the index value of the last sampling point a in the previous route segment of two adjacent route segments is discontinuous with the index value of the sampling point b in the next route segment that is the smallest distance from the sampling point a, the distance between the two route segments can be determined based on the coordinates of the sampling point a and the coordinates of the sampling point b. If the distance is less than a preset distance threshold, the two route segments can be made to belong to the same route. The preset distance threshold may be the average value of the distance between the sampling points in the two route segments, or it may be the distance value of the preset sampling points during sampling, which is not limited in the embodiments of the present disclosure.
[0092] Exemplarily, the sampling point attribute may include a belonging route field. If the index values of the sampling points in two adjacent route segments are not continuous, but the distance between the two adjacent route segments is less than a preset distance threshold, then the two route segments belong to the same route, for example, both belong to route 1. Then, the value of the belonging route segment field of the sampling points in the two adjacent route segments may be the identifier of route 1. In the case where the same route segment belongs to multiple routes, the value of the belonging route segment field in the route segment may be multiple.
[0093] Figure 2b A schematic diagram of another method for merging routing segments provided in an embodiment of the present disclosure.
[0094] Figure 2b The real-world road P1 is also shown, but Figure 2a The difference is that the vehicle is traveling from location Q to location P. A total of 12 sampling points are obtained during the vehicle's driving process, namely A21...A32. Among them, the segments of A26, A27, and A28 are marked as intersections. Therefore, the vehicle's driving trajectory A21-A32 from location Q to location P can be divided into three sub-trajectories: A21-A25, A26-A28, and A29-A32.
[0095] Combination Figure 2a , Figure 2b , A6 and A28 can overlap, A8 and A26 can overlap, which means that sub-trajectory A6-A8 overlaps with sub-trajectory A26-A28. Therefore, sub-trajectory A26-A28 can be deleted before generating routing segments. Use A21-A25 to generate routing segment 4, and use A29-A32 to generate routing segment 5.
[0096] When a route needs to be generated, the route segments are traversed in the sampling order. The index value of the last sampling point in route segment 4 is A25, and the index value of the sampling point closest to A25 in route segment 2 is A8, indicating that route segment 4 is discontinuous with route segment 2. The coordinates of A25 and A8 can be used to determine the distance between route segment 4 and route segment 2. Since A8 and A26 overlap, the distance between route segment 4 and route segment 2 is less than the preset distance threshold. Therefore, route segment 4 and route segment 2 can be merged into the same route.
[0097] In the disclosed embodiment, when the index values of the sampling points in two routing segments are discontinuous, it can be determined whether the distance between the two routing segments is less than a preset distance threshold. If it is less than, it means that although the two routing segments do not correspond to the same driving trajectory, it is possible that duplicate sub-travel trajectories are deleted in the selection of sub-travel trajectories, which makes the index values discontinuous. Therefore, the two routing segments can still be merged. In this way, the accuracy of merging routing segments is improved.
[0098] In a possible implementation, the routing segment is composed of the sub-driving trajectory and routing edges on both sides of the sub-driving trajectory. The routing segment is generated with the sub-driving trajectory as the center line according to the preset routing width threshold, including: determining the line connecting two adjacent sampling points in the sub-driving trajectory as a first line segment; determining a first vertical line and a second vertical line perpendicular to the first line segment, the first vertical line passing through one of the two adjacent sampling points, and the second vertical line passing through the other of the two adjacent sampling points; determining boundary points on the first vertical line and the second vertical line respectively according to the preset routing width threshold; and connecting the boundary points on both sides of the sub-driving route respectively to obtain routing edges.
[0099] In the disclosed embodiment, in the sub-driving trajectory, two adjacent sampling points are used as endpoints to determine the first line segment, and on the vertical line passing through any endpoint and perpendicular to the first line segment, two boundary points with a distance of a preset distance threshold are determined, and the two boundary points are respectively located on both sides of the first line segment, and the distances of the two boundary points from the first line segment are equal. Therefore, in the sub-driving trajectory, a single sampling point can correspond to two boundary points, and the single sampling point and its corresponding boundary point are on the same straight line, and the straight line passes through the single sampling point and is perpendicular to the first line segment. In this way, after the boundary points on one side are connected, the direction of the determined routing edge can remain the same as the driving trajectory. Since the driving trajectory is determined by the vehicle driving on a real road, the routing edge determined in this way is more accurate and more in line with the direction of the actual road.
[0100] Figure 3 A schematic diagram of a map generating device for an unmanned vehicle provided in an embodiment of the present disclosure. The device 20 includes:
[0101] The sampling point attribute acquisition unit 21 is used to acquire the attributes of a plurality of sampling points collected when the vehicle is traveling in the area, wherein the attributes include the coordinates of the sampling points, and the sampling points are the positions of the vehicle when sampling;
[0102] A driving track determination unit 22, configured to determine a plurality of driving tracks of the vehicle according to the coordinates of the plurality of sampling points;
[0103] The route generating unit 23 is used to generate a route in the map for the unmanned vehicle based on the single driving trajectory as the center line and according to a preset route width threshold.
[0104] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0105] The embodiment of the present disclosure also provides a computer-readable storage medium on which computer program instructions are stored, and the computer program instructions implement the above method when executed by a processor. The computer-readable storage medium can be a volatile or non-volatile computer-readable storage medium.
[0106] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the above method when executing the instructions stored in the memory.
[0107] The embodiments of the present disclosure also provide a computer program product, including a computer-readable code, or a non-volatile computer-readable storage medium carrying the computer-readable code. When the computer-readable code runs in a processor of an electronic device, the processor in the electronic device executes the above method.
[0108] Figure 4 A schematic diagram of an electronic device provided by an embodiment of the present disclosure. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0109] Reference Figure 4 , the device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 (I / O interface), a sensor component 814 , and a communication component 816 .
[0110] The processing component 802 generally controls the overall operation of the device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0111] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0112] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 800.
[0113] The multimedia component 808 includes a screen that provides an output interface between the device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0114] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the device 800 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0115] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0116] The sensor assembly 814 includes one or more sensors for providing various aspects of the status assessment of the device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the device 800, and the sensor assembly 814 can also detect the position change of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration / deceleration of the device 800, and the temperature change of the device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0117] The communication component 816 is configured to facilitate wired or wireless communication between the device 800 and other devices. The device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0118] In an exemplary embodiment, the apparatus 800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0119] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by the processor 820 of the device 800 to perform the above method.
[0120] Figure 5 Schematic diagram of an electronic device provided by an embodiment of the present disclosure. For example, the electronic device 1900 can be provided as a server or a terminal device. Figure 5 , the electronic device 1900 includes a processing component 1922, which further includes one or more processors, and a memory resource represented by a memory 1932 for storing instructions that can be executed by the processing component 1922, such as an application. The application stored in the memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1922 is configured to execute instructions to perform the above method.
[0121] The electronic device 1900 may also include a power supply component 1926 configured to perform power management of the electronic device 1900, a wired or wireless network interface 1950 configured to connect the electronic device 1900 to a network, and an input / output interface 1958 (I / O interface). The electronic device 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server 2003. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSDTM or similar.
[0122] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 1932 including computer program instructions, which can be executed by the processing component 1922 of the electronic device 1900 to perform the above method.
[0123] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0124] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0125] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0126] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.
[0127] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments 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-readable program instructions.
[0128] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0129] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0130] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0131] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for generating a map for an unmanned vehicle, characterized in that: include: Acquire the attributes of multiple sampling points collected when the vehicle is traveling in the area, wherein the attributes include the coordinates of the sampling points, and the sampling points are the positions of the vehicle when sampling; Determining a plurality of driving trajectories of the vehicle according to the coordinates of the plurality of sampling points; Taking the single driving trajectory as the center line and according to the preset route width threshold, a route in the unmanned vehicle map is generated.
2. The method according to claim 1, characterized in that: The method of generating a route in a map for an unmanned vehicle based on a single driving trajectory as a center line and according to a preset route width threshold comprises: Traversing the sampling points, and determining a first sampling point having a segmentation identifier among the sampling points; The driving track formed by the sampling points is divided into a plurality of sub-driving tracks by using the first sampling points.
3. The method according to claim 2, characterized in that The step of utilizing the first sampling points to divide the driving track formed by the sampling points into a plurality of sub-driving tracks includes: In the case where the segment identifier is an intersection, determining a trajectory formed by continuous first sampling points as a first sub-travel trajectory; Determine a second sampling point that is continuous before the first sub-driving trajectory as a second sub-driving trajectory, wherein the second sampling point is a sampling point that does not have a segmentation mark; A second sampling point that is continuous after the first sub-driving trajectory is determined as a third sub-driving trajectory.
4. The method according to claim 2, characterized in that: The step of utilizing the first sampling points to divide the driving track formed by the sampling points into a plurality of sub-driving tracks includes: In the case where the segment identifier is a left turn or a right turn, and there is a third sampling point before the first sampling point, a trajectory consisting of the sampling points between the first sampling point and the third sampling point and the third sampling point is determined as a fourth sub-travel trajectory; the third sampling point is the first sampling point before and adjacent to the first sampling point; In the case that the third sampling point does not exist before the first sampling point currently traversed, the trajectory formed by the sampling points before the first sampling point currently traversed is determined as the fifth sub-travel trajectory.
5. The method according to claim 2, characterized in that: The generating of a route in the map for the unmanned vehicle based on the single driving trajectory as the center line and the preset route width threshold comprises: Taking the sub-travel trajectory as the center line and according to the preset route width threshold, generating a route segment; The routing segments are traversed in sampling order, and if the index values of the sampling points in two adjacent routing segments are continuous, the two adjacent routing segments are merged.
6. The method according to claim 2, characterized in that The generating of a route in the map for the unmanned vehicle based on the single driving trajectory as the center line and the preset route width threshold comprises: Taking the sub-travel trajectory as the center line and according to the preset route width threshold, generating a route segment; Traversing the routing segments in a sampling order, and if the index values of the sampling points in two adjacent routing segments are not continuous, determining the distance between the two adjacent routing segments; When the distance is less than a preset distance threshold, the two adjacent routing segments are merged.
7. The method according to claim 5 or 6, characterized in that: The routing segment is composed of the sub-travel track and the routing edges on both sides of the sub-travel track. The sub-travel track is used as the center line and the routing segment is generated according to the preset routing width threshold, including: Determine a line connecting two adjacent sampling points in the sub-travel trajectory as a first line segment; Determine a first perpendicular line and a second perpendicular line perpendicular to the first line segment, wherein the first perpendicular line passes through one of the two adjacent sampling points, and the second perpendicular line passes through the other of the two adjacent sampling points; According to the preset route width threshold, boundary points are determined on the first vertical line and the second vertical line respectively; The boundary points on both sides of the sub-driving route are respectively connected to obtain a routing edge.
8. A map generating device for an unmanned vehicle, characterized in that: include: A sampling point attribute acquisition unit, used to acquire the attributes of a plurality of sampling points collected during the vehicle's driving in the area, wherein the attributes include the coordinates of the sampling points, and the sampling points are the positions of the vehicle at the time of sampling; A driving trajectory determination unit, used to determine a plurality of driving trajectories of the vehicle according to the coordinates of a plurality of sampling points; The route generation unit is used to generate a route in the map for the unmanned vehicle based on the single driving trajectory as the center line and according to a preset route width threshold.
9. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method described in any one of claims 1 to 7 when executing the instructions stored in the memory.
10. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.
