Parking trajectory generation method combining offline and online solutions
By generating the digital map of the parking lot offline and combining it with the online trajectory generation method, the problem of high resource consumption of real-time trajectory generation for autonomous vehicles in complex scenes is solved, low-cost, fast and real-time parking scene trajectory generation is achieved, and the automatic Parking efficiency of driving vehicles.
Patent Information
- Application Number
- CN202080003334.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-31
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-03-31
AI Technical Summary
Real-time trajectory generation of autonomous vehicles in complex scenarios requires a large amount of computing resources, resulting in high computing resource consumption and long generation time, making it difficult to meet real-time needs.
By generating high-definition digital maps and parking trajectories of parking lots offline, and combining online and offline trajectory generation methods, we provide a low-cost, fast and real-time parking scenario trajectory generation solution. Specific steps include: generating offline parking trajectories based on the early planning and control data of the parking lot, using a hybrid A* search algorithm to optimize trajectory generation, and adjusting trajectories in real time to achieve fast parking.
It reduces the requirements for computing resources for real-time trajectory generation, improves the efficiency and accuracy of trajectory generation, realizes fast parking solutions in complex scenes, and saves valuable computing resources.
Smart Images

Figure CN113748059B
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure generally relate to operating an automated vehicle. More specifically, embodiments of the present disclosure relate to generating trajectories for an automated vehicle (ADV). Background Art
[0002] A vehicle operating in an autonomous mode (e.g., without human control) can relieve occupants (particularly the driver) from some driving-related responsibilities. When operating in an autonomous mode, the vehicle can navigate to various locations using onboard sensors, allowing the vehicle to be driven with minimal human interaction or in some situations without any passengers.
[0003] Motion planning and control are key operations in autonomous driving. Time is an important key factor in many self-driving scenarios. Although self-driving vehicles usually need to generate trajectories in real time, real-time trajectory generation often requires a lot of computing resources. Therefore, real-time trajectory generation is very demanding on precious computing resources and may take a certain amount of time in complex scenarios. Summary of the invention
[0004] Embodiments of the present disclosure provide a computer-implemented method, a non-transitory machine-readable medium, and a data processing system for operating an autonomous vehicle (ADV).
[0005] According to a first aspect, some embodiments of the present disclosure provide a computer-implemented method for operating an autonomous vehicle (ADV), the method comprising: in response to a request to park the ADV in a parking lot, obtaining a parking trajectory set associated with a predetermined set of positions near one or more parking spaces in the parking lot, wherein the parking trajectory set is pre-generated based on preliminary planning and control data of the parking lot, and each parking trajectory corresponds to one of the one or more parking spaces in the parking lot; selecting a parking trajectory from the parking trajectory set based on a current position of the ADV; and controlling the ADV to park in the corresponding parking space according to the selected parking trajectory.
[0006] According to a second aspect, some embodiments of the present invention provide a non-transitory machine-readable medium having instructions stored therein, which, when executed by a processor, causes the processor to perform operations, the operations comprising: in response to a request to park an autonomous driving vehicle (ADV) in a parking lot, obtaining a parking trajectory set associated with a predetermined set of positions near one or more parking spaces in the parking lot, wherein the parking trajectory set is pre-generated based on preliminary planning and control data of the parking lot, and each parking trajectory corresponds to one of the one or more parking spaces in the parking lot; selecting a parking trajectory from the parking trajectory set based on a current position of the ADV; and controlling the ADV to park in the corresponding parking space according to the selected parking trajectory.
[0007] According to a third aspect, some embodiments of the present disclosure provide a data processing system, the system comprising: a processor; and a memory, connected to the processor to store instructions, which when executed by the processor causes the processor to perform operations, the operations comprising: in response to a request to park an ADV in a parking lot, obtaining a parking trajectory set associated with a predetermined position set near one or more parking spaces in the parking lot, wherein the parking trajectory set is pre-generated based on preliminary planning and control data of the parking lot, and each parking trajectory corresponds to one of the one or more parking spaces in the parking lot; selecting a parking trajectory from the parking trajectory set based on a current position of the ADV; and controlling the ADV to park in the corresponding parking space according to the selected parking trajectory.
[0008] An embodiment of the present disclosure also provides such a computer program product, including a computer program, which implements the following method when executed by a processor: in response to a request to park an ADV in a parking lot, obtaining a parking trajectory set associated with a predetermined position set near one or more parking spaces in the parking lot, wherein the parking trajectory set is pre-generated based on preliminary planning and control data of the parking lot, and each of the parking trajectories corresponds to one of the one or more parking spaces in the parking lot; selecting a parking trajectory from the parking trajectory set based on a current position of the ADV; and controlling the ADV to park in the corresponding parking space according to the selected parking trajectory. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Embodiments of the present disclosure are illustrated by way of example and not limitation in the figures of the accompanying drawings in which like reference numerals indicate similar elements.
[0010] Figure 1 is a block diagram illustrating a networked system according to one embodiment.
[0011] Figure 2 is a block diagram illustrating an example of an automated vehicle according to one embodiment.
[0012] FIG. 3A to FIG. 3B is a block diagram illustrating an example of a perception and planning system for use with an automated vehicle, according to one embodiment.
[0013] Figure 4 is a block diagram illustrating an example of a planning module according to one embodiment.
[0014] Figure 5 is a process flow diagram of a planning module according to one embodiment.
[0015] Fig. 6A is a diagram showing an example of a parking trajectory generated offline.
[0016] Figure 6BAn example of a table storing a parking trajectory set generated offline is shown.
[0017] Figure 7 is a flowchart illustrating an example of a process of generating a parking trajectory set offline according to one embodiment.
[0018] Figure 8 An example of a method for parking an ADV in a parking space by combining offline and online trajectory generation is shown in accordance with some implementations.
[0019] Fig. 9 is a flow chart illustrating an example of a process for parking an ADV in a parking space by combining offline and online trajectory generation, according to some implementations.
[0020] Fig.10 is a flow chart illustrating a detailed example of a process for parking an ADV in a parking space by combining offline and online trajectory generation, according to some implementations. DETAILED DESCRIPTION
[0021] Various embodiments and aspects of the present disclosure will be described with reference to the details discussed below, and the accompanying drawings will illustrate various embodiments. The following description and drawings are illustrative of the present disclosure and should not be construed as limiting the present disclosure. In order to provide a thorough understanding of the various embodiments of the present disclosure, a large number of specific details are described. However, in some cases, in order to provide a concise discussion of the embodiments of the present disclosure, known or conventional details are not described.
[0022] References in this specification to "one embodiment" or "an embodiment" mean that a particular feature, structure, or characteristic described in conjunction with the embodiment can be included in at least one embodiment of the present disclosure. The appearances of the phrase "in one embodiment" in various places in this specification are not necessarily all referring to the same embodiment.
[0023] According to some embodiments, an offline high-definition digital map may first be generated by collecting planning and control data of the parking lot. Once the digital map is generated, the parking trajectory of the parking space in the parking lot may be generated offline by using the digital map. For each parking space in the digital map, a parking trajectory toward the parking space may be generated for many feasible predetermined positions (positions calculated offline). If the ADV is at a position different from the predetermined position (position calculated offline), it is only necessary to generate a trajectory of the ADV driving from the position to the nearest predetermined position (position calculated offline) in real time. Once the ADV reaches the nearest predetermined position (position calculated offline), the ADV may only need to capture the corresponding parking trajectory generated offline from the nearest predetermined position to the corresponding parking space, and follow the captured parking trajectory. By combining online and offline trajectory generation methods, a low-cost trajectory generation solution for parking scenarios is provided.
[0024] According to some embodiments, in response to a request to park the ADV in a parking lot, a parking trajectory set associated with a predetermined position set near one or more parking spaces in the parking lot may be obtained, wherein the parking trajectory set is pre-generated based on planning and control data collected in advance of the parking lot, and each parking trajectory in the parking trajectory set may correspond to one of the one or more parking spaces in the parking lot; a parking trajectory may be selected from the parking trajectory set based on the current position of the ADV. The ADV may be controlled to park in the corresponding parking space according to the selected parking trajectory.
[0025] Figure 1 is a block diagram showing an automatic vehicle network configuration according to one embodiment of the present disclosure. Figure 1 , the network configuration 100 includes: an automatic vehicle 101 that can be communicatively connected to one or more servers 103 to 104 via a network 102. Although one automatic vehicle is shown, multiple automatic vehicles can be connected to each other and / or to the servers 103 to 104 via the network 102. The network 102 can be any type of network, wired or wireless, such as a local area network (LAN), a wide area network (WAN) (such as the Internet, a cellular network, a satellite network), or a combination thereof. The servers 103 to 104 can be any kind of server or server cluster, such as a web or cloud server, an application server, a back-end server, or a combination thereof. The servers 103 to 104 can be data analysis servers, content servers, traffic information servers, maps and points of interest (MPOI) servers, or location servers, etc.
[0026] An autonomous vehicle refers to a vehicle that can be configured in an automated mode in which the vehicle navigates through an environment with little or no input from a driver. Such an autonomous vehicle may include: a sensor system having one or more sensors configured to detect information about the environment in which the vehicle is operating. The vehicle and its associated controller use the detected information to navigate through the environment. The autonomous vehicle 101 can operate in a manual mode, a fully automated mode, or a partially automated mode.
[0027] In one embodiment, the automatic vehicle 101 includes, but is not limited to, a perception and planning system 110, a vehicle control system 111, a wireless communication system 112, a user interface system 113, and a sensor system 115. The automatic vehicle 101 may also include certain common components included in ordinary vehicles, such as an engine, wheels, a steering wheel, a transmission, etc., which may be controlled by the vehicle control system 111 and / or the perception and planning system 110 using a variety of communication signals and / or commands (e.g., acceleration signals or commands, deceleration signals or commands, steering signals or commands, braking signals or commands, etc.).
[0028] Components 110 to 115 may be communicatively coupled to one another via an interconnect, a bus, a network, or a combination thereof. For example, components 110 to 115 may be communicatively coupled to one another via a controller area network (CAN) bus. The CAN bus is a vehicle bus standard designed to allow microcontrollers and devices to communicate with one another in applications without a host computer. It is a message-based protocol originally designed for multiplexed electrical wiring within an automobile, but is also used in many other environments.
[0029] Now refer to Figure 2 In one embodiment, the sensor system 115 includes, but is not limited to, one or more cameras 211, a global positioning system (GPS) unit 212, an inertial measurement unit (IMU) 213, a radar unit 214, and a light detection and ranging (LIDAR) unit 215. The GPS system 212 may include a transceiver operable to provide information about the position of the automatic vehicle. The IMU unit 213 may sense the position and orientation changes of the automatic vehicle based on inertial acceleration. The radar unit 214 may represent a system that uses radio signals to sense objects within the local environment of the automatic vehicle. In some embodiments, in addition to sensing objects, the radar unit 214 may additionally sense the speed and / or heading of the object. The LIDAR unit 215 may use lasers to sense objects in the environment in which the automatic vehicle is located. Among other system components, the LIDAR unit 215 may also include one or more laser sources, a laser scanner, and one or more detectors. The camera 211 may include one or more devices for capturing images of the environment surrounding the automatic vehicle. The camera 211 may be a still camera and / or a video camera. The camera may be mechanically movable, for example, by mounting the camera on a rotating and / or tilting platform.
[0030] The sensor system 115 may also include other sensors, such as: a sonar sensor, an infrared sensor, a steering sensor, a throttle sensor, a brake sensor, and an audio sensor (e.g., a microphone). The audio sensor may be configured to capture sound from the environment surrounding the autonomous vehicle. The steering sensor may be configured to sense the steering angle of the steering wheel, the wheels of the vehicle, or a combination thereof. The throttle sensor and the brake sensor sense the throttle position and the brake position of the vehicle, respectively. In some cases, the throttle sensor and the brake sensor may be integrated into an integrated throttle / brake sensor.
[0031] In one embodiment, the vehicle control system 111 includes, but is not limited to, a steering unit 201, a throttle unit 202 (also referred to as an acceleration unit), and a brake unit 203. The steering unit 201 is used to adjust the direction or forward direction of the vehicle. The throttle unit 202 is used to control the speed of the motor or engine, which in turn controls the speed and acceleration of the vehicle. The brake unit 203 decelerates the vehicle by providing friction to slow down the speed of the wheels or tires of the vehicle. It should be noted that, as Figure 2 The components shown may be implemented in hardware, software or a combination thereof.
[0032] Return to reference Figure 1 , the wireless communication system 112 allows communication between the automatic vehicle 101 and external systems such as devices, sensors, other vehicles, etc. For example, the wireless communication system 112 can communicate wirelessly directly with one or more devices, or communicate wirelessly with one or more devices via a communication network, such as communicating with a server 103 to a server 104 through the network 102. The wireless communication system 112 can use any cellular communication network or wireless local area network (WLAN), for example, using WiFi to communicate with another component or system. The wireless communication system 112 can communicate directly with a device (e.g., a passenger's mobile device, a display device, a speaker in the vehicle 101) using, for example, an infrared link, Bluetooth, etc. The user interface system 113 can be part of a peripheral device implemented in the vehicle 101, including: for example, a keyboard, a touch screen display device, a microphone and a speaker, etc.
[0033] Some or all of the functions of the automated vehicle 101 may be controlled or managed by the perception and planning system 110, particularly when operating in an automated driving mode. The perception and planning system 110 includes the necessary hardware (e.g., processor, memory, storage) and software (e.g., operating system, planning and routing programs) to receive information from the sensor system 115, the control system 111, the wireless communication system 112, and / or the user interface system 113, process the received information, plan a route or path from a starting point to a destination point, and then drive the vehicle 101 based on the planning and control information. Alternatively, the perception and planning system 110 may be integrated with the vehicle control system 111.
[0034] For example, a user as a passenger may specify a starting location and a destination of a trip, for example, via a user interface. The perception and planning system 110 obtains trip-related data. For example, the perception and planning system 110 may obtain location and route information from an MPOI server, which may be part of the server 103 to the server 104. The location server provides location services, and the MPOI server provides map services and POIs of certain locations. Alternatively, such location and MPOI information may be locally cached in a permanent storage device of the perception and planning system 110.
[0035] As the automated vehicle 101 moves along the route, the perception and planning system 110 may also obtain real-time traffic information from a traffic information system or server (TIS). It should be noted that the servers 103 to 104 may be operated by a third-party entity. Alternatively, the functionality of the servers 103 to 104 may be integrated with the perception and planning system 110. Based on the real-time traffic information, MPOI information, and location information, as well as real-time local environmental data (e.g., obstacles, objects, nearby vehicles) detected or sensed by the sensor system 115, the perception and planning system 110 may plan an optimal route and drive the vehicle 101 according to the planned route, for example, via the control system 111, to safely and efficiently reach a designated destination.
[0036] The server 103 may be a data analysis system, thereby performing data analysis services for various clients. In one embodiment, the data analysis system 103 includes: a data collector 121 and a machine learning engine 122. The data collector 121 collects driving statistics 123 from various vehicles (automatic vehicles or conventional vehicles driven by human drivers). The driving statistics 123 include information indicating the driving commands issued (e.g., throttle, brake, steering instructions) and the responses of the vehicle (e.g., speed, acceleration, deceleration, direction) captured by the vehicle's sensors at different points in time. The driving statistics 123 may also include information describing the driving environment at different points in time, such as routes (including starting and destination locations), MPOI, road conditions, weather conditions, etc.
[0037] Based on the driving statistics 123, the machine learning engine 122 generates or trains a set of rules, algorithms, and / or prediction models 124 for various purposes. In one embodiment, the algorithm 124 may include: an algorithm or model for generating a parking trajectory set based on a digital map based on the previous planning and control data of the parking lot, an algorithm for obtaining a parking trajectory set associated with a predetermined position set near one or more parking spaces in the parking lot, an algorithm for selecting a parking trajectory from the parking trajectory set based on the current position of the ADV, and / or an algorithm or prediction model for controlling the ADV to park in the corresponding parking space according to the selected parking trajectory, which will be described in further detail below. Then, the algorithm 124 may be uploaded to the ADV (e.g., Figure 3A model 313) for real-time use during autonomous driving.
[0038] Figure 3A and Figure 3B is a block diagram illustrating an example of a perception and planning system for use with an autonomous vehicle according to one embodiment. System 300 may be implemented as Figure 1 A portion of an autonomous vehicle 101 includes, but is not limited to, a perception and planning system 110, a control system 111, and a sensor system 115. FIG. 3A to FIG. 3B The perception and planning system 110 includes but is not limited to: a positioning module 301, a perception module 302, a prediction module 303, a decision module 304, a planning module 305, a control module 306 and a route scheduling module 307.
[0039] Some or all of the modules 301 to 307 may be implemented in software, hardware, or a combination thereof. For example, these modules may be installed in permanent storage 352, loaded into memory 351, and executed by one or more processors (not shown). It should be noted that some or all of these modules may be communicatively coupled to Figure 2 Some or all modules of the vehicle control system 111 or Figure 2 Some or all modules of the vehicle control system 111 are integrated together. Some of the modules 301 to 307 can be integrated together into an integrated module.
[0040] The positioning module 301 determines the current location of the automatic vehicle 300 (e.g., using the GPS unit 212) and manages any data related to the user's itinerary or route. The positioning module 301 (also referred to as the map and route module) manages any data related to the user's itinerary or route. The user can log in, for example, via a user interface and specify the starting location and destination of the itinerary. The positioning module 301 communicates with other components of the automatic vehicle 300 (such as map and route information 311) to obtain itinerary related data. For example, the positioning module 301 can obtain location and route information from a location server and a map and POI (MPOI) server. The location server provides location services, and the MPOI server provides map services and POIs of certain locations, which can be cached as part of the map and route information 311. When the automatic vehicle 300 moves along the route, the positioning module 301 can also obtain real-time traffic information from a traffic information system or server.
[0041] Based on the sensor data provided by the sensor system 115 and the positioning information obtained by the positioning module 301, the perception module 302 determines the perception of the surrounding environment. The perception information may represent what a normal driver would perceive around the vehicle that the driver is driving. The perception may include, for example, lane configuration in the form of objects, traffic light signals, the relative position of another vehicle, pedestrians, buildings, crosswalks or other traffic-related signs (e.g., stop signs, yield signs), etc. The lane configuration includes information describing one or more lanes, such as the shape of the lane (e.g., straight or curved), the width of the lane, the number of lanes in the road, one-way or two-way lanes, merging or splitting lanes, exit lanes, etc.
[0042] The perception module 302 may include a computer vision system or the functionality of a computer vision system to process and analyze images captured by one or more cameras to identify objects and / or features in the environment of the automated vehicle. The objects may include, among others, traffic signs, road boundaries, other vehicles, pedestrians, and / or obstacles. The computer vision system may use object recognition algorithms, video tracking, and other computer vision techniques. In some embodiments, the computer vision system may map the environment, track objects, and estimate the speed of objects, among other things. The perception module 302 may also detect objects based on other sensor data provided by other sensors, such as radar and / or LIDAR.
[0043] For each object, the prediction module 303 predicts how the object will behave in this situation. Predictions are performed based on perception data of the driving environment at a point in time, given a set of map / route information 311 and traffic rules 312. For example, if the object is a vehicle in the opposite direction and the current driving environment includes an intersection, the prediction module 303 will predict whether the vehicle is likely to go straight ahead or turn. If the perception data indicates that there is no traffic light at the intersection, the prediction module 303 may predict that the vehicle may have to come to a complete stop before entering the intersection. If the perception data indicates that the vehicle is currently in a left-turn-only lane or a right-turn-only lane, the prediction module 303 may predict that the vehicle will be more likely to turn left or right, respectively.
[0044] For each object, the decision module 304 makes a decision about how to handle the object. For example, for a particular object (e.g., another vehicle in a crossing path) and its metadata describing the object (e.g., speed, direction, steering angle), the decision module 304 decides how to encounter the object (e.g., pass, yield, stop, overtake). The decision module 304 may make such decisions based on a set of rules such as traffic rules or driving rules 312 that may be stored in the persistent storage device 352.
[0045] The route arrangement module 307 is configured to provide one or more routes or paths from the starting point to the destination point. For a given itinerary from the starting location to the destination location (e.g., a given itinerary received from a user), the route arrangement module 307 obtains the route and map information 311 and determines all possible routes or paths from the starting location to the destination location. The route arrangement module 307 can generate a reference line in the form of a topographic map for each route it determines from the starting location to the destination location. The reference line refers to an ideal route or path that is not interfered with by any other (such as other vehicles, obstacles or traffic conditions). That is, if there are no other vehicles, pedestrians or obstacles on the road, the ADV should follow the reference line accurately or closely. Then, the topographic map is provided to the decision module 304 and / or the planning module 305. The decision module 304 and / or the planning module 305 examine all possible routes to select and modify one of the best routes in view of other data provided by other modules (such as traffic conditions from the positioning module 301, the driving environment perceived by the perception module 302, and traffic conditions predicted by the prediction module 303). Depending on the particular driving circumstances at a point in time, the actual path or route used to control the ADV may be close to or different from the reference line provided by the routing module 307 .
[0046] Based on the decision for each object sensed, the planning module 305 plans a path or route and driving parameters (e.g., distance, speed, and / or steering angle) for the automated vehicle using the reference lines provided by the routing module 307 as a basis. That is, for a given object, the decision module 304 decides what to do with the object, and the planning module 305 determines how to do it. For example, for a given object, the decision module 304 may decide to overtake the object, and the planning module 305 may determine whether to overtake on the left or right side of the object. Planning and control data are generated by the planning module 305, which includes information describing how the vehicle 300 will move in the next movement cycle (e.g., the next route / path segment). For example, the planning and control data may indicate that the vehicle 300 moves at a speed of 30 miles per hour (mph) for 10 meters and then changes to the right lane at a speed of 25mph.
[0047] Based on the planning and control data, the control module 306 controls and drives the automated vehicle according to the route or path defined by the planning and control data by sending appropriate commands or signals to the vehicle control system 111. The planning and control data includes sufficient information to drive the vehicle from a first point on the route or path to a second point using appropriate vehicle settings or driving parameters (e.g., throttle, brake, steering commands) at different points in time along the route or path.
[0048] In one embodiment, the planning phase is performed in multiple planning cycles (also referred to as driving cycles), for example, in cycles with a time interval of 100 milliseconds (ms). For each planning cycle or each driving cycle, one or more control commands will be issued based on the planning and control data. That is, for every 100ms, the planning module 305 plans the next route segment or path segment, for example, including the target position and the time required for the ADV to reach the target position. Alternatively, the planning module 305 may also specify a specific speed, direction and / or steering angle, etc. In one embodiment, the planning module 305 plans the route segment or path segment for the next predetermined period of time (such as 5 seconds). For each planning cycle, the planning module 305 plans the target position of the current cycle (e.g., the next 5 seconds) based on the target position planned in the previous cycle. Then the control module 306 generates one or more control commands (e.g., throttle, brake, steering control commands) based on the planning and control data of the current cycle.
[0049] It should be noted that the decision module 304 and the planning module 305 can be integrated into an integrated module. The decision module 304 / planning module 305 can include: a navigation system or a function of the navigation system to determine a driving path for the automatic vehicle. For example, the navigation system can determine a series of speeds and directions of travel for affecting the movement of the automatic vehicle along the following path: the path substantially avoids perceived obstacles while the automatic vehicle moves along a road-based path to the final destination. The destination can be set based on user input via the user interface system 113. The navigation system can dynamically update the driving path while the automatic vehicle is operating. The navigation system can combine data from a GPS system and one or more maps to determine the driving path of the automatic vehicle.
[0050] In one embodiment, information of a parking lot may be collected, including lanes and one or more parking spaces in the parking lot. A high-definition digital map may be generated based on the previous planning and control data of the parking lot. A parking trajectory set associated with a predetermined set of locations near one or more parking spaces in the parking lot may be generated based on the digital map. For each parking space in the parking lot, a subset of the parking trajectory set may be generated for a subset of the predetermined set of locations near the parking space. The parking trajectory set may be stored in the parking trajectory information 314 in the map and route information 311.
[0051] According to one embodiment, the planning module 305 may be configured to: in response to a request to park the ADV in the parking lot, obtain a parking trajectory set associated with a predetermined position set near one or more parking spaces in the parking lot (e.g., obtained from the parking trajectory information 314). The parking trajectory set may be pre-generated based on previous planning and control data of the parking lot, and each parking trajectory of the parking trajectory set corresponds to one of the one or more parking spaces in the parking lot. The planning module 305 may also be configured to select a parking trajectory from the parking trajectory set based on the current position of the ADV. The control module 306 may be configured to control the ADV to park in the corresponding parking space according to the selected parking trajectory.
[0052] Figure 4 is a block diagram illustrating an example of the planning module 305, and Figure 5 is a process flow chart of the planning module 305 according to one embodiment. Figure 4 and Figure 5 The planning module 305 includes, but is not limited to, a determination module 401, a grasping module 402, a selection module 403, a trajectory module 404, and an obstacle module 405, which work together using the stored parking trajectory information 314 to park the ADV in the corresponding parking space according to the selected parking trajectory. Note that the modules 401 to 405 may be integrated into a smaller number of modules or a single module.
[0053] According to one embodiment, in response to a request to park the ADV in a parking lot, the capture module 402 may be configured to obtain a parking trajectory set associated with a predetermined location set near one or more parking spaces in the parking lot, wherein the parking trajectory set is pre-generated based on previous planning and control data of the parking lot, and wherein each parking trajectory in the parking trajectory set corresponds to one of the one or more parking spaces in the parking lot. The selection module 403 may be configured to select a parking trajectory from the parking trajectory set based on the current location of the ADV.
[0054] In one embodiment, the determination module 401 may be configured to determine the current position of the ADV when the parking function is activated at the parking lot. The determination module 401 may also be configured to determine whether the current position matches a position in a predetermined set of positions.
[0055] In one embodiment, the determination module 401 may be configured to determine that the current position matches a predetermined position in the predetermined position set, wherein the selected parking trajectory is associated with the matched predetermined position. The control module 306 may be configured to control the ADV to drive away from the matched predetermined position and park in the corresponding parking space according to the selected parking trajectory.
[0056] In one embodiment, the determination module 401 may be configured to determine that the current position does not match any position in the set of predetermined positions. The determination module 401 may also be configured to determine the closest predetermined position to the current position in the set of predetermined positions, wherein the selected parking trajectory is associated with the closest predetermined position. The trajectory module 404 may be configured to generate a trajectory from the current position to the closest predetermined position. The control module 306 may be configured to control the ADV to drive from the current position to the closest predetermined position according to the generated trajectory, and control the ADV to drive away from the closest predetermined position and park in the corresponding parking space according to the selected parking trajectory.
[0057] In one embodiment, the perception module 302 may be configured to detect obstacles blocking the selected parking trajectory based on sensor data obtained from a plurality of sensors mounted on the ADV. The obstacle module 405 may be configured to send a command to stop the ADV in response to detecting the obstacle. The control module 306 may be configured to control the ADV to resume the selected parking trajectory when the obstacle is removed.
[0058] Time is an important factor in many self-driving scenarios. Although ADVs may often need to generate trajectories in real time, real-time trajectory generation often requires a lot of computing resources. Therefore, real-time trajectory generation is very demanding on precious computing resources and may take a certain amount of time in complex scenarios.
[0059] Less demanding real-time trajectory generation methods can save valuable computational resources for other components and speed up the trajectory generation process. It may be necessary to develop methods using both offline and online parking trajectory generation algorithms to achieve low-cost, fast, and real-time parking solutions.
[0060] Fig. 6A 600a is a diagram showing an example of a parking trajectory generated offline. In parking lot 601, planning and control data such as parking spaces (e.g., 602), lanes, static obstacles, driving restrictions in the parking lot, etc. may be collected. An offline high-definition digital map (not shown) may be generated based on the collected planning and control data in parking lot 601. The digital map includes all parking spaces in parking lot 601 where the self-driving vehicle may reside. Once the digital map is established, a parking trajectory (e.g., 621) in parking lot 601 may be generated offline.
[0061] In offline processing, digital maps can be divided into grids, such as Fig. 6A The resolution of the grid can be set to balance the computation time and the quality of the parking trajectories. In general, the higher the resolution, the longer the computation time and the better the generated parking trajectories. Therefore, there is a trade-off between the computation time and the quality of the generated parking trajectories. For example, the resolution of the grid can be set to give a computation time within 1-2 seconds for each parking trajectory.
[0062] In one embodiment, a hybrid A-star (A*) search algorithm or A* search algorithm may be used to search for parking trajectories. Nodes in the grid may represent predetermined / feasible locations. The A* search algorithm is an information search algorithm. Starting from the starting node of the graph, A* aims to find a route or path to the destination node with the minimum cost (minimum travel distance, shortest time, etc.). The A* search accomplishes this by maintaining a path tree starting at the starting node and extending those paths one edge at a time until its termination criteria are met. At each iteration of its main loop, A* determines which paths in its path to extend based on the cost of the path and the cost estimate required to extend the path all the way to the destination node. The hybrid A* search algorithm is a variant of the A* search algorithm applied to the three-dimensional (3D) motion state space of the vehicle, but has a modified state update rule that captures the continuous state data in the discrete search nodes of A*. As in the A* search algorithm, the search space (x, y, θ) is discretized, but unlike the traditional A* that only allows access to the center of the cell, the hybrid A* search algorithm associates the continuous 3D state of the vehicle with each grid cell. The hybrid A* search algorithm can use the motion model of ADV. The route or path obtained from the hybrid A* search algorithm is drivable, rather than piecewise linear as in the case of the A* search algorithm.
[0063] For each parking space (e.g., 602) in the map, a parking trajectory toward the parking space (e.g., 602) may be generated for one or more feasible positions (e.g., 611, 612, 613, 614, 615, 616) as predetermined positions. For example, for the parking space 602, there may be one or more feasible positions / predetermined positions to drive from its position to the parking space 602. The one or more feasible positions / predetermined positions near the parking space 602 may include: predetermined positions 611, 612, 613, 614, 615, 616, etc. For each parking space, a predetermined / feasible position near the parking space may be determined based on a predetermined threshold distance to the parking space. For example, the predetermined threshold distance to the parking space may be 5 meters, 10 meters, 15 meters, 20 meters, or any value therebetween. The higher the resolution of the digital map, the more predetermined positions there are near one or more parking spaces in the parking lot. For example, for each parking space in the parking lot, the number / quality of predetermined locations near the parking lot can be 10, 20, 30, 50, 80, 100, or any value therebetween. For each predetermined location, a parking trajectory starting from the predetermined location to the corresponding parking space can be generated.
[0064] As an example, for the predetermined location 611, a parking trajectory 621 may be generated by using a hybrid A* search algorithm. The starting node may be a node representing the predetermined location 611, and the destination node may be a node representing the parking space 602. The hybrid A* search algorithm may be used to find the parking trajectory 621 from the predetermined location 611 to the corresponding parking space 602. Similarly, the hybrid A* search algorithm may be used to find a subset of parking trajectories (e.g., 621, 622, 623, 624, 625, 626) from a subset of predetermined locations (e.g., 611, 612, 613, 614, 615, 616) to the corresponding parking space (e.g., 602), as shown in FIG. Figure 6B As shown in FIG. 1 ). Therefore, a parking trajectory set from a predetermined position set to all parking spaces in a parking lot may be generated offline (for example, by using a hybrid A* search algorithm).
[0065] Figure 6B An example of a portion of a table 600b storing a set of offline generated parking space trajectories is shown, which may be stored in a data structure such as the parking trajectory table shown. For each parking space (e.g., 602), a subset of parking trajectories (e.g., 621, 622, 623, 624, 625, 626) of a subset of predetermined locations (e.g., 611, 612, 613, 614, 615, 616) near the parking space (e.g., 602) may be generated and stored offline. Once parking trajectories for all feasible locations / predetermined locations in the grid are generated (which typically takes several minutes or even hours), these trajectories may be stored in a table, such as Figure 6BAs shown. Therefore, a parking trajectory set of a predetermined set of locations near all parking spaces in the parking lot may be generated and stored in a table. The parking trajectory table may be stored as part of the parking trajectory information 314.
[0066] Figure 7 700 is a flow chart illustrating an example of a process for generating a parking trajectory set offline according to one embodiment. Process 700 may be performed by processing logic that may include software, hardware, or a combination thereof. Process 700 may be performed by an ADV, a computer, or any type of computing device. Figure 7 In operation 701, the processing logic collects planning and control data of a parking lot. In operation 702, the processing logic generates a digital map based on the collected planning and control data of the parking lot. In operation 703, the processing logic generates a set of parking trajectories associated with a predetermined set of positions near one or more parking spaces in the parking lot based on the digital map, wherein each parking trajectory corresponds to one of the one or more parking spaces in the parking lot. In operation 704, the processing logic stores the set of parking trajectories associated with the predetermined set of positions near one or more parking spaces in the parking lot.
[0067] Figure 8 An example of a method for parking an ADV in a parking space by combining offline and online trajectory generation according to some embodiments is shown. In this method, offline and online trajectory generation algorithms are combined to achieve a low-cost, fast and real-time parking solution.
[0068] Reference Figure 8 , in the online step, ADV 803 may arrive at parking lot 801 and decide to activate the parking function. Once activated, ADV 803 may be configured to determine the real-time current location 810 of the ADV (e.g., determined from positioning module 301). ADV 803 may be configured to compare the current location 810 with a set of predetermined locations stored offline (e.g., 811), wherein the set of predetermined locations stored offline is associated with a set of parking trajectories generated offline (e.g., 821). For example, the set of predetermined locations stored offline and the set of parking trajectories generated offline may be stored in a table, such as Figure 6B The ADV 803 may be configured to obtain (eg, via the capture module 402 ) a set of parking trajectories generated offline and associated with a set of predetermined locations stored offline.
[0069] In one embodiment, if the current position of the ADV matches a predetermined position associated with one of the trajectories in the parking trajectory set, a corresponding parking trajectory associated with the matching predetermined position is selected (eg, selected by the selection module 403 ) and the corresponding parking trajectory may be sent to the control module 306 .
[0070] In one embodiment, if the current position 810 of the ADV 803 does not match any predetermined position in the stored table, the nearest predetermined position 811 or feasible position of the stored table may be determined. The parking trajectory 821 associated with the nearest predetermined position 811 may be selected (e.g., selected by the selection module 403). The ADV 803 may be configured to generate a trajectory 820 that guides the ADV 803 toward the nearest predetermined position 811. Once the nearest predetermined position 811 stored in the table is reached, the corresponding parking trajectory 821 associated with the nearest predetermined position 811 may be sent to the control module 306.
[0071] In this method, the ADV 803 only needs to generate a trajectory 820, wherein the trajectory 820 drives the ADV 803 from the current position 810 toward the predetermined position 811 in real time, and the predetermined position 811 is a position calculated offline. Once the ADV 803 reaches the predetermined position 811 (the position calculated offline), the ADV 803 only needs to capture the corresponding offline generated parking trajectory 821 and follow the parking trajectory 821 to park in the corresponding parking space 802. By combining the online and offline trajectory generation methods, a fast, low-cost and real-time parking trajectory generation solution for parking scenarios is provided.
[0072] In one embodiment, the parking trajectory set (e.g., 821) generated offline based on the digital map does not include any information about obstacles, which is an ideal situation. If there is an obstacle 804 during actual parking, the perception module 302 can be configured to detect the obstacle 804 that is blocking the selected parking trajectory 821 based on sensor data obtained from multiple sensors installed on the ADV 803. In response to detecting the obstacle 804, the obstacle module 405 can be configured to send a command to stop the ADV 803 in front of the obstacle 804 instead of driving around the obstacle 804. Once the obstacle 804 is removed, the control module 306 can be configured to control the ADV 803 to resume the selected parking trajectory 821 until the ADV 803 is parked in the parking space 802.
[0073] Fig. 9 900 is a flow chart illustrating an example of a process for parking an ADV in a parking space by combining offline and online trajectory generation according to some embodiments. Process 900 may be performed by processing logic that may include software, hardware, or a combination thereof. For example, process 900 may be performed by planning module 305 and control module 306. Fig. 9In operation 901, in response to a request to park an ADV in a parking lot, the processing logic obtains a parking trajectory set associated with a predetermined position set near one or more parking spaces in the parking lot, wherein the parking trajectory set is pre-generated based on previous planning and control data of the parking lot, and each parking trajectory corresponds to one of the one or more parking spaces in the parking lot. In operation 902, the processing logic selects a parking trajectory from the parking trajectory set based on the current position of the ADV. In operation 903, the processing logic controls the ADV to park in the corresponding parking space according to the selected parking trajectory.
[0074] In one embodiment, processing logic may determine a current location of the ADV when a parking function is activated at a parking lot and determine whether the current location matches one of a set of predetermined locations.
[0075] In one embodiment, the processing logic may determine that the current location matches a predetermined location in the set of predetermined locations, wherein the selected parking trajectory is associated with the matched predetermined location.
[0076] In an embodiment, the processing logic may determine that the current location does not match any location in the set of predetermined locations, and determine a predetermined location in the set of predetermined locations that is closest to the current location, wherein the selected parking trajectory is associated with the closest predetermined location. The processing logic may generate a trajectory from the current location to the closest predetermined location, and control the ADV to drive from the current location to the closest predetermined location according to the generated trajectory.
[0077] In one embodiment, a set of parking trajectories is pre-generated based on a digital map based on pre-planning and control data of the parking lot. In one embodiment, the pre-planning and control data of the parking lot includes: information related to one or more parking spaces and lanes in the parking lot. In one embodiment, for each of the one or more parking spaces, a subset of parking trajectories is generated for a subset of predetermined locations near the parking space.
[0078] In one embodiment, the processing logic may detect an obstacle blocking the selected parking trajectory based on sensor data obtained from a plurality of sensors mounted on the ADV. The processing logic may send a command to stop the ADV in response to detecting the obstacle. When the obstacle is removed, the processing logic may control the ADV to resume the selected parking trajectory.
[0079] Fig.10 1 is a flowchart illustrating a detailed example of a process for parking an ADV in a parking lot by combining offline and online trajectory generation according to some embodiments. Process 1000 may be performed by processing logic that may include software, hardware, or a combination thereof. For example, process 1000 may be performed by planning module 305 and control module 306. Fig.10In operation 1001, in response to a request to park an ADV in a parking lot, the processing logic obtains a parking trajectory set associated with a predetermined position set near one or more parking spaces in the parking lot, wherein the parking trajectory set is pre-generated based on previous planning and control data of the parking lot, and each parking trajectory corresponds to one of the one or more parking spaces in the parking lot.
[0080] In operation 1002, processing logic may determine the current location of the ADV when activating a parking function at a parking lot. In operation 1003, processing logic may determine whether the current location matches one of a set of predetermined locations.
[0081] In operation 1004, the processing logic may determine that the current location does not match any location in the set of predetermined locations. In operation 1005, the processing logic may determine the predetermined location in the set of predetermined locations that is closest to the current location. In operation 1006, the processing logic may generate a trajectory from the current location to the closest predetermined location. In operation 1007, the processing logic may control the ADV to drive from the current location to the closest predetermined location according to the generated trajectory.
[0082] In operation 1008, the processing logic selects a parking trajectory from the set of parking trajectories, wherein the selected parking trajectory is associated with the nearest predetermined position. In operation 1009, the processing logic may determine whether the current position matches a predetermined position in the set of predetermined positions. In operation 1010, the processing logic selects a parking trajectory from the set of parking trajectories, wherein the selected parking trajectory is associated with the matching predetermined position. In operation 1012, the processing logic controls the ADV to park in the corresponding parking space according to the selected parking trajectory.
[0083] It should be noted that some or all of the components shown and described above may be implemented in software, hardware, or a combination thereof. For example, such components may be implemented as software installed and stored in a permanent storage device, which may be loaded into a memory by a processor (not shown) and executed in the memory to implement the process or operation throughout the present application. Alternatively, such components may be implemented as executable code programmed or embedded in dedicated hardware (such as an integrated circuit (e.g., an application-specific integrated circuit or ASIC), a digital signal processor (DSP), or a field programmable gate array (FPGA)), which may be accessed via a corresponding driver and / or operating system from an application. In addition, such components may be implemented as specific hardware logic in a processor or processor core as part of an instruction set that may be accessed by a software component through one or more specific instructions.
[0084] Some portions of the foregoing detailed description have been presented in terms of algorithms and symbolic representations of operations on data bits within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the data processing arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is generally considered herein to be a self-consistent sequence of operations leading to a desired result. These operations are those requiring physical manipulation of physical quantities.
[0085] It should be borne in mind, however, that all of these and similar terms are intended to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless otherwise expressly indicated in the above discussion, it should be understood that throughout the specification, discussions utilizing terms such as those set forth in the appended claims refer to the actions and processes of a computer system or similar electronic computing device that manipulates data represented as physical (electronic) quantities within the computer system's registers and memories and transforms the data into other data similarly represented as physical quantities within the computer system's memories or registers or other such information storage, transmission, or display devices.
[0086] Embodiments of the present disclosure also relate to devices for performing the operations herein. Such a computer program is stored in a non-transitory computer-readable medium. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g., a computer). For example, a machine-readable (e.g., computer-readable) medium includes a machine (e.g., computer) readable storage medium (e.g., a read-only memory ("ROM"), a random access memory ("RAM"), a magnetic disk storage medium, an optical storage medium, a flash memory device).
[0087] The processes or methods depicted in the foregoing figures may be performed by processing logic including hardware (e.g., circuitry, dedicated logic, etc.), software (e.g., embodied on a non-transitory computer-readable medium), or a combination of both. Although the processes or methods are described above in terms of some sequential operations, it should be understood that some of the operations may be performed in a different order. Furthermore, some operations may be performed in parallel rather than sequentially.
[0088] The embodiments of the present disclosure are not described with reference to any particular programming language. It will be appreciated that a variety of programming languages may be used to implement the teachings of the embodiments of the present disclosure as described herein.
[0089] In the above description, embodiments of the present disclosure have been described with reference to specific exemplary embodiments of the present disclosure. It will be apparent that various modifications may be made to the present invention without departing from the broader spirit and scope of the present disclosure as set forth in the appended claims. Therefore, the present description and the accompanying drawings should be understood in an illustrative sense rather than a restrictive sense.
Claims
1. A computer-implemented method for operating an autonomous vehicle, the method comprising: In response to a request to park the autonomous vehicle in a parking lot, obtaining a set of parking trajectories associated with a predetermined set of locations near one or more parking spaces in the parking lot, wherein the set of parking trajectories is pre-generated based on previous planning and control data of the parking lot, and each of the set of parking trajectories corresponds to one of the one or more parking spaces in the parking lot; selecting a parking trajectory from the set of parking trajectories based on a result of whether the current position of the autonomous driving vehicle matches each predetermined position in the set of predetermined positions, the starting point of the parking trajectory being the predetermined position; and According to the selected parking trajectory, the autonomous driving vehicle is controlled to park in a corresponding parking space.
2. The method according to claim 1, further comprising: determining a current position of the autonomous vehicle when a parking function is activated at the parking lot; as well as A determination is made as to whether the current location matches a location in the set of predetermined locations.
3. The method according to claim 2, further comprising: It is determined that the current position matches a predetermined position in the set of predetermined positions, wherein the selected parking trajectory is associated with the matched predetermined position.
4. The method according to claim 2, further comprising: determining that the current location does not match any of the predetermined set of locations, and determining the nearest predetermined location of the predetermined location concentrated to the current location, The selected parking trajectory is associated with the nearest predetermined position.
5. The method according to claim 4, further comprising: generating a trajectory from the current position to the nearest predetermined position; as well as The autonomous driving vehicle is controlled to drive from the current position to the nearest predetermined position according to the generated trajectory.
6. The method according to claim 1, wherein The parking trajectory set is pre-generated according to a digital map based on the previous planning and control data of the parking lot.
7. The method according to claim 6, wherein: The preliminary planning and control data of the parking lot includes information related to the one or more parking spaces and lanes in the parking lot.
8. The method according to claim 1, wherein For each of the one or more parking spaces, a subset of parking trajectories is generated for a subset of predetermined locations near the parking space.
9. The method according to any one of claims 1 to 8, further comprising: detecting an obstacle blocking the selected parking trajectory based on sensor data obtained from a plurality of sensors mounted on the autonomous vehicle; In response to detecting the obstacle, sending a command to stop the autonomous vehicle; and When the obstacle is removed, the autonomous driving vehicle is controlled to resume the selected parking trajectory.
10. A non-transitory machine-readable medium having stored therein instructions that, when executed by a processor, cause the processor to perform operations comprising: In response to a request to park the autonomous vehicle in a parking lot, obtaining a set of parking trajectories associated with a predetermined set of locations near one or more parking spaces in the parking lot, wherein the set of parking trajectories is pre-generated based on previous planning and control data of the parking lot, and each of the set of parking trajectories corresponds to one of the one or more parking spaces in the parking lot; selecting a parking trajectory from the set of parking trajectories based on a result of whether the current position of the autonomous driving vehicle matches each predetermined position in the set of predetermined positions, the starting point of the parking trajectory being the predetermined position; and According to the selected parking trajectory, the autonomous driving vehicle is controlled to park in a corresponding parking space.
11. The medium according to claim 10, wherein The operations further include: determining a current position of the autonomous vehicle when a parking function is activated at the parking lot; and A determination is made as to whether the current location matches one of the predetermined set of locations.
12. The medium according to claim 11, wherein The operations further include determining that the current location matches a predetermined location in the set of predetermined locations, wherein the selected parking trajectory is associated with the matched predetermined location.
13. The medium according to claim 11, wherein The operations further include: determining that the current location does not match any of the predetermined set of locations, and Determine that the predetermined positions are concentrated to the nearest predetermined position to the current position, The selected parking trajectory is associated with the nearest predetermined position.
14. The medium according to claim 13, wherein The operations further include: generating a trajectory from the current location to the nearest predetermined location; and The autonomous driving vehicle is controlled to drive from the current position to the nearest predetermined position according to the generated trajectory.
15. The medium according to claim 10, wherein The parking trajectory set is pre-generated according to a digital map based on the previous planning and control data of the parking lot.
16. The medium according to any one of claims 10 to 15, wherein The operations further include: detecting an obstacle blocking the selected parking trajectory based on sensor data obtained from a plurality of sensors mounted on the autonomous vehicle; In response to detecting the obstacle, sending a command to stop the autonomous vehicle; and When the obstacle is removed, the autonomous driving vehicle is controlled to resume the selected parking trajectory.
17. Data processing systems, including: processor; as well as a memory coupled to the processor to store instructions that, when executed by the processor, cause the processor to perform operations comprising: In response to a request to park the autonomous vehicle in a parking lot, obtaining a set of parking trajectories associated with a predetermined set of locations near one or more parking spaces in the parking lot, wherein the set of parking trajectories is pre-generated based on previous planning and control data of the parking lot, and each of the set of parking trajectories corresponds to one of the one or more parking spaces in the parking lot; selecting a parking trajectory from the set of parking trajectories based on a result of whether the current position of the autonomous driving vehicle matches each predetermined position in the set of predetermined positions, the starting point of the parking trajectory being the predetermined position; and According to the selected parking trajectory, the autonomous driving vehicle is controlled to park in a corresponding parking space.
18. The system according to claim 17, wherein: The operations further include: determining a current position of the autonomous vehicle when a parking function is activated at the parking lot; and A determination is made as to whether the current location matches one of the predetermined set of locations.
19. The system according to claim 18, wherein: The operations further include determining that the current location matches a predetermined location in the set of predetermined locations, wherein the selected parking trajectory is associated with the matched predetermined location.
20. The system of claim 18, wherein: The operations further include: determining that the current location does not match any of the predetermined set of locations, and determining the nearest predetermined location of the predetermined location concentrated to the current location, The selected parking trajectory is associated with the nearest predetermined position.
21. The system of claim 20, wherein: The operations further include: generating a trajectory from the current location to the nearest predetermined location; and The autonomous driving vehicle is controlled to drive from the current position to the nearest predetermined position according to the generated trajectory.
22. Computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Automatic parking method and system
CN108284831A
Parking control method
CN108973987A
Planning parking trajectory for autonomous driving vehicles
CN110654376A
Method for operating vehicle, particularly for approaching parking space in parking zone that is non-visible or distant from road by vehicle, involves determining and storing multiple trajectories for home-parking space of home parking zone
DE102013015348A1
Method and device for carrying out an automatic drive of a vehicle
US20180265130A1
