WO2023092837A1 - Collision detection - Google Patents

Collision detection Download PDF

Info

Publication number
WO2023092837A1
WO2023092837A1 PCT/CN2022/071344 CN2022071344W WO2023092837A1 WO 2023092837 A1 WO2023092837 A1 WO 2023092837A1 CN 2022071344 W CN2022071344 W CN 2022071344W WO 2023092837 A1 WO2023092837 A1 WO 2023092837A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
model
circle
body model
driving
Prior art date
Application number
PCT/CN2022/071344
Other languages
French (fr)
Chinese (zh)
Inventor
黄超
叶玥
Original Assignee
上海仙途智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海仙途智能科技有限公司 filed Critical 上海仙途智能科技有限公司
Publication of WO2023092837A1 publication Critical patent/WO2023092837A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Definitions

  • the present application relates to the field of artificial intelligence, in particular to a method and device for collision detection.
  • the driving track area of an unmanned vehicle is generally related to the shape model of the vehicle.
  • the shape model of a conventional unmanned vehicle is to represent the entire body with a rectangular model, but the length and width of the rectangular model need to be proportional to the length and width of the vehicle Zooming, the accuracy is too poor, and a large number of safe areas around the vehicle will be framed.
  • relevant technical personnel proposed the traditional five-circle model, but the traditional five-circle model will cause the vehicle shape model to expand too much in width, and the accuracy is not high. Occupies a lot of safe area.
  • this application provides a method and device for collision detection, specifically, this application is achieved through the following technical solutions:
  • a method for collision detection is provided, the method is applied to an unmanned vehicle, and the method includes: obtaining the body model of the self-vehicle, and the body body model contained in the body model of the self-vehicle is multiple Circle model; Carry out collision detection according to the self-vehicle shape model; Wherein, when the rectangular body of the unmanned vehicle is divided into n rectangles along the long side direction, the n The centers of the circles are respectively the center points of the n rectangles, and the radius of each circle is the distance from any center point to the apex of the rectangle where it is located, and n is a positive integer greater than 1.
  • the body model of the self-vehicle when the unmanned vehicle has one or more accessories beyond the vehicle body, also includes a body model of the accessories; the body model of the accessories A single circle model corresponding to each attachment is included; the center of the single circle model is located at the midpoint of the line connecting the two furthest points on the corresponding attachment, and the diameter is the length of the line.
  • the unmanned vehicle when it has one or more accessories beyond the vehicle body, it also includes: obtaining the boundary of the road terrain within a preset distance in front of the vehicle; calculating In the case that all the accessories of the vehicle are deployed, the distance from the center of each accessory body model to the terrain boundary; if the distance is greater than the radius of the corresponding accessory body model, then expand the accessory corresponding to the accessory body model; if the If the distance is not greater than the radius of the corresponding accessory shape model, then the accessory corresponding to the accessory shape model is put away.
  • the collision detection based on the body model of the ego vehicle includes: obtaining the driving parameters of the ego vehicle and the driving parameters of the movable obstacle; the ego vehicle driving parameters include ego vehicle The driving trajectory and the driving speed of the own vehicle, the driving parameters of the movable obstacle include the driving trajectory of the movable obstacle and the driving speed of the movable obstacle; according to the driving parameters of the own vehicle and the driving parameters of the movable obstacle, if It is predicted that the driving area corresponding to the body model of the ego vehicle will overlap with the driving area of the movable obstacle, and then it is determined that there is a collision risk.
  • the collision detection based on the ego vehicle shape model further includes: calculating the collision moment between the unmanned vehicle and the movable obstacle, the collision The time is when the driving area corresponding to the body model of the own vehicle overlaps with the driving area of the movable obstacle; the speed of the own vehicle is replanned according to the collision time to eliminate the risk of collision.
  • the method for collision detection also includes: acquiring a variety of ego vehicle shape models; the multiple ego vehicle shape models include a plurality of multi-circle models with different numbers of circles; When the current road congestion situation is congested, select a model with a large number of circles for collision detection; if the current road congestion situation is smooth, select a model with a small number of circles for collision detection.
  • the multi-circle model is a five-circle model.
  • a collision detection device is provided, the device is applied to an unmanned vehicle, including:
  • the model acquisition module is used to obtain the body model of the self-vehicle, and the body shape model contained in the body model of the self-vehicle is a multi-circle model;
  • the collision detection module is used to perform collision detection according to the body model of the self-vehicle; wherein, in the In the case where the rectangular body of the unmanned vehicle is divided into n rectangles along the long side direction, the centers of the n circles included in the multi-circle model are respectively the center points of the n rectangles, and each The radius of a circle is the distance from any center point to the apex of the rectangle where it is located, and n is a positive integer greater than 1.
  • a storage medium stores computer program instructions, and after the computer program instructions are executed, the collision detection method provided by the embodiment of the foregoing first aspect can be implemented.
  • an electronic device including: a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein, when the computer program instructions are executed by the processor, it can realize The collision detection method provided by any of the foregoing embodiments.
  • the rectangular body of the unmanned vehicle is divided into multiple rectangles along the long side direction, with the center points of the multiple rectangles as the center, and the distance from the center point to the apex of each corresponding rectangle is Radius, build a multi-circle model, by reducing the radius of the largest circle in the model, avoid the model occupying too much safe area, and improve the accuracy of the unmanned vehicle shape model.
  • Fig. 1 is a kind of traditional five-circle model schematic diagram shown in the present application
  • Fig. 2 is a schematic diagram of a new five-circle model shown in the present application.
  • Fig. 3 is a flowchart of a method for collision detection shown in the present application.
  • Fig. 4 is a schematic diagram of a seven-circle model shown in the present application.
  • Fig. 5 is a schematic diagram of a three-circle model shown in the present application.
  • FIG. 6 is a flowchart of specific steps of a collision detection method shown in the present application.
  • Fig. 7 is a schematic diagram of automatic driving of a cleaning vehicle shown in the present application.
  • Fig. 8 is a hardware structure diagram of an unmanned vehicle where a collision detection device of the present application is located;
  • Fig. 9 is a block diagram of a collision detection device shown in the present application.
  • first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present application, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination.”
  • Fig. 1 is a schematic diagram of a traditional five-circle model shown in the present application. As shown in Fig.
  • the traditional five-circle model includes a large circle and four small circles, the center H of the large circle is the center point of the rectangular body, and the four small circles
  • the centers of the circles are respectively located on the angle bisectors of the four corners of the rectangle, as shown in Figure 1
  • the line connecting the center P of the small circle and the vertex Q is the angle bisector of the corners where the vertex Q is located, in order to make the five circles just cover the rectangle , the intersection point between two adjacent circles needs to be on the side of the rectangle, such as J in Figure 1.
  • the radius of the small circle is
  • the radius of the great circle is the radius of the great circle.
  • FIG. 2 is a schematic diagram of a new five-circle model shown in the present application.
  • a new five-circle model is constructed based on the plane rectangular body projected by the length and width of the unmanned vehicle in China. Specifically, the rectangular body is evenly divided into five rectangles along the long side, and the center point of each rectangle is is the center of the circle, and the distance from the center point to the apex is the radius to construct a circle. After combining five circles, a new five-circle model is obtained. As shown in Figure 2, the body is evenly divided into five rectangles. Taking the rectangle above the body as an example, the center of the circle is the center point N of the rectangle, and the radius is the distance from the center point N to the vertex M. The intersection point D of each circle is located on the long side, and the whole model can well cover the whole bus body. When the length of the bus is a and the width of the bus is b, the radius of each circle is
  • the radius of the circle in the new five-circle model is 1.6 meters, which expands by 0.7 meters from the original width of the bus body, occupying a safe area of 6.86 square meters , compared with the traditional five-circle model, it takes up less safety space and has higher accuracy in covering the body, enabling unmanned vehicles to better adapt to narrow passages.
  • the vehicle body shape model in this application is a multi-circle model, the number of circles is n, and n is a positive integer greater than 1.
  • the center point of these n rectangles is the center of the circle, and the distance from each center point to the corresponding rectangle vertex is the radius.
  • Circle the shape model of the unmanned vehicle is obtained by combining n circles.
  • Step S102 Obtain the body model of the self-vehicle, and the body model of the vehicle body contained in the body model of the self-vehicle is a multi-circle model.
  • the body model of the ego vehicle includes at least the body shape model.
  • the body model of the ego vehicle also includes the body model of the accessories.
  • the body model of the accessories is generally a single circular body model.
  • the body shape model of an unmanned vehicle is a multi-circle model, and the number of circles in the multi-circle model can be set by yourself.
  • a multi-circle model of five circles is generally selected as the body model.
  • the present application does not limit the number of circles contained in the adopted multi-circle model. For example, if you pay more attention to the accuracy of the body model, you can increase the number of circles. For example, you can choose the seven-circle model as shown in Figure 4.
  • Figure 4 is a schematic diagram of a seven-circle model shown in this application. ; Or, if you pay more attention to the working pressure of unmanned vehicles on collision detection, you can relatively reduce the number of circles. For example, you can choose the three-circle model as shown in Figure 5.
  • Figure 5 is a kind of Schematic diagram of the three-circle model.
  • Step S104 Perform collision detection according to the body model of the ego vehicle.
  • FIG. 6 is a flow chart of specific steps of a collision detection method shown in this application. parameters and driving parameters of movable obstacles.
  • the traveling parameters of the self-vehicle include the traveling trajectory of the self-vehicle and the traveling speed of the self-vehicle
  • the traveling parameters of the movable obstacle include the traveling trajectory of the movable obstacle and the traveling speed of the movable obstacle.
  • the driving parameters of the self-driving vehicle and the driving parameters of the movable obstacle can be obtained every first preset time period t1, and the specific method can refer to related technologies.
  • Step S204 According to the driving parameters of the ego vehicle and the driving parameters of the movable obstacle, if it is predicted that the driving area corresponding to the body model of the ego vehicle will overlap with the driving area of the movable obstacle, then it is determined that there is a risk of collision.
  • the unmanned vehicle After the unmanned vehicle obtains the driving parameters of the own vehicle and the driving parameters of the movable obstacle, it calculates the driving area and the movable obstacle of the own vehicle within the second preset time period t2 respectively according to the driving parameters of the own vehicle and the driving parameters of the movable obstacle.
  • the driving area of the obstacle and judge whether there will be overlap between the two driving areas.
  • the driving area refers to the area where the body shape model has traveled within the time t2 under the current speed plan, and t2 is not greater than t1.
  • the movable obstacle without collision risk can be removed, the workload of the unmanned vehicle can be reduced, and the efficiency of collision detection can be improved.
  • Step S206 Calculate the collision time between the unmanned vehicle and the movable obstacle.
  • the collision time is the time when the driving area corresponding to the body model of the ego vehicle overlaps with the driving area of the movable obstacle. After it is determined that there is a risk of collision between the ego vehicle and the movable obstacle, their collision time is further calculated.
  • the distance from the edge of the shape model of the movable obstacle to the center of all circles of the body shape model of the unmanned vehicle is calculated to avoid the collision between the movable obstacle and the unmanned vehicle.
  • the distance from the edge of the shape model of the movable obstacle to the center of the shape model of the accessory needs to be calculated.
  • Step S208 Replan the vehicle's speed according to the collision time to eliminate the collision risk.
  • the ego vehicle speed can be increased or decreased. If the collision cannot be avoided by changing the speed for the preset number of times, the ego vehicle speed will be reduced to 0 and stop moving.
  • the speed of the ego vehicle can be used to eliminate the risk of collision; or, when the collision cannot be avoided by changing the speed for a predetermined number of times, the driving path of the ego vehicle can be changed without violating the road driving rules, so that the movable obstacle can be adjusted to the shape model of the ego vehicle.
  • the distances between all the centers of the circles are larger than the radius of the circles to which the corresponding centers belong, so as to realize adaptive collision detection.
  • the vehicle body model of the present application may also include an accessory body model.
  • a single circle model can be set for these vehicle attachments as an attachment shape model.
  • FIG 7 is an illustration of the application.
  • a schematic diagram of automatic driving of a sweeping vehicle is presented, and the body shape model of the sweeping vehicle is a new five-circle model.
  • a sweeper generally has two brushes, as shown in Figure 7, brush A and brush B of the sweeper.
  • the user can pre-configure the shape model of the attachment based on the size of the brush.
  • An attachment shape model generally only corresponds to a single working attachment.
  • the shape model is generally a single circle.
  • the midpoint of the line connecting the two furthest points on the brush is used as the center point, and half the length of the line is used as the radius to construct a circle.
  • the radius can also be appropriately increased according to requirements.
  • the accessories are not limited to the brush of the sweeper, but also include the sprinkler of the sprinkler, the blade of the bulldozer, etc.
  • An accessory includes two states of unfolding and retracting, such as the sweep of the sweeper, the unfolded state is to move the brush Put it down to clean the road, and put it away to put the brush away and wait for it to stand by.
  • the unmanned vehicle can keep the attachment in the closed state in the area where the attachment is not needed; in the area where the attachment is required, the boundary of the road terrain within a certain distance in front of the vehicle can be obtained, because the body model of the vehicle is covered when the attachment is deployed
  • the area is the largest, so regardless of whether the vehicle accessories are currently unfolded or retracted, the unmanned vehicle can calculate the distance from the center of each accessory shape model to the terrain boundary under the assumption that all vehicle accessories are deployed.
  • the unmanned vehicle After the unmanned vehicle obtains the boundary of the road terrain within a certain distance in front of the vehicle, if it detects that there is an attachment that will collide with the road terrain in front of the vehicle, and the attachment cannot be deployed, it can also calculate the distance between the front road boundaries If the distance between the road boundaries is greater than the width of the self-vehicle when the self-vehicle accessories are all deployed, the driving path can be re-planned and the self-vehicle accessories can continue to be in the unfolded state for work.
  • the radius of the sweeping brush body model corresponding to the sweeping brush of the sweeper is r.
  • the width of the body is m.
  • each brush is independent, for example, when the terrain on the side of brush A in Figure 7 is narrow, while the terrain on the side of brush B is wide, you can only put away brush A to avoid collisions, and brush B remains The ground is cleaned in the unfolded state; or when the width of the road is n ⁇ m, the driving route can be re-planned to shift the driving route of the sweeper to the side of the brush B, so that the distance between the road terrain boundary and the brush A is greater than that of the brush A The radius of the attachment model, to avoid the brush A from colliding with the road terrain.
  • An independent accessory shape model is set for each accessory of the unmanned vehicle.
  • a single accessory can be folded or unfolded to avoid collision between the accessory and the changed road, and dynamically adapt to the changed environment. road conditions.
  • step S208 after the collision time between the movable obstacle and the own vehicle is calculated, it can also be judged whether it is an accessory of the own vehicle that collides with the movable obstacle, and if not, re-plan the driving speed or trajectory of the own vehicle; If so, when calculating the retracted state of the accessory, whether the distance from the center of the accessory shape model to the side of the movable obstacle shape model is greater than the radius of the accessory shape model, if greater, then put the accessory away and keep the current self The driving parameters of the vehicle remain unchanged. If it is not greater than , then re-plan the driving speed or trajectory of the own vehicle.
  • the driving efficiency of the unmanned vehicle can be improved, and it will not be slowed down due to changing the driving speed of the vehicle or replanning the driving route.
  • the administrator can pre-configure a variety of ego vehicle body models on the unmanned vehicle, and each ego vehicle body model includes a different number of circles.
  • the current road congestion under the driving trajectory can also be obtained. If the current road is congested, the self-vehicle shape model with a large number of circles is selected to improve the accuracy of the self-vehicle shape model completely covering the vehicle. Then reduce the safe area occupied by the ego vehicle shape model to avoid invalid collision detection; if the current road is smooth, choose the ego vehicle shape model with a small number of circles, so that the unmanned vehicle can reduce the calculation of road terrain when performing collision detection
  • the pressure of the distance between the shape model of the boundary or the movable obstacle and the body model of the ego vehicle makes a faster response to the impending collision and improves the performance of the unmanned vehicle in dealing with unexpected situations.
  • the administrator can pre-configure three self-vehicle body models on the unmanned vehicle, one is a body model of three circles, one is a body model of five circles, and the other is a body model of seven circles
  • Body model after the unmanned vehicle obtains the current road congestion situation under the trajectory of the vehicle, select the body model of the vehicle according to the situation: if the road congestion is serious, select the body model of seven circles to reduce the radius of each circle , improve the accuracy of the model, and avoid misjudgment of collision detection when the unmanned vehicle is driving; if the road is very smooth, choose a three-circle body shape model to reduce the computing pressure of the unmanned vehicle and improve the ability to deal with emergencies;
  • the body model of five circles is selected to reduce the calculation pressure of unmanned vehicles while maintaining the accuracy of the model, and maintain a balance between the two.
  • the present application also provides an embodiment of a collision detection device.
  • An embodiment of a collision detection device of the present application can be applied to unmanned vehicles.
  • the device embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the unmanned vehicle where it is located. From the hardware level, as shown in Figure 8, it is a hardware structure diagram of an unmanned vehicle where a collision detection device of the present application is located, except for the processor, memory, network interface, and non-volatile memory shown in Figure 8 In addition to the volatile memory, the unmanned vehicle where the device in the embodiment is located usually may also include other hardware according to the actual function of the unmanned vehicle, which will not be repeated here.
  • FIG. 9 is a block diagram of a collision detection device shown in the present application.
  • the collision detection device can be applied to the aforementioned unmanned vehicle, including: a model acquisition module 902, used to obtain the body of the vehicle Model, used to obtain the body model of the self-vehicle, the vehicle body body model contained in the body model of the self-vehicle is a multi-circle model; the collision detection module 904 is used to perform collision detection according to the body model of the self-vehicle; wherein, in the In the case where the rectangular body of the unmanned vehicle is equally divided into n rectangles along the long side direction, the centers of the n circles contained in the multi-circle model are respectively the center points of the n rectangles, and each circle The radius of a shape is the distance from any center point to the apex of the rectangle where it is located, and n is a positive integer greater than 1.
  • the vehicle body model when the unmanned vehicle has one or more accessories beyond the vehicle body, the vehicle body model also includes an accessory body model; the accessory body model includes A single-circle model corresponding to each accessory; the center of the single-circle model is located at the midpoint of the line connecting the two furthest points on the corresponding accessory, and the diameter is the length of the line.
  • the unmanned vehicle when it has one or more accessories beyond the vehicle body, it also includes: a terrain acquisition module 906, which is used to acquire the boundary of the road terrain within a preset distance in front of the vehicle; a distance calculation module 908. It is used to calculate the distance from the center of each accessory body model to the terrain boundary when all the accessories of the vehicle are deployed; if the distance is greater than the radius of the corresponding accessory body model, expand the corresponding Attachment; if the distance is not greater than the radius of the corresponding attachment body model, then put away the attachment corresponding to the attachment body model.
  • a terrain acquisition module 906 which is used to acquire the boundary of the road terrain within a preset distance in front of the vehicle
  • the collision detection module 904 is specifically used for: a parameter acquisition unit, configured to acquire the driving parameters of the own vehicle and the driving parameters of the movable obstacle; the driving parameters of the own vehicle include the driving trajectory of the own vehicle and the driving speed of the own vehicle, and the The moving parameters of the movable obstacle include the moving trajectory of the moving obstacle and the moving speed of the moving obstacle; the collision determination unit, according to the driving parameters of the own vehicle and the driving parameters of the moving obstacle, if the prediction of the shape of the own vehicle If the driving area corresponding to the model overlaps with the driving area of the movable obstacle, it is determined that there is a risk of collision.
  • a parameter acquisition unit configured to acquire the driving parameters of the own vehicle and the driving parameters of the movable obstacle
  • the driving parameters of the own vehicle include the driving trajectory of the own vehicle and the driving speed of the own vehicle
  • the The moving parameters of the movable obstacle include the moving trajectory of the moving obstacle and the moving speed of the moving obstacle
  • the collision determination unit according to the driving parameters of the own vehicle and
  • the device further includes: a collision time calculation module 910, configured to calculate the collision time between the unmanned vehicle and the movable obstacle, and the collision time is the driving time corresponding to the ego vehicle shape model. The time when the area overlaps with the driving area of the movable obstacle; the speed planning module 912 is used to re-plan the vehicle speed according to the collision time to eliminate the collision risk.
  • a collision time calculation module 910 configured to calculate the collision time between the unmanned vehicle and the movable obstacle, and the collision time is the driving time corresponding to the ego vehicle shape model. The time when the area overlaps with the driving area of the movable obstacle; the speed planning module 912 is used to re-plan the vehicle speed according to the collision time to eliminate the collision risk.
  • the device embodiment since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application. It can be understood and implemented by those skilled in the art without creative effort.
  • Embodiments of the subject matter and functional operations described in this specification can be implemented in digital electronic circuitry, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or in A combination of one or more of .
  • Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, that is, one or more of computer program instructions encoded on a tangible, non-transitory program carrier for execution by or to control the operation of data processing apparatus. Multiple modules.
  • the program instructions may be encoded on an artificially generated propagated signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode and transmit information to a suitable receiver device for transmission by the data
  • the processing means executes.
  • a computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
  • the processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output.
  • the processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, such as an FPGA (Field Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit).
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • Computers suitable for the execution of a computer program include, for example, general and/or special purpose microprocessors, or any other type of central processing unit.
  • a central processing unit will receive instructions and data from a read only memory and/or a random access memory.
  • the essential components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data.
  • a computer will also include, or be operatively coupled to, one or more mass storage devices for storing data, such as magnetic or magneto-optical disks, or optical disks, to receive data therefrom or to It transmits data, or both.
  • mass storage devices for storing data, such as magnetic or magneto-optical disks, or optical disks, to receive data therefrom or to It transmits data, or both.
  • a computer is not required to have such a device.
  • a computer may be embedded in another device such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a device such as a Universal Serial Bus (USB) ) portable storage devices like flash drives, to name a few.
  • PDA personal digital assistant
  • GPS Global Positioning System
  • USB Universal Serial Bus
  • Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices (such as EPROM, EEPROM, and flash memory devices), magnetic disks (such as internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks.
  • semiconductor memory devices such as EPROM, EEPROM, and flash memory devices
  • magnetic disks such as internal hard disks or removable disks
  • magneto-optical disks and CD ROM and DVD-ROM disks.
  • the processor and memory can be supplemented by, or incorporated in, special purpose logic circuitry.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Traffic Control Systems (AREA)
  • Control Of Position, Course, Altitude, Or Attitude Of Moving Bodies (AREA)

Abstract

The present application provides a collision detection method and device. The method comprises: obtaining a self-vehicle body model, a vehicle body model comprised in the self-vehicle body model being a multi-circle model; performing collision detection according to the self-vehicle body model, wherein under the condition that a rectangular vehicle body of the unmanned vehicle is equally divided into n rectangles in a long side direction, the circle centers of n circles comprised in the multi-circle model are respectively center points of the n rectangles, the radius of each circle is a distance from any center point to the vertex of the rectangle where the center point is located, and n is a positive integer larger than 1. By applying this solution, the unmanned vehicle model can be prevented from occupying too many safety areas, and the precision of the unmanned vehicle body model is improved.

Description

碰撞检测Impact checking 技术领域technical field
本申请涉及人工智能领域,尤其涉及用于碰撞检测的方法及装置。The present application relates to the field of artificial intelligence, in particular to a method and device for collision detection.
背景技术Background technique
随着人工智能技术的迅速发展,无人驾驶成为了热门的人工智能研究方向,在无人驾驶技术中,需要重点考虑的便是如何避免自车与可移动障碍物发生碰撞,自车与可移动障碍物的碰撞检测主要依据自车行驶区域与障碍物行驶区域是否发生重叠来实现。With the rapid development of artificial intelligence technology, unmanned driving has become a popular research direction of artificial intelligence. The collision detection of moving obstacles is mainly realized based on whether the driving area of the self-vehicle overlaps with the driving area of the obstacle.
无人驾驶车辆行驶轨迹区域一般与车辆的形体模型有关,常规的无人驾驶车辆的形体模型是将整个车身用一个矩形模型表示,但是矩形模型的长和宽需要按车辆的长和宽按比例缩放,精度太差,会框选出车辆周围的大量安全区域。为了减少车辆形体模型占用的安全区域,相关技术人员提出了传统的五圆模型,但是传统五圆模型又会导致车辆形体模型在宽度上膨胀过多,精度不高,在实际应用时,依旧会占用大量安全区域。The driving track area of an unmanned vehicle is generally related to the shape model of the vehicle. The shape model of a conventional unmanned vehicle is to represent the entire body with a rectangular model, but the length and width of the rectangular model need to be proportional to the length and width of the vehicle Zooming, the accuracy is too poor, and a large number of safe areas around the vehicle will be framed. In order to reduce the safe area occupied by the vehicle shape model, relevant technical personnel proposed the traditional five-circle model, but the traditional five-circle model will cause the vehicle shape model to expand too much in width, and the accuracy is not high. Occupies a lot of safe area.
发明内容Contents of the invention
有鉴于此,本申请提供用于碰撞检测的方法及装置,具体地,本申请是通过如下技术方案实现的:In view of this, this application provides a method and device for collision detection, specifically, this application is achieved through the following technical solutions:
根据本申请的第一方面,提供一种碰撞检测的方法,该方法应用于无人驾驶车辆,所述方法包括:获取自车形体模型,所述自车形体模型所含的车身形体模型为多圆模型;依据所述自车形体模型进行碰撞检测;其中,在所述无人驾驶车辆的矩形车身被均分为沿长边方向的n个矩形的情况下,所述多圆模型包含的n个圆形的圆心分别为所述n个矩形的中心点,且各圆形的半径为任一中心点到其所在矩形的顶点的距离,n为大于1的正整数。According to the first aspect of the present application, a method for collision detection is provided, the method is applied to an unmanned vehicle, and the method includes: obtaining the body model of the self-vehicle, and the body body model contained in the body model of the self-vehicle is multiple Circle model; Carry out collision detection according to the self-vehicle shape model; Wherein, when the rectangular body of the unmanned vehicle is divided into n rectangles along the long side direction, the n The centers of the circles are respectively the center points of the n rectangles, and the radius of each circle is the distance from any center point to the apex of the rectangle where it is located, and n is a positive integer greater than 1.
可选的,在所述碰撞检测的方法中,当所述无人驾驶车辆带有超出车身外的一个或多个附件时,所述自车形体模型还包括附件形体模型;所述附件形体模型包括分别对应于每个附件的单圆模型;所述单圆模型的圆心位于相应附件上最远两点的连线的中点、直径为所述连线的长度。Optionally, in the collision detection method, when the unmanned vehicle has one or more accessories beyond the vehicle body, the body model of the self-vehicle also includes a body model of the accessories; the body model of the accessories A single circle model corresponding to each attachment is included; the center of the single circle model is located at the midpoint of the line connecting the two furthest points on the corresponding attachment, and the diameter is the length of the line.
可选的,在所述碰撞检测的方法中,当所述无人驾驶车辆带有超出车身外的一个或 多个附件时,还包括:获取自车前方预设距离内道路地形的边界;计算在所有自车附件都展开的情况下,各附件形体模型的圆心到所述地形边界的距离;若所述距离大于对应附件形体模型的半径,则展开该附件形体模型对应的附件;若所述距离不大于对应附件形体模型的半径,则收起该附件形体模型对应的附件。Optionally, in the collision detection method, when the unmanned vehicle has one or more accessories beyond the vehicle body, it also includes: obtaining the boundary of the road terrain within a preset distance in front of the vehicle; calculating In the case that all the accessories of the vehicle are deployed, the distance from the center of each accessory body model to the terrain boundary; if the distance is greater than the radius of the corresponding accessory body model, then expand the accessory corresponding to the accessory body model; if the If the distance is not greater than the radius of the corresponding accessory shape model, then the accessory corresponding to the accessory shape model is put away.
可选的,在所述碰撞检测的方法中,所述依据所述自车形体模型进行碰撞检测,包括:获取自车行驶参数和可移动障碍物行驶参数;所述自车行驶参数包括自车行驶轨迹和自车行驶速度,所述可移动障碍物行驶参数包括可移动障碍物的行驶轨迹和可移动障碍物的行驶速度;依据所述自车行驶参数和可移动障碍物的行驶参数,若预测所述自车形体模型对应的行驶区域与可移动障碍物的行驶区域会发生重叠,则判定存在碰撞风险。Optionally, in the collision detection method, the collision detection based on the body model of the ego vehicle includes: obtaining the driving parameters of the ego vehicle and the driving parameters of the movable obstacle; the ego vehicle driving parameters include ego vehicle The driving trajectory and the driving speed of the own vehicle, the driving parameters of the movable obstacle include the driving trajectory of the movable obstacle and the driving speed of the movable obstacle; according to the driving parameters of the own vehicle and the driving parameters of the movable obstacle, if It is predicted that the driving area corresponding to the body model of the ego vehicle will overlap with the driving area of the movable obstacle, and then it is determined that there is a collision risk.
可选的,在所述碰撞检测的方法中,所述依据所述自车形体模型进行碰撞检测,还包括:计算所述无人驾驶车辆与所述可移动障碍物的碰撞时刻,所述碰撞时刻为所述自车形体模型对应的行驶区域与可移动障碍物的行驶区域发生重叠的时刻;依据所述碰撞时刻重新规划自车速度以消除碰撞风险。Optionally, in the collision detection method, the collision detection based on the ego vehicle shape model further includes: calculating the collision moment between the unmanned vehicle and the movable obstacle, the collision The time is when the driving area corresponding to the body model of the own vehicle overlaps with the driving area of the movable obstacle; the speed of the own vehicle is replanned according to the collision time to eliminate the risk of collision.
可选的,在所述碰撞检测的方法中,还包括:获取多种自车形体模型;所述多种自车形体模型包括多个圆形数量不同的多圆模型;若自车行驶轨迹下的当前道路拥堵情况为拥堵时,选择圆形数量多的模型进行碰撞检测;若所述当前道路拥堵情况为通畅时,选择圆形数量少的模型进行碰撞检测。Optionally, in the method for collision detection, it also includes: acquiring a variety of ego vehicle shape models; the multiple ego vehicle shape models include a plurality of multi-circle models with different numbers of circles; When the current road congestion situation is congested, select a model with a large number of circles for collision detection; if the current road congestion situation is smooth, select a model with a small number of circles for collision detection.
可选的,在所述碰撞检测的方法中,所述多圆模型为五圆模型。Optionally, in the collision detection method, the multi-circle model is a five-circle model.
根据本申请的第二方面,提供碰撞检测的装置,该装置应用于无人驾驶车辆,包括:According to the second aspect of the present application, a collision detection device is provided, the device is applied to an unmanned vehicle, including:
模型获取模块,用于获取自车形体模型,所述自车形体模型所含的车身形体模型为多圆模型;碰撞检测模块,用于依据所述自车形体模型进行碰撞检测;其中,在所述无人驾驶车辆的矩形车身被均分为沿长边方向的n个矩形的情况下,所述多圆模型包含的n个圆形的圆心分别为所述n个矩形的中心点,且各圆形的半径为任一中心点到其所在矩形的顶点的距离,n为大于1的正整数。The model acquisition module is used to obtain the body model of the self-vehicle, and the body shape model contained in the body model of the self-vehicle is a multi-circle model; the collision detection module is used to perform collision detection according to the body model of the self-vehicle; wherein, in the In the case where the rectangular body of the unmanned vehicle is divided into n rectangles along the long side direction, the centers of the n circles included in the multi-circle model are respectively the center points of the n rectangles, and each The radius of a circle is the distance from any center point to the apex of the rectangle where it is located, and n is a positive integer greater than 1.
根据本申请的第三方面,提供一种存储介质,所述存储介质存储计算机程序指令,所述计算机程序指令被执行后能够实现前述第一方面实施例提供的碰撞检测的方法。According to a third aspect of the present application, a storage medium is provided, the storage medium stores computer program instructions, and after the computer program instructions are executed, the collision detection method provided by the embodiment of the foregoing first aspect can be implemented.
根据本申请的第四方面,提供一种电子设备,包括:用于存储计算机程序指令的存储器和用于执行计算机程序指令的处理器,其中,当该计算机程序指令被该处理器执行后能够实现前述任意实施例提供的碰撞检测的方法。According to a fourth aspect of the present application, there is provided an electronic device, including: a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein, when the computer program instructions are executed by the processor, it can realize The collision detection method provided by any of the foregoing embodiments.
通过本申请提供的技术方案,将无人驾驶车辆的矩形车身被均分为沿长边方向的多个矩形,以多个矩形的中心点为圆心,中心点到各对应矩形的顶点的距离为半径,构建多圆模型,通过减小模型中最大圆的半径,避免模型占用过多安全区域,提高了无人驾驶车辆形体模型的精度。Through the technical solution provided by this application, the rectangular body of the unmanned vehicle is divided into multiple rectangles along the long side direction, with the center points of the multiple rectangles as the center, and the distance from the center point to the apex of each corresponding rectangle is Radius, build a multi-circle model, by reducing the radius of the largest circle in the model, avoid the model occupying too much safe area, and improve the accuracy of the unmanned vehicle shape model.
附图说明Description of drawings
图1是本申请示出的一种传统五圆模型示意图;Fig. 1 is a kind of traditional five-circle model schematic diagram shown in the present application;
图2是本申请示出的一种新五圆模型示意图;Fig. 2 is a schematic diagram of a new five-circle model shown in the present application;
图3是本申请示出的一种碰撞检测的方法的流程图;Fig. 3 is a flowchart of a method for collision detection shown in the present application;
图4使本申请示出的一种七圆模型示意图;Fig. 4 is a schematic diagram of a seven-circle model shown in the present application;
图5是本申请示出的一种三圆模型示意图;Fig. 5 is a schematic diagram of a three-circle model shown in the present application;
图6是本申请示出的一种碰撞检测方法具体步骤的流程图;FIG. 6 is a flowchart of specific steps of a collision detection method shown in the present application;
图7是本申请示出的一种清扫车自动行驶示意图;Fig. 7 is a schematic diagram of automatic driving of a cleaning vehicle shown in the present application;
图8是本申请一种碰撞检测的装置所在无人驾驶车辆的一种硬件结构图;Fig. 8 is a hardware structure diagram of an unmanned vehicle where a collision detection device of the present application is located;
图9是本申请示出的一种碰撞检测的装置的框图。Fig. 9 is a block diagram of a collision detection device shown in the present application.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only, and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a", "the", and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It should also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以 被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of the present application, first information may also be called second information, and similarly, second information may also be called first information. Depending on the context, the word "if" as used herein may be interpreted as "at" or "when" or "in response to a determination."
由于车辆的车身在垂直方向上的投影通常接近于矩形,因而相关技术中在针对无人驾驶车辆构建车身形体模型时,通常采用传统五圆模型。图1是本申请示出的一种传统五圆模型示意图,如图1所示,传统的五圆模型包括一个大圆和四个小圆,大圆的圆心H是矩形车身的中心点,四个小圆的圆心分别位于矩形四个顶角的角平分线上,如图1中的小圆圆心P与顶点Q的连线为顶点Q所在顶角的角平分线,为了使五个圆恰好覆盖矩形,相邻两个圆之间的交点需要在矩形的边上,如图1中的J。以车长为a、车宽为b的车辆为例,小圆的半径为Since the projection of the vehicle body in the vertical direction is usually close to a rectangle, the traditional five-circle model is usually used when constructing a body model for an unmanned vehicle in the related art. Fig. 1 is a schematic diagram of a traditional five-circle model shown in the present application. As shown in Fig. 1, the traditional five-circle model includes a large circle and four small circles, the center H of the large circle is the center point of the rectangular body, and the four small circles The centers of the circles are respectively located on the angle bisectors of the four corners of the rectangle, as shown in Figure 1, the line connecting the center P of the small circle and the vertex Q is the angle bisector of the corners where the vertex Q is located, in order to make the five circles just cover the rectangle , the intersection point between two adjacent circles needs to be on the side of the rectangle, such as J in Figure 1. Taking a vehicle with length a and width b as an example, the radius of the small circle is
Figure PCTCN2022071344-appb-000001
Figure PCTCN2022071344-appb-000001
大圆的半径为The radius of the great circle is
Figure PCTCN2022071344-appb-000002
Figure PCTCN2022071344-appb-000002
但是随着应用所述五圆模型的车辆尺寸的增大,逐渐发现中大型车辆采用该模型会导致大片的无效碰撞区域。以车长10米,车宽2.5米的中大型客车为例,传统的五圆模型中的大圆半径达到了3.95米,会使车身形体模型在车身原本宽度上比膨胀5.4米,占用的安全区域达到了31.34平方米,导致大片无效碰撞区域,无法自动行驶在狭窄区域。However, as the size of the vehicle to which the five-circle model is applied increases, it is gradually found that the use of this model by medium and large vehicles will lead to a large area of invalid collision area. Taking a medium and large bus with a length of 10 meters and a width of 2.5 meters as an example, the radius of the big circle in the traditional five-circle model reaches 3.95 meters, which will cause the body model to expand by 5.4 meters compared to the original width of the body, occupying a safe area It has reached 31.34 square meters, resulting in a large invalid collision area, and cannot automatically drive in a narrow area.
为了避免车身形体模型随车辆尺寸增大而膨胀过多,本申请从减小图1中大圆半径的角度考虑,构建新的五圆模型来作为无人驾驶车辆的车身形体模型,如图2所示,图2是本申请示出的一种新五圆模型示意图。In order to prevent the body model from expanding too much as the size of the vehicle increases, this application considers reducing the radius of the great circle in Figure 1, and constructs a new five-circle model as the body model of the unmanned vehicle, as shown in Figure 2 Fig. 2 is a schematic diagram of a new five-circle model shown in the present application.
根据中无人驾驶车辆的车长和车宽投影出的平面矩形车身构建新五圆模型,具体的,将矩形车身均匀的分为沿长边方向的五个矩形,以每个矩形的中心点为圆心,中心点到顶点的距离为半径构造圆形,将五个圆形组合后得到新的五圆模型。如图2所示,将车身均匀的分为五个矩形,以最车身上方的矩形为例,圆形的圆心为矩形的中心点N,半径为中心点N到顶点M的距离,相邻两个圆形的交点D都位于长边上,整个模型能够很好的覆盖整个客车车身,当车长为a、车宽为b时,每个圆的半径就是A new five-circle model is constructed based on the plane rectangular body projected by the length and width of the unmanned vehicle in China. Specifically, the rectangular body is evenly divided into five rectangles along the long side, and the center point of each rectangle is is the center of the circle, and the distance from the center point to the apex is the radius to construct a circle. After combining five circles, a new five-circle model is obtained. As shown in Figure 2, the body is evenly divided into five rectangles. Taking the rectangle above the body as an example, the center of the circle is the center point N of the rectangle, and the radius is the distance from the center point N to the vertex M. The intersection point D of each circle is located on the long side, and the whole model can well cover the whole bus body. When the length of the bus is a and the width of the bus is b, the radius of each circle is
Figure PCTCN2022071344-appb-000003
Figure PCTCN2022071344-appb-000003
依旧以车长10米,车宽2.5米的中大型客车为例,新五圆模型中圆形的半径为1.6米,在客车车身原本宽度上膨胀了0.7米,占用的安全区域有6.86平方米,相比于传统 的五圆模型,其占用的安全空间更少,对车身覆盖的精度更高,能使无人驾驶车辆更好的适应狭窄通道。Still taking a medium-to-large bus with a length of 10 meters and a width of 2.5 meters as an example, the radius of the circle in the new five-circle model is 1.6 meters, which expands by 0.7 meters from the original width of the bus body, occupying a safe area of 6.86 square meters , compared with the traditional five-circle model, it takes up less safety space and has higher accuracy in covering the body, enabling unmanned vehicles to better adapt to narrow passages.
本申请中的车身形体模型的是多圆模型,圆形数量为n,n是大于1的正整数,以这n个矩形的中心点为圆心,各中心点到对应矩形顶点的距离为半径构造圆形,将n个圆形组合后得到无人驾驶车辆的形体模型。The vehicle body shape model in this application is a multi-circle model, the number of circles is n, and n is a positive integer greater than 1. The center point of these n rectangles is the center of the circle, and the distance from each center point to the corresponding rectangle vertex is the radius. Circle, the shape model of the unmanned vehicle is obtained by combining n circles.
基于新的多圆形体模型,本发明实施例提供了一种应用于无人驾驶车辆的碰撞检测的方法,请参见图3,图3是本申请示出的一种碰撞检测的方法的流程图,具体步骤如下:步骤S102:获取自车形体模型,所述自车形体模型所含的车身形体模型为多圆模型。Based on the new polygon model, the embodiment of the present invention provides a collision detection method applied to unmanned vehicles, please refer to Fig. 3, Fig. 3 is a flow chart of a collision detection method shown in this application As shown in the figure, the specific steps are as follows: Step S102: Obtain the body model of the self-vehicle, and the body model of the vehicle body contained in the body model of the self-vehicle is a multi-circle model.
自车形体模型至少包括车身形体模型,当无人驾驶车辆带有超出车身外的一个或多个附件时,自车形体模型还包括附件形体模型,附件形体模型一般是单圆形体模型。The body model of the ego vehicle includes at least the body shape model. When the unmanned vehicle has one or more accessories beyond the body, the body model of the ego vehicle also includes the body model of the accessories. The body model of the accessories is generally a single circular body model.
无人驾驶车辆的车身形体模型是多圆模型,多圆模型中的圆形数量可以自行设定,为了避免身形体模型占用过多的安全空间,可以用增加多圆模型中圆形的数量来覆盖车身,从而减小圆形的半径,提高车身形体模型的精度,但如果圆形数量过多,会增大无人驾驶车辆在进行碰撞检测时的计算压力,所以为了平衡车身形体模型的精度与计算压力,一般选取五个圆形的多圆模型作为车身形体模型。The body shape model of an unmanned vehicle is a multi-circle model, and the number of circles in the multi-circle model can be set by yourself. In order to avoid the body model taking up too much safe space, you can increase the number of circles in the multi-circle model To cover the body, thereby reducing the radius of the circle and improving the accuracy of the body model, but if the number of circles is too large, it will increase the calculation pressure of the unmanned vehicle when performing collision detection, so in order to balance the body model In terms of accuracy and calculation pressure, a multi-circle model of five circles is generally selected as the body model.
本申请并不限制所采用的多圆模型中所含圆形的数量。举例而言,如果相对更关注于车身形体模型的精度,可以相对增加圆形的数量,比如可以选取如图4所示的七圆模型,图4使本申请示出的一种七圆模型示意图;或者,如果相对更关注于无人驾驶车辆对碰撞检测的工作压力,可以相对减少圆形的数量,比如可以选取如图5所示的三圆模型,图5是本申请示出的一种三圆模型示意图。The present application does not limit the number of circles contained in the adopted multi-circle model. For example, if you pay more attention to the accuracy of the body model, you can increase the number of circles. For example, you can choose the seven-circle model as shown in Figure 4. Figure 4 is a schematic diagram of a seven-circle model shown in this application. ; Or, if you pay more attention to the working pressure of unmanned vehicles on collision detection, you can relatively reduce the number of circles. For example, you can choose the three-circle model as shown in Figure 5. Figure 5 is a kind of Schematic diagram of the three-circle model.
步骤S104:依据所述自车形体模型进行碰撞检测。Step S104: Perform collision detection according to the body model of the ego vehicle.
具体的,依据所述自车形体模型进行碰撞检测的步骤请参见图6,图6是本申请示出的一种碰撞检测方法具体步骤的流程图,具体步骤如下:步骤S202:获取自车行驶参数和可移动障碍物行驶参数。Specifically, please refer to FIG. 6 for the steps of collision detection based on the body model of the ego vehicle. FIG. 6 is a flow chart of specific steps of a collision detection method shown in this application. parameters and driving parameters of movable obstacles.
自车行驶参数包括自车行驶轨迹和自车行驶速度,可移动障碍物行驶参数包括可移动障碍物的行驶轨迹和可移动障碍物的行驶速度。The traveling parameters of the self-vehicle include the traveling trajectory of the self-vehicle and the traveling speed of the self-vehicle, and the traveling parameters of the movable obstacle include the traveling trajectory of the movable obstacle and the traveling speed of the movable obstacle.
在无人驾驶车辆行驶的过程中,可以每隔第一预设时长t1获取所述自车行驶参数和可移动障碍物行驶参数,具体方法可以参考相关技术。During the driving process of the unmanned vehicle, the driving parameters of the self-driving vehicle and the driving parameters of the movable obstacle can be obtained every first preset time period t1, and the specific method can refer to related technologies.
步骤S204:依据所述自车行驶参数和可移动障碍物的行驶参数,若预测所述自车形体模型对应的行驶区域与可移动障碍物的行驶区域会发生重叠,则判定存在碰撞风险。Step S204: According to the driving parameters of the ego vehicle and the driving parameters of the movable obstacle, if it is predicted that the driving area corresponding to the body model of the ego vehicle will overlap with the driving area of the movable obstacle, then it is determined that there is a risk of collision.
无人驾驶车辆在获取到自车行驶参数和可移动障碍物行驶参数以后,依据自车行驶参数和可移动障碍物行驶参数分别计算出第二预设时长t2内自车的行驶区域与可移动障碍物的行驶区域,并判断两个行驶区域之间是否会发生重叠,行驶区域是指在当前速度规划下,车身形体模型在t2时长内行驶过的区域,t2不大于t1。After the unmanned vehicle obtains the driving parameters of the own vehicle and the driving parameters of the movable obstacle, it calculates the driving area and the movable obstacle of the own vehicle within the second preset time period t2 respectively according to the driving parameters of the own vehicle and the driving parameters of the movable obstacle. The driving area of the obstacle, and judge whether there will be overlap between the two driving areas. The driving area refers to the area where the body shape model has traveled within the time t2 under the current speed plan, and t2 is not greater than t1.
判断两个行驶区域是否发生重叠可以用Sutherland-Hodgman算法(逐边裁剪算法)进行计算,具体计算方法可以参考相关文献。Judging whether two driving areas overlap can be calculated by the Sutherland-Hodgman algorithm (edge-by-edge clipping algorithm), and the specific calculation method can refer to relevant literature.
若计算结果为两个行驶区域发生重叠,则代表自车与所述可移动障碍物存在碰撞风险。If the calculation result is that the two driving areas overlap, it means that there is a risk of collision between the own vehicle and the movable obstacle.
通过判断无人驾驶的行驶区域与可移动障碍的物行驶区域是否重叠,可以去除没有碰撞风险的可移动障碍物,可以减小无人驾驶车辆的工作量,提高碰撞检测的效率。By judging whether the driving area of the unmanned vehicle overlaps with the object driving area of the movable obstacle, the movable obstacle without collision risk can be removed, the workload of the unmanned vehicle can be reduced, and the efficiency of collision detection can be improved.
步骤S206:计算所述无人驾驶车辆与所述可移动障碍物的碰撞时刻。Step S206: Calculate the collision time between the unmanned vehicle and the movable obstacle.
所述碰撞时刻为所述自车形体模型对应的行驶区域与可移动障碍物的行驶区域发生重叠的时刻,在确定自车与可移动障碍物存在碰撞风险后,进一步计算它们的碰撞时刻。The collision time is the time when the driving area corresponding to the body model of the ego vehicle overlaps with the driving area of the movable obstacle. After it is determined that there is a risk of collision between the ego vehicle and the movable obstacle, their collision time is further calculated.
具体的,计算在自车与可移动障碍物保持匀速的情况下,可移动障碍物的形体模型的边,到无人驾驶车辆车身形体模型所有圆心的距离,以避免可移动障碍物与无人驾驶车辆车身的任意部位发生碰撞,当车辆带有超过自车车身外的附件时,需计算的还包括可移动障碍物的形体模型的边,到附件形体模型的圆心的距离,当存在所述距离与对应圆心所属的圆的半径相同时,则认为自车与所述可移动障碍物会发生碰撞,记录此时的碰撞时刻;若未计算出碰撞时刻,则认为自车与所述可移动障碍物不会发生碰撞。Specifically, when the ego vehicle and the movable obstacle maintain a constant speed, the distance from the edge of the shape model of the movable obstacle to the center of all circles of the body shape model of the unmanned vehicle is calculated to avoid the collision between the movable obstacle and the unmanned vehicle. When any part of the body of the driving vehicle collides, when the vehicle has accessories that exceed the body of the vehicle, the distance from the edge of the shape model of the movable obstacle to the center of the shape model of the accessory needs to be calculated. When the distance is the same as the radius of the circle to which the corresponding center belongs, it is considered that the vehicle will collide with the movable obstacle, and the collision time at this time is recorded; if the collision time is not calculated, it is considered that the vehicle collides with the movable obstacle. Obstacles do not collide.
通过计算存在碰撞风险的可移动障碍物到自车形体模型的圆心的距离,不需要和自车形体模型边上所有的点都计算距离,减轻了无人驾驶车辆的负载压力。By calculating the distance from the movable obstacle with collision risk to the center of the self-vehicle body model, it is not necessary to calculate the distance with all points on the side of the self-vehicle body model, which reduces the load pressure on the unmanned vehicle.
步骤S208:依据所述碰撞时刻重新规划自车速度以消除碰撞风险。Step S208: Replan the vehicle's speed according to the collision time to eliminate the collision risk.
在计算出自车与可移动障碍物的碰撞时刻后,可以增加自车速度或者减少自车速度,如果连续预设次数的变更速度都无法避免碰撞,自车速度减少至0,停止移动,通过改变自车速度来消除碰撞风险;或者,在连续预设次数的变更速度都无法避免碰撞时,可以在不违反道路行驶规则的情况下改变自车行驶路径,使可移动障碍物到自车形体模型 中所有圆心的距离均大于对应圆心所属圆的半径,实现自适应性的碰撞检测。After calculating the collision time between the ego vehicle and the movable obstacle, the ego vehicle speed can be increased or decreased. If the collision cannot be avoided by changing the speed for the preset number of times, the ego vehicle speed will be reduced to 0 and stop moving. By changing The speed of the ego vehicle can be used to eliminate the risk of collision; or, when the collision cannot be avoided by changing the speed for a predetermined number of times, the driving path of the ego vehicle can be changed without violating the road driving rules, so that the movable obstacle can be adjusted to the shape model of the ego vehicle. The distances between all the centers of the circles are larger than the radius of the circles to which the corresponding centers belong, so as to realize adaptive collision detection.
本申请的自车形体模型除了包括前述的车身形体模型之外,还可以包括附件形体模型。当无人驾驶车辆带有超出车身外的一个或多个附件时,可以对这些车辆附件设置单圆模型作为附件形体模型,以清扫车为例,如图7所示,图7是本申请示出的一种清扫车自动行驶示意图,清扫车的车身形体模型是新五圆模型。清扫车一般有两个扫刷,如图7中清扫车的扫刷A和扫刷B,用户可以基于扫刷的大小预先配置附件形体模型,一个附件形体模型一般只对应一个单独工作附件,附件形体模型一般是单个圆形,以扫刷上最远两点的连线的中点作为圆心,以连线的长度的一半作为半径构造圆形,半径还可以根据需求适当增大。In addition to the aforementioned vehicle body body model, the vehicle body model of the present application may also include an accessory body model. When an unmanned vehicle has one or more attachments beyond the vehicle body, a single circle model can be set for these vehicle attachments as an attachment shape model. Taking a sweeper as an example, as shown in Figure 7, Figure 7 is an illustration of the application. A schematic diagram of automatic driving of a sweeping vehicle is presented, and the body shape model of the sweeping vehicle is a new five-circle model. A sweeper generally has two brushes, as shown in Figure 7, brush A and brush B of the sweeper. The user can pre-configure the shape model of the attachment based on the size of the brush. An attachment shape model generally only corresponds to a single working attachment. The shape model is generally a single circle. The midpoint of the line connecting the two furthest points on the brush is used as the center point, and half the length of the line is used as the radius to construct a circle. The radius can also be appropriately increased according to requirements.
附件不局限于清扫车的扫刷,还可以包括洒水车的喷水器,推土机的铲刀等,一个附件包括展开和收起两种状态,如清扫车的扫刷,展开状态就是将扫刷放下清扫路面,收起状态就是将扫刷收起待机。The accessories are not limited to the brush of the sweeper, but also include the sprinkler of the sprinkler, the blade of the bulldozer, etc. An accessory includes two states of unfolding and retracting, such as the sweep of the sweeper, the unfolded state is to move the brush Put it down to clean the road, and put it away to put the brush away and wait for it to stand by.
由于无人驾驶车辆行驶的道路情况不会一直不变,例如道路两边可能会停放自行车,或者道路施工设置施工牌占用道路等情况,会对无人驾驶车辆原本预设的行驶路线产生影响,使无人驾驶车辆的附件无法正常工作。Since the conditions of the road on which unmanned vehicles drive will not remain unchanged, for example, bicycles may be parked on both sides of the road, or road construction signs occupy the road, etc., which will affect the originally preset driving route of unmanned vehicles. Accessories for driverless vehicles do not work properly.
此时无人驾驶车辆可以在不需要附件工作的区域,保持附件处于收起状态;在需要附件工作的区域,获取自车前方一段距离内道路地形的边界,由于附件展开时自车形体模型覆盖面积最大,所以无论自车附件当前处于展开还是收起的状态,无人驾驶车辆都可以计算在假定所有自车附件都展开的情况下,各附件形体模型的圆心到所述地形边界的距离。At this time, the unmanned vehicle can keep the attachment in the closed state in the area where the attachment is not needed; in the area where the attachment is required, the boundary of the road terrain within a certain distance in front of the vehicle can be obtained, because the body model of the vehicle is covered when the attachment is deployed The area is the largest, so regardless of whether the vehicle accessories are currently unfolded or retracted, the unmanned vehicle can calculate the distance from the center of each accessory shape model to the terrain boundary under the assumption that all vehicle accessories are deployed.
当各附件形体模型的圆心到所述地形边界的距离大于对应附件形体模型的半径时,表明自车前方的道路地形不会与自车附件发生碰撞,因而若该附件形体模型对应的附件当前处于展开状态,则继续保持当前状态,若该附件当前处于收起状态,则展开该附件;当各附件形体模型的圆心到所述地形边界的距离不大于对应附件形体模型的半径时,表明自车前方的道路地形会与自车附件发生碰撞,因而若该附件形体模型对应的附件当前处于收起状态,则继续保持当前状态,若该附件当前处于展开状态,则收起该附件。When the distance from the center of each accessory shape model to the terrain boundary is greater than the radius of the corresponding accessory shape model, it indicates that the road terrain in front of the vehicle will not collide with the vehicle accessory, so if the accessory corresponding to the accessory shape model is currently in the In the unfolded state, the current state will continue to be maintained. If the attachment is currently in the retracted state, the attachment will be expanded; when the distance from the center of each attachment body model to the terrain boundary is not greater than the radius of the corresponding attachment body model, it indicates that the vehicle The road terrain ahead will collide with the accessory of the vehicle, so if the accessory corresponding to the accessory shape model is currently in the retracted state, keep the current state, and if the accessory is currently in the unfolded state, then retract the accessory.
在无人驾驶车辆获取到自车前方一段距离内道路地形的边界后,若检测到存在附件会与自车前方的道路地形发生碰撞,该附件无法展开时,还可以计算前方道路边界之间相距的距离,如果道路边界之间的距离大于自车附件都展开的情况下的自车宽度,可以 重新规划行驶路径,继续保持自车附件处于展开状态进行工作。After the unmanned vehicle obtains the boundary of the road terrain within a certain distance in front of the vehicle, if it detects that there is an attachment that will collide with the road terrain in front of the vehicle, and the attachment cannot be deployed, it can also calculate the distance between the front road boundaries If the distance between the road boundaries is greater than the width of the self-vehicle when the self-vehicle accessories are all deployed, the driving path can be re-planned and the self-vehicle accessories can continue to be in the unfolded state for work.
以清扫车为例,如图7所示,清扫车扫刷对应的扫刷形体模型的半径为r,所有扫刷都处于展开的状态时,车身宽度为m,在清扫车获取到前方一段距离的道路地形边界后,可以计算道路的宽度n,以及展开状态下的扫刷形体模型的圆心到所述地形边界的距离d,若d>r,则认为清扫车到前方地形有足够大的空间放下扫刷来清理地面,此时保持扫刷处于展开状态;若d≤r,则认为清扫车到前方地形过于狭窄,为避免扫刷与地形发生碰撞,此时需要保持扫刷处于收起状态。Taking the sweeper as an example, as shown in Figure 7, the radius of the sweeping brush body model corresponding to the sweeping brush of the sweeper is r. When all the sweeping brushes are in the unfolded state, the width of the body is m. After the terrain boundary of the road, you can calculate the width n of the road, and the distance d from the center of the sweeping shape model in the unfolded state to the terrain boundary. If d>r, it is considered that the sweeper has enough space to the terrain ahead Put down the sweeping brush to clean the ground, and keep the sweeping brush in the unfolded state; if d≤r, it is considered that the terrain ahead of the sweeper is too narrow. In order to avoid collision between the sweeping brush and the terrain, it is necessary to keep the sweeping brush in the retracted state at this time .
由于每个扫刷之间是独立的,例如当图7中的扫刷A侧的地形狭窄,而扫刷B侧的地形宽阔,则可以只收起扫刷A避免发生碰撞,扫刷B保持展开状态清理地面;或者当道路的宽度n≥m时,可以重新规划行驶路线,将清扫车的行驶路线向扫刷B侧偏移,使道路地形边界到扫刷A的距离大于扫刷A对应的附件模型的半径,避免扫刷A与道路地形发生碰撞。Since each brush is independent, for example, when the terrain on the side of brush A in Figure 7 is narrow, while the terrain on the side of brush B is wide, you can only put away brush A to avoid collisions, and brush B remains The ground is cleaned in the unfolded state; or when the width of the road is n≥m, the driving route can be re-planned to shift the driving route of the sweeper to the side of the brush B, so that the distance between the road terrain boundary and the brush A is greater than that of the brush A The radius of the attachment model, to avoid the brush A from colliding with the road terrain.
对无人驾驶车辆的每个附件都设置独立的附件形体模型,可以在预设的行驶道路发生变化时,收起或展开单个附件,避免附件与变化后的道路发生碰撞,动态适应发生变化的道路情况。An independent accessory shape model is set for each accessory of the unmanned vehicle. When the preset driving road changes, a single accessory can be folded or unfolded to avoid collision between the accessory and the changed road, and dynamically adapt to the changed environment. road conditions.
在前述步骤S208,计算出可移动障碍物与自车的碰撞时刻后,还可以判断与可移动障碍物发生碰撞的是否是自车附件,如果不是,则重新规划自车行驶速度或行驶轨迹;如果是,则再计算附件收起状态时,该附件形体模型的圆心到可移动障碍物形体模型的边的距离是否大于该附件形体模型的半径,如果大于,则收起该附件并保持当前自车行驶参数不变,如果不大于,则重新规划自车行驶速度或行驶轨迹。In the aforementioned step S208, after the collision time between the movable obstacle and the own vehicle is calculated, it can also be judged whether it is an accessory of the own vehicle that collides with the movable obstacle, and if not, re-plan the driving speed or trajectory of the own vehicle; If so, when calculating the retracted state of the accessory, whether the distance from the center of the accessory shape model to the side of the movable obstacle shape model is greater than the radius of the accessory shape model, if greater, then put the accessory away and keep the current self The driving parameters of the vehicle remain unchanged. If it is not greater than , then re-plan the driving speed or trajectory of the own vehicle.
通过判断附件形体模型与可移动障碍物是否发生碰撞,进而确定是否收起附件来避免碰撞,能够提高无人驾驶车辆的行驶效率,不会因改变自车行驶速度或者重新规划行驶路线而减缓无人驾驶车辆的行程。By judging whether the shape model of the accessory collides with the movable obstacle, and then determining whether to put away the accessory to avoid the collision, the driving efficiency of the unmanned vehicle can be improved, and it will not be slowed down due to changing the driving speed of the vehicle or replanning the driving route. The journey of a human-driven vehicle.
由于在不同的时间,道路上的拥堵情况不同,所以为了适应不同路况,管理员可以预先在无人驾驶车辆上配置多种自车形体模型,每个自车形体模型包括的圆形数量不同。Since the congestion on the road is different at different times, in order to adapt to different road conditions, the administrator can pre-configure a variety of ego vehicle body models on the unmanned vehicle, and each ego vehicle body model includes a different number of circles.
无人驾驶车辆在行驶的过程中,还可以获取行驶轨迹下的当前道路拥堵情况,若当前道路拥挤,则选择圆形数量多的自车形体模型,提高自车形体模型完全覆盖车辆的精度,进而减小自车形体模型占用的安全区域,避免进行无效碰撞检测;若当前道路通畅,则选择圆形数量少的自车形体模型,使无人驾驶车辆在进行碰撞检测时,减少计算道路 地形边界或者可移动障碍物的形体模型到自车形体模型的距离的压力,对即将发生的碰撞做出更快的反应,提高无人驾驶车辆处理突发情况的性能。During the driving process of the unmanned vehicle, the current road congestion under the driving trajectory can also be obtained. If the current road is congested, the self-vehicle shape model with a large number of circles is selected to improve the accuracy of the self-vehicle shape model completely covering the vehicle. Then reduce the safe area occupied by the ego vehicle shape model to avoid invalid collision detection; if the current road is smooth, choose the ego vehicle shape model with a small number of circles, so that the unmanned vehicle can reduce the calculation of road terrain when performing collision detection The pressure of the distance between the shape model of the boundary or the movable obstacle and the body model of the ego vehicle makes a faster response to the impending collision and improves the performance of the unmanned vehicle in dealing with unexpected situations.
例如:管理员可以预先在无人驾驶车辆上配置三种自车形体模型,一种是三个圆的车身形体模型,一种是五个圆的车身形体模型,一种是七个圆的车身形体模型,无人驾驶车辆在获取到自车轨迹下的当前道路拥堵情况后,视情况选择自车形体模型:若道路拥堵严重,选择七个圆的车身形体模型,从而缩小每个圆的半径,提高模型精度,避免无人驾驶车辆行驶时发生碰撞检测的误判;若道路十分通畅,选择三个圆的车身形体模型,降低无人驾驶车辆的运算压力,提高应对突发情况的能力;在一般的情况下,选择五个圆的车身形体模型,在保持模型精度的同时降低无人驾驶车辆的计算压力,保持两者平衡。For example: the administrator can pre-configure three self-vehicle body models on the unmanned vehicle, one is a body model of three circles, one is a body model of five circles, and the other is a body model of seven circles Body model, after the unmanned vehicle obtains the current road congestion situation under the trajectory of the vehicle, select the body model of the vehicle according to the situation: if the road congestion is serious, select the body model of seven circles to reduce the radius of each circle , improve the accuracy of the model, and avoid misjudgment of collision detection when the unmanned vehicle is driving; if the road is very smooth, choose a three-circle body shape model to reduce the computing pressure of the unmanned vehicle and improve the ability to deal with emergencies; In general, the body model of five circles is selected to reduce the calculation pressure of unmanned vehicles while maintaining the accuracy of the model, and maintain a balance between the two.
通过本申请提供的技术方案,使用新的形体模型,将多个相同的圆上下均匀分布在自车矩形车身上,减少了因车身变大而导致模型横向膨胀过多,占用过多安全区域的问题,提高了无人驾驶车辆形体模型的精度。同时,利用本申请提出的技术方案,还能够实时检测自车周围的地形环境,根据自车前方地形的宽窄程度自适应的展开或收起自车所带的附件,提高自车适应环境的能力。Through the technical solution provided by this application, using a new shape model, multiple identical circles are evenly distributed up and down on the rectangular body of the vehicle, reducing the excessive lateral expansion of the model due to the enlarged body and occupying too much safe area. problem, improving the accuracy of body models for unmanned vehicles. At the same time, using the technical solution proposed in this application, it is also possible to detect the terrain environment around the vehicle in real time, and adaptively expand or retract the accessories carried by the vehicle according to the width of the terrain in front of the vehicle, so as to improve the ability of the vehicle to adapt to the environment .
与前述一种碰撞检测的方法的实施例相对应,本申请还提供了一种碰撞检测的装置的实施例。Corresponding to the foregoing embodiment of a collision detection method, the present application also provides an embodiment of a collision detection device.
本申请一种碰撞检测的装置的实施例可以应用在无人驾驶车辆上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在无人驾驶车辆的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图8所示,为本申请一种碰撞检测的装置所在无人驾驶车辆的一种硬件结构图,除了图8所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的无人驾驶车辆通常根据该无人驾驶车辆的实际功能,还可以包括其他硬件,对此不再赘述。An embodiment of a collision detection device of the present application can be applied to unmanned vehicles. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the unmanned vehicle where it is located. From the hardware level, as shown in Figure 8, it is a hardware structure diagram of an unmanned vehicle where a collision detection device of the present application is located, except for the processor, memory, network interface, and non-volatile memory shown in Figure 8 In addition to the volatile memory, the unmanned vehicle where the device in the embodiment is located usually may also include other hardware according to the actual function of the unmanned vehicle, which will not be repeated here.
请参考图9,图9是本申请示出的一种碰撞检测的装置的框图,所述碰撞检测装置可以应用在前述无人驾驶车辆上,包括:模型获取模块902,用于获取自车形体模型,用于获取自车形体模型,所述自车形体模型所含的车身形体模型为多圆模型;碰撞检测模块904,用于依据所述自车形体模型进行碰撞检测;其中,在所述无人驾驶车辆的矩形车身被均分为沿长边方向的n个矩形的情况下,所述多圆模型包含的n个圆形的圆心分别为所述n个矩形的中心点,且各圆形的半径为任一中心点到其所在矩形的顶点的距 离,n为大于1的正整数。Please refer to FIG. 9. FIG. 9 is a block diagram of a collision detection device shown in the present application. The collision detection device can be applied to the aforementioned unmanned vehicle, including: a model acquisition module 902, used to obtain the body of the vehicle Model, used to obtain the body model of the self-vehicle, the vehicle body body model contained in the body model of the self-vehicle is a multi-circle model; the collision detection module 904 is used to perform collision detection according to the body model of the self-vehicle; wherein, in the In the case where the rectangular body of the unmanned vehicle is equally divided into n rectangles along the long side direction, the centers of the n circles contained in the multi-circle model are respectively the center points of the n rectangles, and each circle The radius of a shape is the distance from any center point to the apex of the rectangle where it is located, and n is a positive integer greater than 1.
可选的,在模型获取模块902中,当所述无人驾驶车辆带有超出车身外的一个或多个附件时,所述自车形体模型还包括附件形体模型;所述附件形体模型包括分别对应于每个附件的单圆模型;所述单圆模型的圆心位于相应附件上最远两点的连线的中点、直径为所述连线的长度。Optionally, in the model acquisition module 902, when the unmanned vehicle has one or more accessories beyond the vehicle body, the vehicle body model also includes an accessory body model; the accessory body model includes A single-circle model corresponding to each accessory; the center of the single-circle model is located at the midpoint of the line connecting the two furthest points on the corresponding accessory, and the diameter is the length of the line.
可选的,当所述无人驾驶车辆带有超出车身外的一个或多个附件时,还包括:地形获取模块906,用于获取自车前方预设距离内道路地形的边界;距离计算模块908,用于计算在所有自车附件都展开的情况下,各附件形体模型的圆心到所述地形边界的距离;若所述距离大于对应附件形体模型的半径,则展开该附件形体模型对应的附件;若所述距离不大于对应附件形体模型的半径,则收起该附件形体模型对应的附件。Optionally, when the unmanned vehicle has one or more accessories beyond the vehicle body, it also includes: a terrain acquisition module 906, which is used to acquire the boundary of the road terrain within a preset distance in front of the vehicle; a distance calculation module 908. It is used to calculate the distance from the center of each accessory body model to the terrain boundary when all the accessories of the vehicle are deployed; if the distance is greater than the radius of the corresponding accessory body model, expand the corresponding Attachment; if the distance is not greater than the radius of the corresponding attachment body model, then put away the attachment corresponding to the attachment body model.
可选的,碰撞检测模块904具体用于:参数获取单元,用于获取自车行驶参数和可移动障碍物行驶参数;所述自车行驶参数包括自车行驶轨迹和自车行驶速度,所述可移动障碍物行驶参数包括可移动障碍物的行驶轨迹和可移动障碍物的行驶速度;碰撞判定单元,依据所述自车行驶参数和可移动障碍物的行驶参数,若预测所述自车形体模型对应的行驶区域与可移动障碍物的行驶区域会发生重叠,则判定存在碰撞风险。Optionally, the collision detection module 904 is specifically used for: a parameter acquisition unit, configured to acquire the driving parameters of the own vehicle and the driving parameters of the movable obstacle; the driving parameters of the own vehicle include the driving trajectory of the own vehicle and the driving speed of the own vehicle, and the The moving parameters of the movable obstacle include the moving trajectory of the moving obstacle and the moving speed of the moving obstacle; the collision determination unit, according to the driving parameters of the own vehicle and the driving parameters of the moving obstacle, if the prediction of the shape of the own vehicle If the driving area corresponding to the model overlaps with the driving area of the movable obstacle, it is determined that there is a risk of collision.
可选的,所述装置还包括:碰撞时刻计算模块910,用于计算所述无人驾驶车辆与所述可移动障碍物的碰撞时刻,所述碰撞时刻为所述自车形体模型对应的行驶区域与可移动障碍物的行驶区域发生重叠的时刻;速度规划模块912,用于依据所述碰撞时刻重新规划自车速度以消除碰撞风险。Optionally, the device further includes: a collision time calculation module 910, configured to calculate the collision time between the unmanned vehicle and the movable obstacle, and the collision time is the driving time corresponding to the ego vehicle shape model. The time when the area overlaps with the driving area of the movable obstacle; the speed planning module 912 is used to re-plan the vehicle speed according to the collision time to eliminate the collision risk.
上述装置中各个单元的功能和作用的实现过程具体详见上述方法中对应步骤的实现过程,在此不再赘述。For the implementation process of the functions and effects of each unit in the above device, please refer to the implementation process of the corresponding steps in the above method for details, and will not be repeated here.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本申请方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。As for the device embodiment, since it basically corresponds to the method embodiment, for related parts, please refer to the part description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application. It can be understood and implemented by those skilled in the art without creative effort.
本说明书中描述的主题及功能操作的实施例可以在以下中实现:数字电子电路、有形体现的计算机软件或固件、包括本说明书中公开的结构及其结构性等同物的计算机硬 件、或者它们中的一个或多个的组合。本说明书中描述的主题的实施例可以实现为一个或多个计算机程序,即编码在有形非暂时性程序载体上以被数据处理装置执行或控制数据处理装置的操作的计算机程序指令中的一个或多个模块。可替代地或附加地,程序指令可以被编码在人工生成的传播信号上,例如机器生成的电、光或电磁信号,该信号被生成以将信息编码并传输到合适的接收机装置以由数据处理装置执行。计算机存储介质可以是机器可读存储设备、机器可读存储基板、随机或串行存取存储器设备、或它们中的一个或多个的组合。Embodiments of the subject matter and functional operations described in this specification can be implemented in digital electronic circuitry, tangibly embodied computer software or firmware, computer hardware including the structures disclosed in this specification and their structural equivalents, or in A combination of one or more of . Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, that is, one or more of computer program instructions encoded on a tangible, non-transitory program carrier for execution by or to control the operation of data processing apparatus. Multiple modules. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagated signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated to encode and transmit information to a suitable receiver device for transmission by the data The processing means executes. A computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
本说明书中描述的处理及逻辑流程可以由执行一个或多个计算机程序的一个或多个可编程计算机执行,以通过根据输入数据进行操作并生成输出来执行相应的功能。所述处理及逻辑流程还可以由专用逻辑电路—例如FPGA(现场可编程门阵列)或ASIC(专用集成电路)来执行,并且装置也可以实现为专用逻辑电路。The processes and logic flows described in this specification can be performed by one or more programmable computers executing one or more computer programs to perform corresponding functions by operating on input data and generating output. The processes and logic flows can also be performed by, and apparatus can also be implemented as, special purpose logic circuitry, such as an FPGA (Field Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit).
适合用于执行计算机程序的计算机包括,例如通用和/或专用微处理器,或任何其他类型的中央处理单元。通常,中央处理单元将从只读存储器和/或随机存取存储器接收指令和数据。计算机的基本组件包括用于实施或执行指令的中央处理单元以及用于存储指令和数据的一个或多个存储器设备。通常,计算机还将包括用于存储数据的一个或多个大容量存储设备,例如磁盘、磁光盘或光盘等,或者计算机将可操作地与此大容量存储设备耦接以从其接收数据或向其传送数据,抑或两种情况兼而有之。然而,计算机不是必须具有这样的设备。此外,计算机可以嵌入在另一设备中,例如移动电话、个人数字助理(PDA)、移动音频或视频播放器、游戏操纵台、全球定位系统(GPS)接收机、或例如通用串行总线(USB)闪存驱动器的便携式存储设备,仅举几例。Computers suitable for the execution of a computer program include, for example, general and/or special purpose microprocessors, or any other type of central processing unit. Generally, a central processing unit will receive instructions and data from a read only memory and/or a random access memory. The essential components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, a computer will also include, or be operatively coupled to, one or more mass storage devices for storing data, such as magnetic or magneto-optical disks, or optical disks, to receive data therefrom or to It transmits data, or both. However, a computer is not required to have such a device. In addition, a computer may be embedded in another device such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a Global Positioning System (GPS) receiver, or a device such as a Universal Serial Bus (USB) ) portable storage devices like flash drives, to name a few.
适合于存储计算机程序指令和数据的计算机可读介质包括所有形式的非易失性存储器、媒介和存储器设备,例如包括半导体存储器设备(例如EPROM、EEPROM和闪存设备)、磁盘(例如内部硬盘或可移动盘)、磁光盘以及CD ROM和DVD-ROM盘。处理器和存储器可由专用逻辑电路补充或并入专用逻辑电路中。Computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media, and memory devices, including, for example, semiconductor memory devices (such as EPROM, EEPROM, and flash memory devices), magnetic disks (such as internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory can be supplemented by, or incorporated in, special purpose logic circuitry.
虽然本说明书包含许多具体实施细节,但是这些不应被解释为限制任何发明的范围或所要求保护的范围,而是主要用于描述特定发明的具体实施例的特征。本说明书内在多个实施例中描述的某些特征也可以在单个实施例中被组合实施。另一方面,在单个实施例中描述的各种特征也可以在多个实施例中分开实施或以任何合适的子组合来实施。此外,虽然特征可以如上所述在某些组合中起作用并且甚至最初如此要求保护,但是来自所要求保护的组合中的一个或多个特征在一些情况下可以从该组合中去除,并且所要 求保护的组合可以指向子组合或子组合的变型。While this specification contains many specific implementation details, these should not be construed as limitations on the scope of any inventions or of what may be claimed, but rather as primarily describing features of particular embodiments of particular inventions. Certain features that are described in this specification in multiple embodiments can also be implemented in combination in a single embodiment. On the other hand, various features that are described in a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination. Furthermore, although features may function in certain combinations as described above and even be initially so claimed, one or more features from a claimed combination may in some cases be removed from that combination and the claimed A protected combination can point to a subcombination or a variant of a subcombination.
类似地,虽然在附图中以特定顺序描绘了操作,但是这不应被理解为要求这些操作以所示的特定顺序执行或顺次执行、或者要求所有例示的操作被执行,以实现期望的结果。在某些情况下,多任务和并行处理可能是有利的。此外,上述实施例中的各种系统模块和组件的分离不应被理解为在所有实施例中均需要这样的分离,并且应当理解,所描述的程序组件和系统通常可以一起集成在单个软件产品中,或者封装成多个软件产品。Similarly, while operations are depicted in the figures in a particular order, this should not be construed as requiring that those operations be performed in the particular order shown, or sequentially, or that all illustrated operations be performed, to achieve the desired result. In some cases, multitasking and parallel processing may be advantageous. Furthermore, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can often be integrated together in a single software product in, or packaged into multiple software products.
由此,主题的特定实施例已被描述。其他实施例在所附权利要求书的范围以内。在某些情况下,权利要求书中记载的动作可以以不同的顺序执行并且仍实现期望的结果。此外,附图中描绘的处理并非必需所示的特定顺序或顺次顺序,以实现期望的结果。在某些实现中,多任务和并行处理可能是有利的。Thus, certain embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some implementations, multitasking and parallel processing may be advantageous.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above is only a preferred embodiment of the application, and is not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application should be included in the application. within the scope of protection.

Claims (10)

  1. 一种碰撞检测的方法,应用于无人驾驶车辆,该方法包括:A collision detection method applied to unmanned vehicles, the method comprising:
    获取自车形体模型,所述自车形体模型所含的车身形体模型为多圆模型;Obtaining the body model of the self-vehicle, the body body model contained in the body model of the self-vehicle is a multi-circle model;
    依据所述自车形体模型进行碰撞检测;其中,在所述无人驾驶车辆的矩形车身被均分为沿长边方向的n个矩形的情况下,所述多圆模型包含的n个圆形的圆心分别为所述n个矩形的中心点,且各圆形的半径为任一中心点到其所在矩形的顶点的距离,n为大于1的正整数。Collision detection is performed according to the vehicle shape model; wherein, when the rectangular body of the unmanned vehicle is divided into n rectangles along the long side direction, the n circles contained in the multi-circle model The centers of the circles are the center points of the n rectangles, and the radius of each circle is the distance from any center point to the apex of the rectangle where it is located, and n is a positive integer greater than 1.
  2. 根据权利要求1所述的方法,当所述无人驾驶车辆带有超出车身外的一个或多个附件时,所述自车形体模型还包括附件形体模型;According to the method according to claim 1, when the unmanned vehicle has one or more accessories beyond the vehicle body, the body model of the self-vehicle also includes an accessory body model;
    所述附件形体模型包括分别对应于每个附件的单圆模型;所述单圆模型的圆心位于相应附件上最远两点的连线的中点、直径为所述连线的长度。The accessory body model includes a single-circle model corresponding to each accessory; the center of the single-circle model is located at the midpoint of the line connecting the two furthest points on the corresponding accessory, and the diameter is the length of the line.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:
    获取自车前方预设距离内道路地形的边界;Obtain the boundary of the road terrain within the preset distance in front of the ego vehicle;
    计算在所有自车附件都展开的情况下,各附件形体模型的圆心到所述地形边界的距离;Calculate the distance from the center of each accessory shape model to the terrain boundary when all the accessories of the vehicle are unfolded;
    若所述距离大于对应附件形体模型的半径,则展开该附件形体模型对应的附件;If the distance is greater than the radius of the corresponding accessory body model, then expand the accessory corresponding to the accessory body model;
    若所述距离不大于对应附件形体模型的半径,则收起该附件形体模型对应的附件。If the distance is not greater than the radius of the corresponding accessory body model, the accessory corresponding to the accessory body model is put away.
  4. 根据权利要求2所述的方法,其特征在于,所述依据所述自车形体模型进行碰撞检测,包括:The method according to claim 2, wherein said performing collision detection according to said self-vehicle body model comprises:
    获取自车行驶参数和可移动障碍物行驶参数;所述自车行驶参数包括自车行驶轨迹和自车行驶速度,所述可移动障碍物行驶参数包括可移动障碍物的行驶轨迹和可移动障碍物的行驶速度;Obtain the driving parameters of the own vehicle and the driving parameters of the movable obstacle; the driving parameters of the own vehicle include the driving trajectory of the own vehicle and the driving speed of the own vehicle, and the driving parameters of the movable obstacle include the driving trajectory of the movable obstacle and the moving obstacle the speed of the object;
    依据所述自车行驶参数和可移动障碍物的行驶参数,若预测所述自车形体模型对应的行驶区域与可移动障碍物的行驶区域会发生重叠,则判定存在碰撞风险。According to the driving parameters of the own vehicle and the driving parameters of the movable obstacle, if it is predicted that the driving area corresponding to the body model of the ego vehicle will overlap with the driving area of the movable obstacle, it is determined that there is a collision risk.
  5. 根据权利要求4所述的方法,其特征在于,所述方法还包括:The method according to claim 4, characterized in that the method further comprises:
    计算所述无人驾驶车辆与所述可移动障碍物的碰撞时刻,所述碰撞时刻为所述自车形体模型对应的行驶区域与可移动障碍物的行驶区域发生重叠的时刻;Calculating the collision time between the unmanned vehicle and the movable obstacle, the collision time being the time when the driving area corresponding to the body model of the ego vehicle overlaps with the driving area of the movable obstacle;
    依据所述碰撞时刻重新规划自车速度以消除碰撞风险。The vehicle speed is replanned according to the collision time to eliminate the collision risk.
  6. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    获取多种自车形体模型;所述多种自车形体模型包括多个圆形数量不同的多圆模型;Obtain a variety of vehicle body models; the multiple vehicle body models include multiple circle models with different numbers of circles;
    若自车行驶轨迹下的当前道路拥堵情况为拥堵时,选择圆形数量多的模型进行碰撞 检测;If the current road congestion under the driving trajectory of the self-vehicle is congestion, select the model with a large number of circles for collision detection;
    若所述当前道路拥堵情况为通畅时,选择圆形数量少的模型进行碰撞检测。If the current road congestion is smooth, select a model with a small number of circles for collision detection.
  7. 根据权利要求1所述的方法,其特征在于,所述多圆模型为五圆模型。The method according to claim 1, wherein the multi-circle model is a five-circle model.
  8. 一种碰撞检测的装置,应用于无人驾驶车辆,该装置包括:A collision detection device applied to unmanned vehicles, the device comprising:
    模型获取模块,用于获取自车形体模型,所述自车形体模型所含的车身形体模型为多圆模型;A model acquisition module, used to acquire the body model of the self-vehicle, and the body body model contained in the body model of the self-vehicle is a multi-circle model;
    碰撞检测模块,用于依据所述自车形体模型进行碰撞检测;其中,在所述无人驾驶车辆的矩形车身被均分为沿长边方向的n个矩形的情况下,所述多圆模型包含的n个圆形的圆心分别为所述n个矩形的中心点,且各圆形的半径为任一中心点到其所在矩形的顶点的距离,n为大于1的正整数。A collision detection module, configured to perform collision detection according to the self-vehicle shape model; wherein, when the rectangular body of the unmanned vehicle is equally divided into n rectangles along the long side direction, the multi-circle model The centers of the n circles included are the center points of the n rectangles, and the radius of each circle is the distance from any center point to the apex of the rectangle where it is located, and n is a positive integer greater than 1.
  9. 一种存储介质,其上存储有计算机程序指令,所述计算机程序指令被执行后能够实现权利要求1到7中任一项所述的方法。A storage medium, on which computer program instructions are stored, and the computer program instructions can implement the method according to any one of claims 1 to 7 after being executed.
  10. 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:
    用于存储计算机程序指令的存储器;和memory for storing computer program instructions; and
    用于执行计算机程序指令的处理器,a processor for executing computer program instructions,
    其中,当该计算机程序指令被该处理器执行后能够实现权利要求1到7中任一项所述的方法。Wherein, the method described in any one of claims 1 to 7 can be realized when the computer program instructions are executed by the processor.
PCT/CN2022/071344 2021-11-26 2022-01-11 Collision detection WO2023092837A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111421197.2A CN115292796B (en) 2021-11-26 2021-11-26 Collision detection method and device
CN202111421197.2 2021-11-26

Publications (1)

Publication Number Publication Date
WO2023092837A1 true WO2023092837A1 (en) 2023-06-01

Family

ID=83818967

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/071344 WO2023092837A1 (en) 2021-11-26 2022-01-11 Collision detection

Country Status (2)

Country Link
CN (1) CN115292796B (en)
WO (1) WO2023092837A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116424315B (en) * 2023-03-31 2024-10-15 阿波罗智联(北京)科技有限公司 Collision detection method, collision detection device, electronic equipment, automatic driving vehicle and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150183410A1 (en) * 2013-12-30 2015-07-02 Automotive Research & Testing Center Adaptive anti-collision method for vehicle
CN108010388A (en) * 2018-01-04 2018-05-08 北京瑞腾中天科技有限公司 Collision detection method for early warning and collision detection early warning system based on car networking network
CN111338340A (en) * 2020-02-21 2020-06-26 天津大学 Model prediction-based unmanned automobile local path planning method
CN111750887A (en) * 2020-06-11 2020-10-09 上海交通大学 Unmanned vehicle trajectory planning method and system for reducing accident severity
CN112109704A (en) * 2020-09-22 2020-12-22 同济大学 Vehicle collision avoidance dynamic safety path planning method based on accurate track prediction
CN113635893A (en) * 2021-07-16 2021-11-12 安徽工程大学 Urban intelligent traffic-based unmanned vehicle steering control method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000339029A (en) * 1999-05-31 2000-12-08 Komatsu Ltd Interference prevention device for vehicle
JP3658519B2 (en) * 1999-06-28 2005-06-08 株式会社日立製作所 Vehicle control system and vehicle control device
CN113119964B (en) * 2019-12-30 2022-08-02 宇通客车股份有限公司 Collision prediction judgment method and device for automatic driving vehicle
CN111591288B (en) * 2020-03-31 2021-09-10 北京智行者科技有限公司 Collision detection method and device based on distance transformation graph
CN112249008B (en) * 2020-09-30 2021-10-26 南京航空航天大学 Unmanned automobile early warning method aiming at complex dynamic environment
CN113670632B (en) * 2021-08-18 2024-04-12 北京经纬恒润科技股份有限公司 Collision detection method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150183410A1 (en) * 2013-12-30 2015-07-02 Automotive Research & Testing Center Adaptive anti-collision method for vehicle
CN108010388A (en) * 2018-01-04 2018-05-08 北京瑞腾中天科技有限公司 Collision detection method for early warning and collision detection early warning system based on car networking network
CN111338340A (en) * 2020-02-21 2020-06-26 天津大学 Model prediction-based unmanned automobile local path planning method
CN111750887A (en) * 2020-06-11 2020-10-09 上海交通大学 Unmanned vehicle trajectory planning method and system for reducing accident severity
CN112109704A (en) * 2020-09-22 2020-12-22 同济大学 Vehicle collision avoidance dynamic safety path planning method based on accurate track prediction
CN113635893A (en) * 2021-07-16 2021-11-12 安徽工程大学 Urban intelligent traffic-based unmanned vehicle steering control method

Also Published As

Publication number Publication date
CN115292796B (en) 2023-06-02
CN115292796A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN114270142B (en) Unstructured vehicle path planner
US11225247B2 (en) Collision prediction and avoidance for vehicles
JP6748259B2 (en) A Method for Generating Obstacle Prediction Trajectories for Autonomous Vehicles
CN109984689B (en) Cleaning robot and path optimization method thereof
US10816990B2 (en) Non-blocking boundary for autonomous vehicle planning
US20210256850A1 (en) Drive envelope determination
EP3623759B1 (en) A computer-implemented method and a system for defining a path for a vehicle within an environment with obstacles
US10571921B2 (en) Path optimization based on constrained smoothing spline for autonomous driving vehicles
US10775801B2 (en) Determining speeds along a path for autonomous driving vehicles
US10948919B2 (en) Dynamic programming and gradient descent based decision and planning for autonomous driving vehicles
WO2022016941A1 (en) Method and device for planning obstacle avoidance path for traveling device
EP3339806B1 (en) Navigation for vehicle based on parallel processing to determine collision-free paths
US11774975B2 (en) Collision zone detection for vehicles
JP2022502306A (en) Radar space estimation
US11433885B1 (en) Collision detection for vehicles
CN115551758A (en) Unstructured vehicle path planner
KR102396277B1 (en) Method and device for detecting parking area using semantic segmentation in automatic parking system
WO2023092837A1 (en) Collision detection
WO2022148441A1 (en) Vehicle parking planning method and apparatus, and device and computer storage medium
WO2021037071A1 (en) Flight control method and related apparatus
EP4316934A1 (en) Trajectory planning method and related device
WO2023035519A1 (en) Traveling route determination
CN114030483B (en) Vehicle control method, device, electronic equipment and medium
KR102552719B1 (en) Method and apparatus for automatically generating drive route
WO2024118765A1 (en) Vehicle trajectory tree search for off-route driving maneuvers

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22896941

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE