[go: up one dir, main page]

CN111409632A - Vehicle control method and device, computer equipment and storage medium - Google Patents

Vehicle control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111409632A
CN111409632A CN201811557452.4A CN201811557452A CN111409632A CN 111409632 A CN111409632 A CN 111409632A CN 201811557452 A CN201811557452 A CN 201811557452A CN 111409632 A CN111409632 A CN 111409632A
Authority
CN
China
Prior art keywords
real
determining
time
vehicle
reference line
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201811557452.4A
Other languages
Chinese (zh)
Other versions
CN111409632B (en
Inventor
黄露
贺志国
黄英君
杨名芳
谢景飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xidi Intelligent Driving Technology Co ltd
Original Assignee
Changsha Intelligent Driving Research Institute Co Ltd
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 Changsha Intelligent Driving Research Institute Co Ltd filed Critical Changsha Intelligent Driving Research Institute Co Ltd
Priority to CN201811557452.4A priority Critical patent/CN111409632B/en
Publication of CN111409632A publication Critical patent/CN111409632A/en
Application granted granted Critical
Publication of CN111409632B publication Critical patent/CN111409632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60WCONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
    • B60W30/00Purposes of road vehicle drive control systems not related to the control of a particular sub-unit, e.g. of systems using conjoint control of vehicle sub-units
    • B60W30/10Path keeping
    • B60W30/12Lane keeping

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Steering Control In Accordance With Driving Conditions (AREA)

Abstract

A vehicle control method, a vehicle control apparatus, a computer device, and a computer storage medium, the method of one embodiment comprising: acquiring a real-time position of a vehicle; generating a path planning reference line according to the real-time position; determining a real-time offset value between the real-time position and the path planning reference line; and determining a control quantity according to the real-time deviation value, and determining a steering angle of a steering wheel according to the control quantity. According to the scheme, the vehicle can be kept on the path planning reference line, the vehicle control precision is effectively improved, the problem that the vehicle deviates from a lane is avoided, and the vehicle running safety is improved.

Description

车辆控制方法及装置、计算机设备和存储介质Vehicle control method and device, computer equipment and storage medium

技术领域technical field

本申请涉及智能驾驶技术领域,特别是涉及一种车辆控制方法,车辆控制装置,计算机设备和计算机存储介质。The present application relates to the technical field of intelligent driving, and in particular, to a vehicle control method, a vehicle control device, a computer device and a computer storage medium.

背景技术Background technique

无人驾驶车辆在道路上行驶时,车辆上的各智能控制模块将通过车载传感系统感知道路环境,并基于实时道路环境规划出一条超过安全行驶距离的行驶路径用于车辆的自动行驶。然而,在车辆自动行驶的过程中,由于控制误差、执行模块误差等因素,会导致车辆不完全按照规划的道路轨迹行驶,在一定程度的偏离规划行驶的车道,尤其是在车辆高速行驶时产生的影响会非常明显,从而给自身以及在其他车道上的行驶的车辆带来安全隐患。When the unmanned vehicle is driving on the road, the intelligent control modules on the vehicle will perceive the road environment through the on-board sensing system, and plan a driving path that exceeds the safe driving distance based on the real-time road environment for automatic driving of the vehicle. However, in the process of automatic driving of the vehicle, due to factors such as control errors and execution module errors, the vehicle will not completely follow the planned road trajectory, and may deviate from the planned driving lane to a certain extent, especially when the vehicle is running at high speed. The impact will be very obvious, which will bring safety hazards to itself and vehicles driving in other lanes.

发明内容SUMMARY OF THE INVENTION

基于此,有必要提供一种车辆控制方法,车辆控制装置,计算机设备和计算机存储介质。Based on this, it is necessary to provide a vehicle control method, a vehicle control device, a computer device and a computer storage medium.

一种车辆控制方法,所述方法包括:A vehicle control method, the method comprising:

获取车辆的实时位置;Get the real-time location of the vehicle;

根据所述实时位置生成路径规划参考线;generating a path planning reference line according to the real-time position;

确定所述实时位置与所述路径规划参考线之间的实时偏移值;determining a real-time offset value between the real-time position and the path planning reference line;

根据所述实时偏移值确定控制量,根据所述控制量确定方向盘转向角度。A control amount is determined according to the real-time offset value, and a steering wheel steering angle is determined according to the control amount.

一种车辆控制装置,所述装置包括:A vehicle control device comprising:

位置获取模块,用于获取车辆的实时位置;The location acquisition module is used to acquire the real-time location of the vehicle;

参考线规划模块,用于根据所述实时位置生成路径规划参考线;a reference line planning module, configured to generate a path planning reference line according to the real-time position;

偏移值确定模块,用于确定所述实时位置与所述路径规划参考线之间的实时偏移值;an offset value determination module, configured to determine a real-time offset value between the real-time position and the path planning reference line;

控制量确定模块,用于根据所述实时偏移值确定控制量,根据所述控制量确定方向盘转向角度。A control amount determination module, configured to determine a control amount according to the real-time offset value, and determine a steering wheel steering angle according to the control amount.

一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述处理器执行所述计算机程序时,实现如上所述的方法的步骤。A computer device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, the steps of the above method are implemented.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现如上所述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implements the steps of the method as described above.

如上所述的实施例中的车辆控制方法,车辆控制装置,计算机设备和计算机存储介质,其在获得车辆的实时位置之后,基于实时位置生成路径规划参考线,并确定实时位置和路径规划参考线之间的实时偏移值,并结合该实时偏移值计算出控制量,并据此确定方向盘转向角度,从而可以基于生成的路径规划参考线实现对方向盘转向角度的设定,据此实现对车辆的控制,使得车辆可以保持在路径规划参考线上,有效提高了车辆控制的精度,避免了车辆偏离车道的问题,提高了车辆行驶的安全性。The vehicle control method, vehicle control device, computer equipment and computer storage medium in the above-mentioned embodiments, after obtaining the real-time position of the vehicle, generating a path planning reference line based on the real-time position, and determining the real-time position and the path planning reference line The real-time offset value between the two, and the control amount is calculated based on the real-time offset value, and the steering angle of the steering wheel is determined accordingly, so that the steering angle of the steering wheel can be set based on the generated path planning reference line. The control of the vehicle enables the vehicle to remain on the path planning reference line, which effectively improves the accuracy of the vehicle control, avoids the problem of the vehicle deviating from the lane, and improves the safety of the vehicle.

附图说明Description of drawings

图1为一个实施例中的车辆控制方法的流程示意图;FIG. 1 is a schematic flowchart of a vehicle control method in one embodiment;

图2为一个实施例中的车辆在车道内行驶的状态的示意图;FIG. 2 is a schematic diagram of a state in which a vehicle is traveling in a lane in one embodiment;

图3为另一个实施例中的车辆在车道内行驶的状态的示意图;3 is a schematic diagram of a state in which a vehicle is traveling in a lane in another embodiment;

图4为一个实施例中确定横向控制量的原理示意图;4 is a schematic diagram of the principle of determining a lateral control amount in one embodiment;

图5为是一个实施例中确定控制量的原理示意图;5 is a schematic diagram of the principle of determining a control amount in one embodiment;

图6是一个实施例中确定方向盘转向角度的原理示意图;Fig. 6 is the principle schematic diagram of determining the steering wheel steering angle in one embodiment;

图7是一个实施例中的车辆控制装置的模块结构示意图;7 is a schematic diagram of a module structure of a vehicle control device in one embodiment;

图8为一个实施例中计算机设备的内部结构图。FIG. 8 is a diagram of the internal structure of a computer device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

参考图1所示,一个实施例中的车辆控制方法,该方法可以由进行车辆控制的设备,或者由为车辆控制的设备提供控制参数的设备执行,包括步骤S101至步骤S104。Referring to FIG. 1 , a vehicle control method in one embodiment, the method may be executed by a device for vehicle control, or by a device for providing control parameters for the device under vehicle control, including steps S101 to S104 .

步骤S101:获取车辆的实时位置。Step S101: Obtain the real-time position of the vehicle.

一个实施例中,可以采用任何可能的方式来获得车辆的实时位置,例如GPS定位、GPS定位结合卫星定位等等。In one embodiment, the real-time position of the vehicle may be obtained in any possible manner, such as GPS positioning, GPS positioning combined with satellite positioning, and the like.

一个实施例中,在获得车辆的实时位置之后,还可以基于所述实时位置以及所述车辆的车头方向建立车身坐标系,并基于所述车身坐标系生成相对地图。其中,在建立车身坐标系时,可以以车辆的后轴中心为坐标系原点,车头正对方向为第一坐标轴正方向,车头正对方向逆时针/顺时针旋转90度后的方向为第二坐标轴正方向。在生成相对地图后,将上述实时位置投影至该相对地图上,从而获得车辆在该相对地图上的车辆相对位置。In one embodiment, after the real-time position of the vehicle is obtained, a body coordinate system may also be established based on the real-time position and the head direction of the vehicle, and a relative map is generated based on the body coordinate system. Among them, when establishing the body coordinate system, the center of the rear axle of the vehicle can be used as the origin of the coordinate system, the front-facing direction of the vehicle is the positive direction of the first coordinate axis, and the direction of the front-facing direction after rotating 90 degrees counterclockwise/clockwise is the first coordinate system. The positive direction of the two coordinate axes. After the relative map is generated, the above-mentioned real-time position is projected onto the relative map, so as to obtain the relative position of the vehicle on the relative map.

步骤S102:根据所述实时位置生成路径规划参考线。Step S102: Generate a path planning reference line according to the real-time position.

一个实施例中,该路径规划参考线可以是车道中心线。据此,可以采用各种可能的方式生成该路径规划参考线。In one embodiment, the path planning reference line may be a lane centerline. Accordingly, the path planning reference line can be generated in various possible ways.

例如,在其中一种方式中,在根据实时位置生成路径规划参考线时,可以采用下述方式进行:获取周围环境信息,并从周围环境信息中提取出车道线信息;然后根据所述实时位置和所述车道线信息,生成所述路径规划参考线。一个实施例中,该周围环境信息可以包括通过车载摄像装置拍摄获得的信息,在车辆行驶环境位于绘制了车道线的道路环境时,通过车载摄像装置拍摄获得的信息中会包含车道线信息,从而可以从车载摄像装置拍摄获得的信息(例如图像)中提取得到车道线信息。从图像中提取车道线的方式可以采用任何可能的方式进行,本申请实施例中不做具体限定。For example, in one of the methods, when generating the path planning reference line according to the real-time position, the following methods can be used: acquiring surrounding environment information, and extracting lane line information from the surrounding environment information; and then according to the real-time position and the lane line information to generate the path planning reference line. In one embodiment, the surrounding environment information may include information obtained by shooting with an in-vehicle camera. When the driving environment of the vehicle is located in a road environment where lane lines are drawn, the information obtained by shooting with the in-vehicle camera will include lane line information, thereby The lane line information can be extracted from information (eg, images) captured by the vehicle-mounted camera device. The manner of extracting the lane line from the image may be performed in any possible manner, which is not specifically limited in this embodiment of the present application.

在另一种方式中,在根据实时位置生成路径规划参考线时,可以采用下述方式进行:根据所述实时位置,从地图数据中获取所述实时位置所在车道的车道线信息;根据所述实时位置和所述车道线信息,生成所述路径规划参考线。此时,在地图数据中包含有各车道的车道线信息的情况下,从而可以结合各车道线信息的位置信息、以及所述实时位置,确定实时位置所在车道的车道线信息。In another way, when generating the path planning reference line according to the real-time position, the following methods may be adopted: obtaining the lane line information of the lane where the real-time position is located from the map data according to the real-time position; The real-time position and the lane line information are used to generate the path planning reference line. At this time, when the map data includes lane line information of each lane, the position information of each lane line information and the real-time position can be combined to determine the lane line information of the lane where the real-time position is located.

在另一种方式中,在根据实时位置生成路径规划参考线时,可以采用下述方式进行:根据基于车辆的出发地和目的地确定的行驶路径,确定车道线,并结合实时位置和确定的车道线生成路径规划参考线。此时,基于行驶路径,可以规划出车辆所需要行驶哪些路段,甚至于还可以规划出在该路段的哪一条车道上行驶,从而可以基于行驶路径确定出车道线,进而结合实时位置和车道线生成路径规划参考线。其中,可以结合自实时位置开始的一定长度的行驶路径对应的车道线,生成该路径规划参考线。具体的基于车辆的出发地和目的地确定的行驶路径、基于形式路径确定车道线的方式,可以采用任何可能的方式进行,本实施例中不做具体限定。In another way, when generating the path planning reference line according to the real-time position, it can be done in the following way: according to the driving path determined based on the departure and destination of the vehicle, determine the lane line, and combine the real-time position and the determined driving path. Lane lines generate route planning guides. At this time, based on the driving path, it is possible to plan which road sections the vehicle needs to travel on, and even which lane of the road section to drive on, so that the lane line can be determined based on the driving path, and then combined with the real-time position and lane line. Generate route planning guides. The path planning reference line may be generated by combining the lane lines corresponding to the travel path of a certain length starting from the real-time position. The specific way of determining the travel path based on the departure place and destination of the vehicle and determining the lane line based on the formal path can be performed in any possible way, which is not specifically limited in this embodiment.

其中,在上述根据所述实时位置和所述车道线信息,生成所述路径规划参考线时,可以采用任何可能的方式进行。一个实施例中,可以是将车辆投影到距离最近的两条车道线(即上述确定的车道线)上,获得两个车道线投影点,并确定两个车道线投影点的中点,然后连接各中点形成所述路径规划参考线。即,路径规划参考线中的各个点,为该点在两个车道线投影点的中点,其中,两个车道线投影点为该点的切线垂直线与两个所述车道线的交点,切线垂直线为与该点在路径规划参考线的切线向垂直的线。Wherein, when generating the path planning reference line according to the real-time position and the lane line information, any possible manner may be used. In one embodiment, the vehicle may be projected onto the two nearest lane lines (that is, the lane lines determined above), the two lane line projection points may be obtained, and the midpoint of the two lane line projection points may be determined, and then connected. Each midpoint forms the path planning reference line. That is, each point in the path planning reference line is the midpoint of the point on the projection points of the two lane lines, wherein the projection points of the two lane lines are the intersections of the tangent vertical line of the point and the two lane lines, The tangent vertical line is the line perpendicular to the tangent of the point on the path planning reference line.

其中,在上述过程中,在上述生成了相对地图的情况下,在提取出车道线信息之后,还可以将该车道线信息投影至上述相对地图,得到车道线在相对地图上的相对车道线信息。后续的生成路径规划参考线等处理,都可以是在相对地图上基于相对车道线信息进行。Wherein, in the above process, when the relative map is generated above, after the lane line information is extracted, the lane line information can also be projected onto the relative map to obtain the relative lane line information of the lane line on the relative map . Subsequent processing such as generating path planning reference lines can be performed on the relative map based on relative lane line information.

在另一种方式中,在根据实时位置生成路径规划参考线时,可以采用下述方式进行:基于所述实时位置,确定与所述实时位置对应的路段标识;获取与所述路段标识对应的路段中心线;基于所述实时位置以及所述路段中心线,生成所述路径规划参考线。从而,在没有绘制有车道线的路段或者区域,或者是车道线被损毁或遮挡的不可用的区域,可以通过预先录制该区域路段的路段中心线。录制时,可控制车辆在该相关区域的路段上行驶,并在行驶的过程中,实时采集和记录车辆位置信息,并基于录制的车辆位置信息生成路段中心线。可以理解,为了能够提高录制的路段中心线的准确性,可以结合多次录制的结果生成路段中心线,并可以有一定的纠错处理,在此不再相加赘述。In another way, when generating the path planning reference line according to the real-time position, the following methods may be adopted: determining the road segment identifier corresponding to the real-time location based on the real-time location; obtaining the road segment identifier corresponding to the road segment identifier. road segment centerline; generating the route planning reference line based on the real-time position and the road segment centerline. Therefore, in a road segment or area without a lane line drawn, or an unusable area where the lane line is damaged or blocked, the road segment centerline of the road segment in the area can be pre-recorded. During recording, the vehicle can be controlled to drive on the road section in the relevant area, and during the driving process, the vehicle location information can be collected and recorded in real time, and the center line of the road segment can be generated based on the recorded vehicle location information. It can be understood that, in order to improve the accuracy of the recorded road segment centerline, the road segment centerline can be generated by combining the results of multiple recordings, and certain error correction processing can be performed, which will not be repeated here.

基于预先录制的各路段的路段中心线,在车辆驾驶时,结合车辆的实时位置以及各路段的地理位置,可以确定车辆所处的路段,在车辆所处位置的路段为记录有对应的路段中心线的路段时,则获取该路段的路段标识所对应的路段中心线,基于所述实时位置以及所述路段中心线,生成所述路径规划参考线。其中,由于路段中心线在录制时就可以将其认为是车道中心线,因此,在生成路径规划中心线时,可以是将自所述实时位置开始的一定长度的路段中心线,作为该路径参考线。在一个实施例中,在生成所述路径规划参考线之后,可以基于生成的路径规划参考线,生成两条车道线。车辆的实时位置在两条车道线之间的位置区域,且上述路段中心线为该两条车道线的车道中心线。基于路径规划参考线生成两条车道线的方式,可以采用任何可能的方式进行,本申请实施例不做具体限定。Based on the pre-recorded centerline of each road segment, when the vehicle is driving, combined with the real-time position of the vehicle and the geographic location of each road segment, the road segment where the vehicle is located can be determined. The road segment where the vehicle is located is recorded as the center of the corresponding road segment. When a road segment of the line is selected, the road segment centerline corresponding to the road segment identifier of the road segment is obtained, and the path planning reference line is generated based on the real-time position and the road segment centerline. Among them, since the centerline of the road segment can be regarded as the centerline of the lane when it is recorded, when the centerline of the route planning is generated, the centerline of the road segment with a certain length from the real-time position can be used as the path reference. Wire. In one embodiment, after the path planning reference line is generated, two lane lines may be generated based on the generated path planning reference line. The real-time position of the vehicle is in the position area between the two lane lines, and the above-mentioned center line of the road segment is the lane center line of the two lane lines. The manner of generating two lane lines based on the path planning reference line may be performed in any possible manner, which is not specifically limited in this embodiment of the present application.

其中,在上述过程中,在上述生成了相对地图的情况下,在获取路段中心线之后,还可以将该路段中心线投影至上述相对地图,得到路段中心线在相对地图上的相对路段中心线信息。后续的生成路径规划参考线、生成车道线等处理,都可以是在相对地图上基于相对路段中心线信息进行。Wherein, in the above process, when the relative map is generated above, after the centerline of the road segment is obtained, the centerline of the road segment can also be projected onto the relative map to obtain the relative road segment centerline of the centerline of the road segment on the relative map information. Subsequent processing such as generating path planning reference lines, generating lane lines, etc., may be performed on a relative map based on relative road segment centerline information.

在上述根据实时位置生成路径规划参考线之后,还可以进一步对生成的路径规划参考线进行滤波平滑处理,以去除由于传感器和定位模块等受到干扰造成的信号失真,且可以确保获得的实时参考线的平滑性。滤波平滑处理时,可以采用任何的平滑处理算法进行,例如五点三次平滑算法或者逐点滤波算法等等,本申请实施例不做具体限定。After the path planning reference line is generated according to the real-time position, the generated path planning reference line can be further filtered and smoothed, so as to remove the signal distortion caused by the interference of sensors and positioning modules, and ensure the obtained real-time reference line. smoothness. When filtering and smoothing, any smoothing algorithm may be used, such as a five-point cubic smoothing algorithm or a point-by-point filtering algorithm, which is not specifically limited in this embodiment of the present application.

步骤S103:确定所述实时位置与所述路径规划参考线之间的实时偏移值。Step S103: Determine a real-time offset value between the real-time position and the path planning reference line.

一个实施例中,在确定实时位置与路径规划参考线时,可以采用下述方式进行。In one embodiment, when determining the real-time position and the path planning reference line, the following methods may be used.

首先,确定将实时位置投影至路径规划参考线的参考点。其中,具体可以是确定将所述实时位置投影至所述路径规划参考线的投影点之后,将路径规划参考线中,与所述投影点距离最近的点确定为所述参考点。First, determine the reference point to project the real-time position onto the routing guideline. Specifically, after determining the projection point for projecting the real-time position to the path planning reference line, the point in the path planning reference line that is closest to the projection point is determined as the reference point.

其次,将实时位置与参考点之间的距离,确定为实时位置与路径规划参考线之间的实时偏移值。Secondly, the distance between the real-time position and the reference point is determined as the real-time offset value between the real-time position and the path planning reference line.

步骤S104:根据所述实时偏移值确定控制量,根据所述控制量确定方向盘转向角度。Step S104: Determine a control amount according to the real-time offset value, and determine a steering wheel steering angle according to the control amount.

其中,在根据实时偏移值确定控制量时,可以采用各种可能的方式进行。本申请实施例中的控制量,可以只包含进行横向控制的控制量(本申请实施例中称为横向控制量),也可能包含基于曲率确定的控制量(本申请实施例中称为曲率控制量)。Wherein, when the control amount is determined according to the real-time offset value, various possible ways can be adopted. The control amount in the embodiment of the present application may only include the control amount for lateral control (referred to as the lateral control amount in the embodiment of the present application), or may include the control amount determined based on the curvature (referred to as the curvature control in the embodiment of the present application). quantity).

一个实施例中,可以仅包含横向控制量。此时,在根据实时偏移值确定控制量时,可以包括:根据所述实时偏移值确定横向控制量,所述控制量包括所述横向控制量。In one embodiment, only lateral control quantities may be included. At this time, when the control amount is determined according to the real-time offset value, the method may include: determining a lateral control amount according to the real-time offset value, where the control amount includes the lateral control amount.

其中,在一个示例中,在根据实时偏移值确定横向控制量时,可以是直接将上述得到实时偏移值作为参考偏差值,然后根据所述参考偏差值确定横向控制量。在一些示例中可以是直接将参考偏差值作为横向控制量。Wherein, in an example, when determining the lateral control amount according to the real-time offset value, the above-obtained real-time offset value may be directly used as the reference deviation value, and then the lateral control amount is determined according to the reference deviation value. In some examples, the reference deviation value may be directly used as the lateral control amount.

在另一个示例中,在根据实时偏移值确定横向控制量时,可以是在获取上一次车辆控制时对应的偏移值(本申请实施例中称之为历史偏移值)之后,确定实时偏移值与该历史偏移值之间的差值(本申请实施例中称之为第一差值),即实时偏移值减去历史偏移值后得到的值,然后基于上述实时偏移值和第一差值确定参考偏差值,并根据参考偏差值确定横向控制量。在一些示例中可以是直接将参考偏差值作为横向控制量。一些实施例中,在第一差值小于或者等于0时,说明上一次的横向控制已经可以取得控制效果,因此,可以直接将上述实时偏移值作为参考偏差值;当第一差值大于0时,说明上一次的横向控制的效果不佳,因此可以将上述实时偏移值与上述差值之和,作为参考偏差值。In another example, when determining the lateral control amount according to the real-time offset value, it may be after obtaining the offset value corresponding to the previous vehicle control (referred to as the historical offset value in this embodiment of the present application), and then determining the real-time offset value. The difference between the offset value and the historical offset value (referred to as the first difference in the embodiment of this application), that is, the value obtained by subtracting the historical offset value from the real-time offset value, and then based on the above real-time offset value. The shift value and the first difference determine the reference deviation value, and determine the lateral control amount according to the reference deviation value. In some examples, the reference deviation value may be directly used as the lateral control amount. In some embodiments, when the first difference value is less than or equal to 0, it means that the last lateral control can achieve the control effect. Therefore, the above real-time offset value can be directly used as the reference offset value; when the first difference value is greater than 0 , it means that the effect of the last lateral control is not good, so the sum of the real-time offset value and the difference value can be used as the reference offset value.

在另一个示例中,在根据实时偏移值确定横向控制量时,可以是将上述实时偏移值与误差允许范围进行比较,当实时偏移值在上述误差允许范围之外时,计算实时偏移值与误差允许范围之间的差值(本申请实施例中称之为第二差值),将该第二差值作为参考偏差值,并根据参考偏差值确定横向控制量。在一些示例中可以是直接将参考偏差值作为横向控制量。一些实施例中,当上述第二差值在上述误差允许范围之内时,可以是直接将横向控制量设置为0,或者是将上一次确定的横向控制量确定为当前进行控制的横向控制量。In another example, when determining the lateral control amount according to the real-time offset value, the above-mentioned real-time offset value may be compared with the error tolerance range, and when the real-time offset value is outside the above-mentioned error tolerance range, the real-time offset value is calculated. The difference between the shift value and the allowable error range (referred to as the second difference in the embodiment of the present application) is used as the reference deviation value, and the lateral control amount is determined according to the reference deviation value. In some examples, the reference deviation value may be directly used as the lateral control amount. In some embodiments, when the second difference is within the allowable range of the error, the lateral control amount may be directly set to 0, or the lateral control amount determined last time may be determined as the lateral control amount currently being controlled. .

在另一个示例中,在根据实时偏移值确定横向控制量时,可以是在获取上一次车辆控制时对应的偏移值(本申请实施例中称之为历史偏移值)之后,确定实时偏移值与该历史偏移值之间的差值(本申请实施例中称之为第一差值),即实时偏移值减去历史偏移值后得到的值,并基于实时偏移值和第一差值确定待定参考偏差值。然后将待定参考偏差值与误差允许范围进行比较,并当待定参考偏差值在误差允许范围之外时,计算待定参考偏差值与误差允许范围的差值(本申请实施例中称为第三差值),将第三差值作为参考偏差值,并根据所述参考偏差值确定横向控制量。一些实施例中,当第一差值小于或者等于0时,将实时偏移值作为待定参考偏差值;当第一差值大于0时,将所述实时偏移值与所述差值之和,作为所述待定参考偏差值。一些实施例中,当待定参考偏差值在误差允许范围之内时,可以是直接将横向控制量设置为0,或者是将上一次确定的横向控制量确定为当前进行控制的横向控制量。In another example, when determining the lateral control amount according to the real-time offset value, it may be after obtaining the offset value corresponding to the previous vehicle control (referred to as the historical offset value in this embodiment of the present application), and then determining the real-time offset value. The difference between the offset value and the historical offset value (referred to as the first difference in the embodiment of this application), that is, the value obtained by subtracting the historical offset value from the real-time offset value, and based on the real-time offset value The value and the first difference determine a pending reference offset value. Then compare the undetermined reference deviation value with the allowable error range, and when the undetermined reference deviation value is outside the allowable error range, calculate the difference between the undetermined reference deviation value and the allowable error range (referred to as the third difference in the embodiment of this application). value), take the third difference value as a reference deviation value, and determine the lateral control amount according to the reference deviation value. In some embodiments, when the first difference value is less than or equal to 0, the real-time offset value is used as the undetermined reference offset value; when the first difference value is greater than 0, the sum of the real-time offset value and the difference value is used. , as the undetermined reference deviation value. In some embodiments, when the undetermined reference deviation value is within the allowable error range, the lateral control amount may be directly set to 0, or the lateral control amount determined last time may be determined as the lateral control amount currently being controlled.

一个实施例中,上述控制量可以包括横向控制量和曲率控制量。此时,本申请的实施例还可以包括步骤:确定将实时位置投影至所述路径规划参考线的参考点,并确定参考点在路径规划参考线上的曲率;根据曲率计算曲率控制量。其中,确定参考点的方式可以与上述确定参考点的方式相同,即确定将实时位置投影至路径规划参考线的投影点之后,将路径规划参考线中与投影点的距离最近的点确定为参考点。一些实施例中,在根据曲率计算曲率控制量时,可以是在曲率大于或者等于曲率阈值时,根据曲率阈值计算曲率控制量,在曲率小于等于曲率阈值时,直接将曲率控制量置零。即此时,直接基于横向控制量来确定控制量即可。In one embodiment, the above-mentioned control quantities may include lateral control quantities and curvature control quantities. At this time, the embodiment of the present application may further include the steps of: determining a reference point for projecting the real-time position onto the path planning reference line, and determining the curvature of the reference point on the path planning reference line; calculating a curvature control amount according to the curvature. The method of determining the reference point may be the same as the above-mentioned method of determining the reference point, that is, after determining the projection point for projecting the real-time position to the path planning reference line, the point in the path planning reference line with the closest distance to the projection point is determined as the reference point. In some embodiments, when the curvature control amount is calculated according to the curvature, when the curvature is greater than or equal to the curvature threshold, the curvature control amount is calculated according to the curvature threshold, and when the curvature is less than or equal to the curvature threshold, the curvature control amount is directly set to zero. That is, in this case, the control amount may be determined directly based on the lateral control amount.

此时,在根据实时偏移值确定控制量时,可以包括:根据实时偏移值确定横向控制量;根据所述曲率控制量和所述横向控制量确定所述控制量。At this time, when the control amount is determined according to the real-time offset value, the method may include: determining the lateral control amount according to the real-time offset value; and determining the control amount according to the curvature control amount and the lateral control amount.

一些实施例中,在根据控制量确定方向盘转向角度时,可以采用下述方式进行,具体可以包括:根据控制量确定待定方向盘转向角;获取当前车速,根据当前车速确定转向角安全范围;并基于待定方向盘转向角与转向角安全范围的比较关系,确定方向盘转向角度。In some embodiments, when determining the steering wheel steering angle according to the control amount, the following methods may be used, which may specifically include: determining the steering wheel steering angle to be determined according to the control amount; obtaining the current vehicle speed, and determining the steering angle safety range according to the current vehicle speed; The comparative relationship between the steering angle of the steering wheel to be determined and the safe range of the steering angle is used to determine the steering angle of the steering wheel.

其中,在基于待定方向盘转向角与转向角安全范围的比较关系,确定方向盘转向角度时,可以包括:当待定方向盘转向角超过转向角安全范围时,将方向盘转向角安全范围的最大值,确定为方向盘转向角度;当待定方向盘转向角在转向角安全范围之内时,将待定方向盘转向角,确定为方向盘转向角度。Wherein, when determining the steering angle of the steering wheel based on the comparison relationship between the undetermined steering wheel steering angle and the steering angle safety range, it may include: when the undetermined steering wheel steering angle exceeds the steering angle safety range, determining the maximum value of the steering wheel steering angle safety range as Steering wheel steering angle; when the pending steering wheel steering angle is within the steering angle safety range, the pending steering wheel steering angle is determined as the steering wheel steering angle.

在一些实施例中,在确定了路径规划参考线和实时偏移值之后,还可以根据实时偏移值和路径规划参考线生成车辆行驶规划路径。其中,在一些实施例中,车辆行驶规划路径可以是路径规划参考线上,自实时位置开始的预定长度的曲线线段。另一方面,在行驶过程中,还可以根据上述控制量调整生成的车辆行驶规划路径。In some embodiments, after the path planning reference line and the real-time offset value are determined, the vehicle travel planning path may also be generated according to the real-time offset value and the path planning reference line. Wherein, in some embodiments, the vehicle travel planning path may be a curve line segment of a predetermined length starting from the real-time position on the path planning reference line. On the other hand, during the driving process, the generated planned driving path of the vehicle may also be adjusted according to the above-mentioned control amount.

在一些实施例中,还可以包括:获取周围环境信息,并从所述周围环境信息中提取障碍物信息,其中,获取的障碍物信息可以包括:障碍物位置、障碍物尺寸以及障碍物运动速度;并根据障碍物信息调整上述车辆行驶规划路径。In some embodiments, it may further include: acquiring surrounding environment information, and extracting obstacle information from the surrounding environment information, where the acquired obstacle information may include: obstacle position, obstacle size, and obstacle moving speed ; and adjust the above-mentioned vehicle driving planning path according to the obstacle information.

其中,在根据障碍物信息调整所述车辆行驶规划路径时,当障碍物在实时位置所处的车道的车道边缘时,在该车道内调整车辆行驶规划路径的位置,以确保车辆与所述障碍物的安全距离;当障碍物位于车辆行驶规划路径的前方、且障碍物与车辆的距离小于距离阈值时,缩短车辆行驶规划路径的长度至第二长度,该第二长度在小于上述预定长度,该第二长度可以是实时位置到障碍物的距离的长度。Wherein, when adjusting the planned driving path of the vehicle according to the obstacle information, when the obstacle is at the edge of the lane of the lane where the real-time position is located, the position of the planned driving path of the vehicle is adjusted in the lane to ensure that the vehicle is connected to the obstacle. When the obstacle is located in front of the vehicle's planned path, and the distance between the obstacle and the vehicle is less than the distance threshold, shorten the length of the vehicle's planned path to a second length, where the second length is less than the above-mentioned predetermined length, The second length may be the length of the distance from the real-time location to the obstacle.

可以理解,在上述建立了相对地图的情况下,可以是将障碍物信息转换为在相对地图中的障碍物坐标信息之后,执行上述后续的处理过程。It can be understood that, in the case of establishing the relative map above, the subsequent processing procedure described above may be performed after the obstacle information is converted into the obstacle coordinate information in the relative map.

基于如上所述的实施例,以下结合一个具体的应用示例进行举例说明。在一些应用实施例中,本申请实施例的方案可应用于无人驾驶车辆的车辆控制过程。Based on the above-mentioned embodiments, the following description is given in conjunction with a specific application example. In some application embodiments, the solutions of the embodiments of the present application may be applied to a vehicle control process of an unmanned vehicle.

本申请实施例的方案中,在对车辆进行控制的过程中,以车辆实时的车身位置为基础建立坐标系并实时生成相对地图,在实时生成相对地图时,可以基于车辆当前位置和车头方向生成,其中,车辆的后轴中心为坐标系原点,车辆的车头正对方向为第一坐标轴(如x轴)正方向,车头正对方向逆时针/顺时针旋转90度后的方向,例如车头正对方向的左侧,为第二坐标轴(如y轴)正方向。In the solution of the embodiment of the present application, in the process of controlling the vehicle, a coordinate system is established based on the real-time body position of the vehicle and a relative map is generated in real time. When the relative map is generated in real time, it can be generated based on the current position of the vehicle and the head direction , among which, the center of the rear axle of the vehicle is the origin of the coordinate system, the front-facing direction of the vehicle is the positive direction of the first coordinate axis (such as the x-axis), and the front-facing direction is the direction after rotating 90 degrees counterclockwise/clockwise, such as the front of the vehicle The left side of the opposite direction is the positive direction of the second coordinate axis (such as the y-axis).

本申请实施例方案在执行过程中,车辆自身的感知模块实时检测并提供车辆的周围环境信息,感知模块可以包括摄像头、激光雷达等,可以通过定位模块获得车辆的实时位置坐标、通过雷达检测获得的障碍物信息、通过摄像装置拍摄获得的车道线信息等等。另一方面,车辆在行驶过程中,实时生成路径规划参考线(也可以称之为实时参考线),该路径规划参考线一方面可以作为规划行驶路径的参考,一方面也作为对是否需要进行横向控制的参考。生成的路径规划参考线,除了包含路径规划参考线的坐标(x,y)的信息,还可以包括路径规划参考线的曲率,在基于车身位置生成了相对地图的情况下,该曲率可以指路径规划参考线相对于车身位置坐标系的曲率。During the implementation of the solutions of the embodiments of the present application, the perception module of the vehicle itself detects and provides information about the surrounding environment of the vehicle in real time. The perception module may include cameras, lidars, etc. The obstacle information, lane line information obtained by the camera device, etc. On the other hand, during the driving process of the vehicle, a path planning reference line (also called a real-time reference line) is generated in real time. Reference for lateral controls. The generated path planning reference line, in addition to the information of the coordinates (x, y) of the path planning reference line, can also include the curvature of the path planning reference line. In the case where a relative map is generated based on the vehicle body position, the curvature can refer to the path The curvature of the planning reference line relative to the body position coordinate system.

在实时生成实时参考线时,在一些实施例中,可以在获得车道线信息后,结合车道线信息生成实时参考线,实时参考线位于车道线的中间。其中,可以从摄像装置拍摄获得的图像中提取出车道的车道线信息。摄像装置需采集到据车辆位置不小于预定长度的车道线信息。在据此生成实时参考线时,可以是在确定将车辆投影到左右车道线上的两个车道线投影点之后,根据两个车道线投影点的坐标值计算出位于车道线中间的数据点,并根据该数据点依次生成一条不小于预定长度的实时参考线。预定长度的具体数值可以结合技术需要确定,例如可以设定为200米。When generating the real-time reference line in real time, in some embodiments, after obtaining the lane line information, a real-time reference line may be generated in combination with the lane line information, and the real-time reference line is located in the middle of the lane line. The lane line information of the lane can be extracted from the image captured by the camera device. The camera device needs to collect lane line information that is not less than a predetermined length according to the vehicle position. When generating the real-time reference line based on this, after determining the two lane line projection points for projecting the vehicle on the left and right lane lines, the data point located in the middle of the lane line is calculated according to the coordinate values of the two lane line projection points, And a real-time reference line not less than a predetermined length is sequentially generated according to the data point. The specific value of the predetermined length can be determined in combination with technical requirements, for example, it can be set to 200 meters.

在一些实施例中,也可以是基于车辆的实时位置,从地图数据中提取出该实时位置所处的车道的车道线信息,实时参考线位于车道线的中间。例如,结合车辆的出发地和目的地之间的行驶路径,生成实时参考线。基于出发地和目的地之间的形式路径,结合车辆的实时位置,基于实时位置与目的地之间的行驶路径,选择一条行驶路径,并根据选择的行驶路径进行分段,生成长度不小于预定长度的实时参考线。In some embodiments, the lane line information of the lane where the real-time position is located may be extracted from the map data based on the real-time position of the vehicle, and the real-time reference line is located in the middle of the lane line. For example, a real-time reference line is generated by combining the travel path between the origin and destination of the vehicle. Based on the formal path between the departure point and the destination, combined with the real-time position of the vehicle, based on the driving path between the real-time position and the destination, select a driving path, and segment according to the selected driving path, and the generated length is not less than predetermined Live guide for length.

在生成相对地图的情况下,可以结合上述相对地图生成实时的在相对地图上的实时参考线和在相对地图上的车道线,检测获得的障碍物信息也可以转换为在相对地图上的相对坐标位置信息,并在相对地图上进行显示。In the case of generating a relative map, a real-time real-time reference line on the relative map and lane lines on the relative map can be generated in combination with the above-mentioned relative map, and the obstacle information obtained by detection can also be converted into relative coordinates on the relative map. location information and display it on a relative map.

在一些实施例中,也可以是线下制作路径规划参考线,并将与车辆的实时位置相匹配的路径规划参考线作为上述生成的路径规划参考线。从而,在一些特定的场景下,例如矿区、码头等,在这些场景下一般不存在明显的车道线,可由车辆预先行驶一次或多次来录制参考线。具体录制时,可在车辆行驶的过程中,实时采集车辆的定位模块输出的车辆位置信息,并根据采集的车辆位置信息生成路径规划参考线,且该路径规划参考线可与路段标识或者其他用以标识区域的标识相对应。在将线下录制的参考线作为实时参考线时,可以进一步实时参考线两侧等距离生成两条车道线,在此情况下,生成的两条车道线与车辆实际行驶的车道可能存在一定差异,或者车辆实际行驶的环境并没有绘制有车道线,从而可较佳地应用于车道线不明显或者未绘制有车道线的相关区域。In some embodiments, the path planning reference line may also be produced offline, and the path planning reference line that matches the real-time position of the vehicle is used as the path planning reference line generated above. Therefore, in some specific scenarios, such as mining areas, docks, etc., there are generally no obvious lane lines in these scenarios, and the reference line can be recorded by the vehicle driving one or more times in advance. During the specific recording, the vehicle position information output by the vehicle's positioning module can be collected in real time while the vehicle is driving, and a path planning reference line can be generated according to the collected vehicle position information. Corresponding to the identification of the identification area. When the offline recorded reference line is used as the real-time reference line, two lane lines can be generated equidistantly on both sides of the real-time reference line. In this case, there may be some differences between the generated two lane lines and the actual driving lane of the vehicle. , or the actual driving environment of the vehicle does not have lane lines drawn, so it can be preferably applied to the relevant areas where the lane lines are not obvious or where no lane lines are drawn.

在生成实时参考线之后,可以进一步对生成的实时参考线进行滤波处理,以去除由于传感器和定位模块等受到干扰造成的信号失真,且可以确保获得的实时参考线的平滑性。具体的滤波处理的方式可以采用任何可能的方式进行,例如五点三次平滑算法或者逐点滤波算法。After the real-time reference line is generated, the generated real-time reference line can be further filtered to remove signal distortion caused by interference of sensors and positioning modules, and the smoothness of the obtained real-time reference line can be ensured. The specific filtering process can be performed in any possible manner, such as a five-point cubic smoothing algorithm or a point-by-point filtering algorithm.

在车辆行驶过程中,基于上述生成的路径规划参考线,生成前方一定距离的车辆行驶规划路径,该车辆行驶规划路径,可以是自车辆的实时位置开始的车辆前方的预定长度的曲线线段。该预定长度可以与上述路径规划参考线的长度相同,例如均为200米。一般情况下,车辆行驶过程中处于车道保持的理想状态时,该车辆行驶规划路径位于路径规划参考线上,如图2所示。此时,车辆行驶在车道中间,是车辆行驶过程中进行车道保持的理想状态,车辆与实时参考线之间的实时偏移值为0,无需调整车辆的横向位置。During vehicle driving, based on the generated path planning reference line, a vehicle driving planning path ahead of a certain distance is generated. The vehicle driving planning path may be a curved line segment of a predetermined length in front of the vehicle starting from the real-time position of the vehicle. The predetermined length may be the same as the length of the above-mentioned path planning reference line, for example, both are 200 meters. In general, when the vehicle is in an ideal state of lane keeping during driving, the planning path of the vehicle is located on the path planning reference line, as shown in Figure 2. At this time, the vehicle is driving in the middle of the lane, which is an ideal state for lane keeping during the vehicle driving process. The real-time offset value between the vehicle and the real-time reference line is 0, and there is no need to adjust the lateral position of the vehicle.

另一方面,当车辆的感知模块提供的周围环境信息包含车道上的障碍物信息时,如行驶的车辆,需根据提供的障碍物的位置、大小、速度等调整车辆行驶规划路径。例如,当障碍物在所处车道的车道边缘时,在车道内调整车辆行驶规划路径的位置,以确保车辆与障碍物的安全距离。当障碍物位于车辆行驶规划路径的前方、且障碍物与车辆的距离小于距离阈值(例如上述预定长度)时,缩短车辆行驶规划路径的长度至第二长度,该第二长度可以是为车辆的实时位置到障碍物的距离的长度。On the other hand, when the surrounding environment information provided by the perception module of the vehicle includes information on obstacles on the lane, such as a moving vehicle, the planned path of the vehicle needs to be adjusted according to the position, size, and speed of the provided obstacles. For example, when the obstacle is on the edge of the lane, adjust the position of the vehicle's planned path in the lane to ensure a safe distance between the vehicle and the obstacle. When the obstacle is located in front of the planned route of the vehicle, and the distance between the obstacle and the vehicle is less than the distance threshold (for example, the above-mentioned predetermined length), the length of the planned route of the vehicle is shortened to a second length, and the second length may be for the vehicle. The length of the distance from the real-time position to the obstacle.

另一个实施例中车辆在车道内行驶的状态的示意图如图3所示,此时,车辆向图示中的左边存在一定的偏移值,此时,需要基于该偏移值进行控制,以使车辆保持在车道内行驶。In another embodiment, a schematic diagram of the state of the vehicle running in the lane is shown in Figure 3. At this time, the vehicle has a certain offset value to the left in the figure. At this time, it is necessary to control based on the offset value to avoid Keep the vehicle in the lane.

在车辆控制过程中,在获得车辆的实时位置之后,在生成了相对地图的情况下,将该实时位置转换到相对地图上,得到车辆相对位置,再将车辆相对位置投影到上述实时参考线,并据此计算出车辆与实时参考线之间的实时偏移值,并基于该实时偏移值计算出横向控制量调整车辆的横向位置,实现汽车车道保持功能,在车辆处于大角度转弯状态时,可同时结合曲率计算出曲率控制量进行控制,确保车辆时刻保持在参考线所在车道内,实现车道保持功能。In the process of vehicle control, after the real-time position of the vehicle is obtained, in the case of generating a relative map, the real-time position is converted to the relative map to obtain the relative position of the vehicle, and then the relative position of the vehicle is projected to the above-mentioned real-time reference line, According to this, the real-time offset value between the vehicle and the real-time reference line is calculated, and based on the real-time offset value, the lateral control amount is calculated to adjust the lateral position of the vehicle, and the vehicle lane keeping function is realized. , the curvature control amount can be calculated and controlled in combination with the curvature at the same time to ensure that the vehicle remains in the lane where the reference line is located at all times, and the lane keeping function is realized.

参考图4所示,一个实施例中确定横向控制量时,首先将车辆实时位置投影到上述实时参考线,获得距离投影点最近的参考线数据点,并计算出实时位置与参考线数据点之间的差值,并将该差值作为车辆与实时参考线之间的实时偏移值。然后根据实时偏移值的大小,采用闭环PID(比例proportion、积分integration、微分differentiation)控制方式或者LQR(linear quadratic regulator,线性二次型调节器)最优控制器算法计算出反馈控制量(本申请实施例中称为横向控制量)。获得的反馈控制量可主要用于车辆直线或者有较小弯道的曲线行驶时的车道保持控制。Referring to FIG. 4 , when determining the lateral control amount in one embodiment, the real-time position of the vehicle is first projected onto the above-mentioned real-time reference line, the reference line data point closest to the projection point is obtained, and the difference between the real-time position and the reference line data point is calculated. The difference between the vehicle and the real-time reference line is used as the real-time offset value between the vehicle and the real-time reference line. Then according to the size of the real-time offset value, the closed-loop PID (proportional proportion, integral integration, differential differentiation) control method or LQR (linear quadratic regulator, linear quadratic regulator) optimal controller algorithm is used to calculate the feedback control amount (this In the application examples, it is called the lateral control amount). The obtained feedback control amount can be mainly used for lane keeping control when the vehicle is traveling in a straight line or a curve with a small curve.

参考图4所示,首先,考虑到定位模块可能存在定位误差,选取一定的值作为偏离误差允许范围。偏离误差允许范围的具体数值基于实际技术应用中对误差的接受程度进行设定。Referring to FIG. 4 , first, considering that there may be a positioning error in the positioning module, a certain value is selected as the allowable range of deviation error. The specific value that deviates from the allowable range of error is set based on the acceptance of the error in practical technical applications.

考虑到车辆高速行驶时造成的偏移值会超过实际控制执行时的调整值,因此可比较本次获得的实时偏移值减去上一次(或者上一个控制周期)车辆控制时对应的历史偏移值的差值(本申请实施例中记为第一差值),若第一差值小于或者等于0,说明调整起到效果,可以继续以当前的实时偏移值作为输入量。若第一差值大于0,说明调整未起到效果,上一次的调整量无法抵消汽车自身造成的偏移量,因此需在实时偏移值的基础上增加上述第一差值。本申请实施例中,为了描述方便,将上述第一差值小于或者等于0的实时偏移值,第一差值大于0时实时偏移值与第一差值的和值,称之为待定参考偏差值。Considering that the offset value caused by the high-speed driving of the vehicle will exceed the adjustment value when the actual control is executed, it is possible to compare the real-time offset value obtained this time minus the historical offset value corresponding to the previous (or previous control cycle) vehicle control. The difference between the offset values (referred to as the first difference in the embodiment of the present application), if the first difference is less than or equal to 0, it means that the adjustment is effective, and the current real-time offset value can continue to be used as the input. If the first difference is greater than 0, it means that the adjustment has no effect, and the last adjustment cannot offset the offset caused by the car itself, so the first difference needs to be added to the real-time offset. In the embodiment of the present application, for the convenience of description, the real-time offset value when the first difference value is less than or equal to 0, and the sum of the real-time offset value and the first difference value when the first difference value is greater than 0 are referred to as undetermined Reference deviation value.

然后将待定参考偏差值与偏离误差允许范围进行比较。若待定参考偏差值超过偏离误差允许范围时,则将待定参考偏差值与偏离误差允许范围的差值(本申请实施例记为第三差值)作为参考偏差值,据此确定横向控制量。若待定参考偏差值在偏离误差范围内,则不进行调整,如将参考偏差值设置为0,或者保持上一次的横向控制量不变,以避免PID调节时由于调节过量,导致汽车在参考线附近左右震荡。The pending reference deviation value is then compared to the deviation error tolerance. If the undetermined reference deviation value exceeds the allowable range of deviation error, the difference between the undetermined reference deviation value and the allowable range of deviation error (referred to as the third difference in the embodiment of this application) is used as the reference deviation value, and the lateral control amount is determined accordingly. If the undetermined reference deviation value is within the deviation error range, it will not be adjusted. For example, set the reference deviation value to 0, or keep the last lateral control amount unchanged to avoid excessive adjustment during PID adjustment. Vibration around.

此外,考虑车辆高速行驶下的横向调整安全性,需设置容许控制的最大调整量,若参考偏差值大于该最大调整量,则将该最大调整量作为参考偏差值,据此确定横向控制量,以避免当车辆偏离实时参考线较远时输出的调整量过大影响行驶安全。In addition, considering the safety of lateral adjustment when the vehicle is running at high speed, it is necessary to set the maximum adjustment amount of allowable control. If the reference deviation value is greater than the maximum adjustment amount, the maximum adjustment amount is used as the reference deviation value, and the lateral control amount is determined accordingly. In order to avoid excessive adjustment of the output when the vehicle deviates far from the real-time reference line, it will affect the driving safety.

另一反面,还同时根据车辆投影到实时参考线的参考线数据点的曲率计算出车道保持所需的前馈控制量(本申请实施例中称为曲率控制量)。曲率控制量的计算方法可以采用PID前馈控制算法等方式。曲率控制量主要用于车辆在调头或者转弯时,结合横向控制量,确保车辆在转弯或调头时能保持在车道内行驶。在确定曲率控制量时,可以在参考线数据点的曲率超过设定曲率阈值时,则可以判定车辆处于弯道或者在调头,根据参考线数据点的曲率采用PID前馈控制算法计算控制量,具体的计算控制量的方式控制方式可以不做具体限定。在参考线数据点的曲率小于设定曲率阈值时,则可直接将曲率控制量设定为0。On the other hand, the feedforward control quantity required for lane keeping (referred to as curvature control quantity in the embodiment of the present application) is also calculated according to the curvature of the reference line data points projected by the vehicle onto the real-time reference line. The calculation method of the curvature control quantity can adopt the PID feedforward control algorithm and so on. The curvature control amount is mainly used when the vehicle is making a U-turn or turning, combined with the lateral control amount, to ensure that the vehicle can keep driving in the lane when turning or turning. When determining the curvature control amount, when the curvature of the reference line data point exceeds the set curvature threshold, it can be determined that the vehicle is in a curve or turning around, and the PID feedforward control algorithm is used to calculate the control amount according to the curvature of the reference line data point. The specific method of calculating the control amount and the control method may not be specifically limited. When the curvature of the reference line data point is less than the set curvature threshold, the curvature control amount can be directly set to 0.

参考图5所示,在获得横向控制量和曲率控制量之后,即可结合横向控制量和曲率控制量综合确定出最终的控制量。在一些实施例中,最终的控制量可以是横向控制量和曲率控制量之和。在确定控制量之后,还可以基于控制量进一步调整上述车辆行驶规划路径。通过结合横向控制量和曲率控制量,一方面确保车辆的横向控制,同时确保了车辆在转弯和调头时的车道保持控制。Referring to FIG. 5 , after the lateral control amount and the curvature control amount are obtained, the final control amount can be comprehensively determined in combination with the lateral control amount and the curvature control amount. In some embodiments, the final control amount may be the sum of the lateral control amount and the curvature control amount. After the control amount is determined, the above-mentioned vehicle travel planning path may be further adjusted based on the control amount. By combining the lateral control amount and the curvature control amount, the lateral control of the vehicle is ensured on the one hand, and the lane keeping control of the vehicle during turning and U-turn is ensured at the same time.

在确定控制量后,即可基于控制量确定方向盘转向角度,并将该方向盘转向角度输出至方向盘转向执行机构,驱使方向盘转动实现车辆的横向移动,以完成控制执行的过程。After the control amount is determined, the steering wheel steering angle can be determined based on the control amount, and the steering wheel steering angle is output to the steering wheel steering actuator to drive the steering wheel to rotate to realize the lateral movement of the vehicle to complete the control execution process.

一些实施例中,可以直接根据控制量计算出汽车转向机构的方向盘转向角度,并将该方向盘转向角度转换为可执行电信号,以控制方向盘角度的转动。在一些实施例中,参考图6所示,为了确保安全,在确定最终的方向盘转向角度时,需充分考虑汽车速度,在获得当前车速后,基于当前车速确定转向角安全范围,即车速过快时需限制方向盘转向角度在一定范围内。若上述根据控制量计算出的方向盘转向角度在该转向角安全范围内,则可以直接将该方向盘转向角度输出,以转换为可执行电信号。若,上述根据控制量计算出的方向盘转向角度在该转向角安全范围内,则取转向角安全范围的最值(最大值或者最小值,一般可以取最大值)输出,作为最终输出的方向盘转向角度,以转换为可执行电信号,以避免因可执行电信号过大导致方向盘转向角度过大产生安全问题。In some embodiments, the steering wheel steering angle of the vehicle steering mechanism may be directly calculated according to the control amount, and the steering wheel steering angle may be converted into an executable electrical signal to control the rotation of the steering wheel angle. In some embodiments, referring to FIG. 6 , in order to ensure safety, the vehicle speed needs to be fully considered when determining the final steering wheel steering angle. After obtaining the current vehicle speed, the steering angle safety range is determined based on the current vehicle speed, that is, the vehicle speed is too fast. It is necessary to limit the steering angle of the steering wheel to a certain range. If the steering angle of the steering wheel calculated according to the control amount is within the safe range of the steering angle, the steering angle of the steering wheel can be directly output to convert it into an executable electrical signal. If the steering angle of the steering wheel calculated according to the control amount is within the steering angle safety range, then take the maximum value (maximum or minimum value, generally the maximum value) of the steering angle safety range and output, as the final output steering wheel steering The angle is converted into an executable electrical signal, so as to avoid the safety problem caused by the excessively large steering angle of the steering wheel caused by the excessively large executable electrical signal.

参考图7所示,一个实施例中提供的车辆控制装置包括:位置获取模块701、参考线规划模块702、偏移值确定模块703以及控制量确定模块704。Referring to FIG. 7 , a vehicle control apparatus provided in one embodiment includes: a position acquisition module 701 , a reference line planning module 702 , an offset value determination module 703 and a control amount determination module 704 .

位置获取模块701,用于获取车辆的实时位置。The location acquisition module 701 is used to acquire the real-time location of the vehicle.

一个实施例中,位置获取模块701可以采用任何可能的方式来获得车辆的实时位置,例如GPS定位、GPS定位结合卫星定位等等。In one embodiment, the position obtaining module 701 can obtain the real-time position of the vehicle in any possible manner, such as GPS positioning, GPS positioning combined with satellite positioning, and the like.

一个实施例中,该车辆控制装置还可以包括:相对地图生成模块,用于实时位置以及所述车辆的车头方向建立车身坐标系,并基于所述车身坐标系生成相对地图。其中,在建立车身坐标系时,可以以车辆的后轴中心为坐标系原点,车头正对方向为第一坐标轴正方向,车头正对方向逆时针/顺时针旋转90度后的方向为第二坐标轴正方向。在生成相对地图后,将上述实时位置投影至该相对地图上,从而获得车辆在该相对地图上的车辆相对位置。在生成相对地图之后,后续所有的处理,均可以转换到该相对地图之后,基于该相对地图进行,后续实施例中不再详细说明。In one embodiment, the vehicle control device may further include: a relative map generation module for establishing a body coordinate system based on the real-time position and the head direction of the vehicle, and generating a relative map based on the vehicle body coordinate system. Among them, when establishing the body coordinate system, the center of the rear axle of the vehicle can be used as the origin of the coordinate system, the front-facing direction of the vehicle is the positive direction of the first coordinate axis, and the direction of the front-facing direction after rotating 90 degrees counterclockwise/clockwise is the first coordinate system. The positive direction of the two coordinate axes. After the relative map is generated, the above-mentioned real-time position is projected onto the relative map, so as to obtain the relative position of the vehicle on the relative map. After the relative map is generated, all subsequent processing can be converted to the relative map and performed based on the relative map, which will not be described in detail in subsequent embodiments.

参考线规划模块702,用于根据所述实时位置生成路径规划参考线。A reference line planning module 702, configured to generate a path planning reference line according to the real-time position.

一个实施例中,参考线规划模块702,从周围环境信息中提取出车道线信息;然后根据实时位置和所述车道线信息,生成路径规划参考线。该周围环境信息可以包括通过车载摄像装置拍摄获得的信息。In one embodiment, the reference line planning module 702 extracts lane line information from surrounding environment information; and then generates a path planning reference line according to the real-time position and the lane line information. The surrounding environment information may include information obtained by photographing by a vehicle-mounted camera device.

一个实施例中,参考线规划模块702,根据实时位置,从地图数据中获取实时位置所在车道的车道线信息;根据实时位置和车道线信息,生成路径规划参考线。In one embodiment, the reference line planning module 702 obtains the lane line information of the lane where the real-time position is located from the map data according to the real-time position; and generates a path planning reference line according to the real-time position and the lane line information.

一个实施例中,参考线规划模块702,根据基于车辆的出发地和目的地确定的行驶路径,确定车道线,并结合实时位置和确定的车道线生成路径规划参考线。In one embodiment, the reference line planning module 702 determines the lane line according to the travel path determined based on the departure and destination of the vehicle, and generates a path planning reference line in combination with the real-time position and the determined lane line.

一个实施例中,参考线规划模块702,基于所述实时位置,确定与所述实时位置对应的路段标识;获取与所述路段标识对应的路段中心线;基于所述实时位置以及所述路段中心线,生成路径规划参考线。In one embodiment, the reference line planning module 702 determines, based on the real-time position, a road segment identifier corresponding to the real-time location; obtains a road segment centerline corresponding to the road segment identifier; based on the real-time location and the road segment center line to generate a path planning reference line.

其中,参考线规划模块702生成路径规划参考线之后,还可以进一步对生成的路径规划参考线进行滤波平滑处理,以去除由于传感器和定位模块等受到干扰造成的信号失真,且可以确保获得的实时参考线的平滑性。滤波平滑处理时,可以采用任何的平滑处理算法进行,例如五点三次平滑算法或者逐点滤波算法等等,本申请实施例不做具体限定。Wherein, after the reference line planning module 702 generates the path planning reference line, the generated path planning reference line can be further filtered and smoothed, so as to remove the signal distortion caused by the interference of the sensor and the positioning module, etc., and can ensure the obtained real-time The smoothness of the reference line. When filtering and smoothing, any smoothing algorithm may be used, such as a five-point cubic smoothing algorithm or a point-by-point filtering algorithm, which is not specifically limited in this embodiment of the present application.

偏移值确定模块703,用于确定所述实时位置与所述路径规划参考线之间的实时偏移值。An offset value determination module 703, configured to determine a real-time offset value between the real-time position and the path planning reference line.

一个实施例中,偏移值确定模块703,确定将实时位置投影至路径规划参考线的参考点之后,将实时位置与参考点之间的距离,确定为实时位置与路径规划参考线之间的实时偏移值。其中,具体可以是确定将实时位置投影至所述路径规划参考线的投影点之后,将路径规划参考线中,与投影点距离最近的点确定为所述参考点。In one embodiment, the offset value determination module 703 determines the distance between the real-time position and the reference point as the distance between the real-time position and the path planning reference line after determining the reference point for projecting the real-time position to the path planning reference line. real-time offset value. Specifically, after the projection point for projecting the real-time position to the path planning reference line is determined, the point in the path planning reference line that is closest to the projection point is determined as the reference point.

控制量确定模块704,用于根据所述实时偏移值确定控制量,根据所述控制量确定方向盘转向角度。A control amount determination module 704, configured to determine a control amount according to the real-time offset value, and determine a steering wheel steering angle according to the control amount.

一个实施例中,控制量确定模块704,根据实时偏移值确定横向控制量,控制量包括所述横向控制量。In one embodiment, the control amount determination module 704 determines the lateral control amount according to the real-time offset value, and the control amount includes the lateral control amount.

在一些实施例中,控制量确定模块704可以直接将实时偏移值作为横向控制量。In some embodiments, the control amount determination module 704 may directly use the real-time offset value as the lateral control amount.

在一些实施例中,控制量确定模块704在获取上一次车辆控制时对应的偏移值(本申请实施例中称之为历史偏移值)之后,确定实时偏移值与该历史偏移值之间的差值(本申请实施例中称之为第一差值)基于上述实时偏移值和第一差值确定参考偏差值,并根据参考偏差值确定横向控制量。在一些示例中可以是直接将参考偏差值作为横向控制量。一些实施例中,在第一差值小于或者等于0时,说明上一次的横向控制已经可以取得控制效果,因此,可以直接将上述实时偏移值作为参考偏差值;当第一差值大于0时,说明上一次的横向控制的效果不佳,因此可以将上述实时偏移值与上述差值之和,作为参考偏差值。In some embodiments, the control amount determination module 704 determines the real-time offset value and the historical offset value after acquiring the offset value corresponding to the previous vehicle control (referred to as the historical offset value in this embodiment of the present application). The difference (referred to as the first difference in this embodiment of the present application) determines a reference deviation value based on the real-time offset value and the first difference, and determines a lateral control amount according to the reference deviation value. In some examples, the reference deviation value may be directly used as the lateral control amount. In some embodiments, when the first difference value is less than or equal to 0, it means that the last lateral control can achieve the control effect. Therefore, the above real-time offset value can be directly used as the reference offset value; when the first difference value is greater than 0 , it means that the effect of the last lateral control is not good, so the sum of the real-time offset value and the difference value can be used as the reference offset value.

在一些实施例中,控制量确定模块704将上述实时偏移值与误差允许范围进行比较,当实时偏移值在上述误差允许范围之外时,计算实时偏移值与误差允许范围之间的差值(本申请实施例中称之为第二差值),将该第二差值作为参考偏差值,并根据参考偏差值确定横向控制量。In some embodiments, the control amount determination module 704 compares the real-time offset value with the error tolerance range, and when the real-time offset value is outside the error tolerance range, calculates the difference between the real-time offset value and the error tolerance range. The difference value (referred to as the second difference value in the embodiment of the present application), the second difference value is used as the reference deviation value, and the lateral control amount is determined according to the reference deviation value.

在一些实施例中,控制量确定模块704在获取上一次车辆控制时对应的偏移值(本申请实施例中称之为历史偏移值)之后,确定实时偏移值与该历史偏移值之间的差值(本申请实施例中称之为第一差值),即实时偏移值减去历史偏移值后得到的值,并基于实时偏移值和第一差值确定待定参考偏差值。然后将待定参考偏差值与误差允许范围进行比较,并当待定参考偏差值在误差允许范围之外时,计算待定参考偏差值与误差允许范围的差值(本申请实施例中称为第三差值),将第三差值作为参考偏差值,并根据所述参考偏差值确定横向控制量。In some embodiments, the control amount determination module 704 determines the real-time offset value and the historical offset value after acquiring the offset value corresponding to the previous vehicle control (referred to as the historical offset value in this embodiment of the present application). The difference (referred to as the first difference in this embodiment of the present application), that is, the value obtained by subtracting the historical offset from the real-time offset value, and the pending reference is determined based on the real-time offset value and the first difference. Deviation. Then compare the undetermined reference deviation value with the allowable error range, and when the undetermined reference deviation value is outside the allowable error range, calculate the difference between the undetermined reference deviation value and the allowable error range (referred to as the third difference in the embodiment of this application). value), take the third difference value as a reference deviation value, and determine the lateral control amount according to the reference deviation value.

一些实施例中,上述控制量可以包括横向控制量和曲率控制量。In some embodiments, the above-mentioned control quantities may include lateral control quantities and curvature control quantities.

此时,控制量确定模块704还确定将实时位置投影至所述路径规划参考线的参考点,并确定参考点在路径规划参考线上的曲率;根据曲率计算曲率控制量,并根据所述曲率控制量和所述横向控制量确定所述控制量。At this time, the control amount determination module 704 also determines the reference point for projecting the real-time position to the path planning reference line, and determines the curvature of the reference point on the path planning reference line; The control amount and the lateral control amount determine the control amount.

一些实施例中,控制量确定模块704在曲率大于或者等于曲率阈值时,根据曲率阈值计算曲率控制量,在曲率小于等于曲率阈值时,直接将曲率控制量置零。In some embodiments, the control amount determination module 704 calculates the curvature control amount according to the curvature threshold when the curvature is greater than or equal to the curvature threshold, and directly sets the curvature control amount to zero when the curvature is less than or equal to the curvature threshold.

一些实施例中,控制量确定模块704根据所述控制量确定方向盘转向角度时,根据控制量确定待定方向盘转向角;获取当前车速,根据当前车速确定转向角安全范围;并基于待定方向盘转向角与转向角安全范围的比较关系,确定方向盘转向角度。其中,控制量确定模块704在待定方向盘转向角超过转向角安全范围时,将方向盘转向角安全范围的最大值确定为方向盘转向角度,在待定方向盘转向角在转向角安全范围之内时,将待定方向盘转向角确定为方向盘转向角度。In some embodiments, when the control amount determination module 704 determines the steering wheel steering angle according to the control amount, the pending steering wheel steering angle is determined according to the control amount; the current vehicle speed is obtained, and the steering angle safety range is determined according to the current vehicle speed; The comparative relationship of the steering angle safety range determines the steering angle of the steering wheel. The control amount determination module 704 determines the maximum value of the steering wheel steering angle safety range as the steering wheel steering angle when the undetermined steering wheel steering angle exceeds the steering angle safety range, and determines the undetermined steering wheel steering angle when the undetermined steering wheel steering angle is within the steering angle safety range. The steering wheel steering angle is determined as the steering wheel steering angle.

在一些实施例中,上述装置还包括路径规划模块,用于根据实时偏移值和路径规划参考线生成车辆行驶规划路径。其中,在一些实施例中,车辆行驶规划路径可以是路径规划参考线上,自实时位置开始的预定长度的曲线线段。另一方面,在行驶过程中,还可以根据上述控制量调整生成的车辆行驶规划路径。In some embodiments, the above-mentioned apparatus further includes a path planning module, configured to generate a planned travel path of the vehicle according to the real-time offset value and the path planning reference line. Wherein, in some embodiments, the vehicle travel planning path may be a curve line segment of a predetermined length starting from the real-time position on the path planning reference line. On the other hand, during the driving process, the generated planned driving path of the vehicle may also be adjusted according to the above-mentioned control amount.

在一些实施例中,路径规划模块,还从感知模块感知的周围环境信息中提取障碍物信息,获取的障碍物信息可以包括:障碍物位置、障碍物尺寸以及障碍物运动速度;并根据障碍物信息调整上述车辆行驶规划路径。In some embodiments, the path planning module further extracts obstacle information from the surrounding environment information sensed by the sensing module, and the obtained obstacle information may include: obstacle position, obstacle size, and obstacle movement speed; The information adjusts the above-mentioned vehicle travel planning path.

其中,在根据障碍物信息调整所述车辆行驶规划路径时,当障碍物在实时位置所处的车道的车道边缘时,在该车道内调整车辆行驶规划路径的位置,以确保车辆与所述障碍物的安全距离;当障碍物位于车辆行驶规划路径的前方、且障碍物与车辆的距离小于距离阈值时,缩短车辆行驶规划路径的长度至第二长度,该第二长度在小于上述预定长度,该第二长度可以是实时位置到障碍物的距离的长度。Wherein, when adjusting the planned driving path of the vehicle according to the obstacle information, when the obstacle is at the edge of the lane of the lane where the real-time position is located, the position of the planned driving path of the vehicle is adjusted in the lane to ensure that the vehicle is connected to the obstacle. When the obstacle is located in front of the vehicle's planned path, and the distance between the obstacle and the vehicle is less than the distance threshold, shorten the length of the vehicle's planned path to a second length, where the second length is less than the above-mentioned predetermined length, The second length may be the length of the distance from the real-time location to the obstacle.

一个实施例中提供了一种计算机设备,该计算机设备可以是任何能够应用在车辆中并能够对车辆进行控制的设备中,该计算机设备也可以是作为车辆系统的一部分配置在车辆中。一个实施例中的计算机设备的内部结构图可以如图8所示。该计算机设备包括通过系统总线连接的处理器、存储器,还可以包括通过系统总线连接的网络接口,还可以包括显示屏和输入装置。In one embodiment, a computer device is provided. The computer device can be any device that can be used in a vehicle and can control the vehicle. The computer device can also be configured in the vehicle as a part of a vehicle system. The internal structure diagram of the computer device in one embodiment may be as shown in FIG. 8 . The computer equipment includes a processor and a memory connected through a system bus, and may also include a network interface connected through the system bus, and may also include a display screen and an input device.

其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种车辆控制方法。该计算机设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该计算机设备的输入装置可以是显示屏上覆盖的触摸层,也可以是计算机设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The nonvolatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the execution of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements a vehicle control method. The display screen of the computer equipment may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment may be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the computer equipment , or an external keyboard, trackpad, or mouse.

本领域技术人员可以理解,图8中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 8 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.

据此,在一个实施例中,还提供了一种计算机,包括存储器和处理器,存储器中存储有计算机程序,该处理器执行计算机程序时实现如上所述的任意实施例中的方法的步骤。Accordingly, in one embodiment, a computer is also provided, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps of the method in any of the above-described embodiments when the processor executes the computer program.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一非易失性计算机可读取存储介质或者是嵌入式系统中,该计算机程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)、嵌入式系统设备或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage In a medium or an embedded system, when the computer program is executed, it may include the processes of the foregoing method embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), embedded system devices, or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Road (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

因此,在一个实施例中,还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现如上所述的方法的步骤。Therefore, in one embodiment, there is also provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method as described above.

以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the invention patent. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (10)

1. A vehicle control method, the method comprising:
acquiring a real-time position of a vehicle;
generating a path planning reference line according to the real-time position;
determining a real-time offset value between the real-time position and the path planning reference line;
and determining a control quantity according to the real-time deviation value, and determining a steering angle of a steering wheel according to the control quantity.
2. The method of claim 1, wherein the path planning reference line is a lane centerline, further comprising at least one of:
the first item:
generating a path planning reference line according to the real-time position, comprising:
acquiring surrounding environment information, and extracting lane line information from the surrounding environment information;
generating the path planning reference line according to the real-time position and the lane line information;
the second term is:
generating a path planning reference line according to the real-time position, comprising:
acquiring lane line information of a lane where the real-time position is located from map data according to the real-time position;
generating the path planning reference line according to the real-time position and the lane line information;
the third item:
generating a path planning reference line according to the real-time position, comprising:
determining a road section identification corresponding to the real-time position based on the real-time position;
acquiring a road section central line corresponding to the road section identification;
and generating the path planning reference line based on the real-time position and the road section central line.
3. The method of claim 1, wherein determining a real-time offset value between the real-time location and the path-planning reference line comprises:
determining a reference point for projecting the real-time position to the path planning reference line;
and determining the distance between the real-time position and the reference point as a real-time offset value between the real-time position and the path planning reference line.
4. The method of claim 1, comprising any one of:
the first item:
determining a control quantity according to the real-time offset value, comprising:
determining a horizontal control quantity according to the real-time offset value, wherein the control quantity comprises the horizontal control quantity;
the second term is:
further comprising the steps of: determining a reference point for projecting the real-time position to the path planning reference line, and determining the curvature of the reference point on the path planning reference line; calculating a curvature control amount according to the curvature;
determining a control quantity according to the offset value, comprising: determining a horizontal control quantity according to the real-time deviation value; determining the control amount according to the curvature control amount and the lateral control amount.
5. The method of claim 4, comprising any one of:
the first item:
determining a lateral control quantity according to the real-time offset value, comprising:
taking the real-time deviation value as a reference deviation value, and determining a transverse control quantity according to the reference deviation value;
the second term is:
determining a lateral control quantity according to the real-time offset value, comprising:
acquiring a corresponding historical deviation value during last vehicle control;
determining a first difference between the real-time offset value and the historical offset value;
determining a reference deviation value based on the real-time deviation value and the first difference value;
determining a transverse control quantity according to the reference deviation value;
the third item:
determining a lateral control quantity according to the real-time offset value, comprising:
comparing the real-time offset value to an error tolerance range;
when the real-time offset value is out of the error allowable range, calculating a second difference value between the real-time offset value and the error allowable range, and taking the second difference value as a reference deviation value;
determining a transverse control quantity according to the reference deviation value;
the fourth item:
determining a lateral control quantity according to the real-time offset value, comprising:
acquiring a corresponding historical deviation value during last vehicle control;
determining a first difference between the real-time offset value and the historical offset value;
determining a pending reference deviation value based on the real-time deviation value and the first difference value;
comparing the undetermined reference deviation value with an error allowable range;
and when the undetermined reference deviation value is out of the error allowable range, calculating a third difference value between the undetermined reference deviation value and the error allowable range, taking the third difference value as a reference deviation value, and determining a transverse control quantity according to the reference deviation value.
6. The method of claim 1, wherein determining a steering wheel steering angle from the control amount comprises:
determining a steering angle of the steering wheel to be determined according to the control quantity;
obtaining a current vehicle speed, and determining a steering angle safety range according to the current vehicle speed;
and determining the steering angle of the steering wheel based on the comparison relationship between the steering angle of the steering wheel to be determined and the safety range of the steering angle.
7. The method of claim 1, wherein:
further comprising the steps of: establishing a body coordinate system based on the real-time position and the direction of the head of the vehicle, and generating a relative map based on the body coordinate system, wherein the center of the rear axle of the vehicle is the origin of the coordinate system, the direction opposite to the head is the positive direction of a first coordinate axis, and the direction opposite to the head after rotating 90 degrees anticlockwise/clockwise is the positive direction of a second coordinate axis;
and after the real-time position is projected to the relative map to obtain a vehicle relative position, taking the vehicle relative position as the real-time position, and generating the path planning reference line by combining the relative map.
8. A vehicle control apparatus, the apparatus comprising:
the position acquisition module is used for acquiring the real-time position of the vehicle;
the reference line planning module is used for generating a path planning reference line according to the real-time position;
an offset value determination module for determining a real-time offset value between the real-time position and the path planning reference line;
and the control quantity determining module is used for determining the control quantity according to the real-time deviation value and determining the steering angle of the steering wheel according to the control quantity.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201811557452.4A 2018-12-19 2018-12-19 Vehicle control method and device, computer equipment and storage medium Active CN111409632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811557452.4A CN111409632B (en) 2018-12-19 2018-12-19 Vehicle control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811557452.4A CN111409632B (en) 2018-12-19 2018-12-19 Vehicle control method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111409632A true CN111409632A (en) 2020-07-14
CN111409632B CN111409632B (en) 2021-09-10

Family

ID=71486781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811557452.4A Active CN111409632B (en) 2018-12-19 2018-12-19 Vehicle control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111409632B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112339753A (en) * 2020-10-20 2021-02-09 高深智图(广州)科技有限公司 Lane keeping auxiliary system based on laser radar positioning technology
CN113191342A (en) * 2021-07-01 2021-07-30 中移(上海)信息通信科技有限公司 Lane positioning method and electronic equipment
CN113830174A (en) * 2021-09-28 2021-12-24 广州文远知行科技有限公司 Steering angle correction method, device and equipment and readable storage medium
CN113971846A (en) * 2020-07-22 2022-01-25 郑州宇通客车股份有限公司 Positioning failure detection method and device for automatic driving vehicle
CN114249078A (en) * 2021-12-10 2022-03-29 广东智源机器人科技有限公司 Track identification positioning method
CN114312774A (en) * 2020-09-29 2022-04-12 舍弗勒技术股份两合公司 Automatic driving lane keeping method, device, terminal device and storage medium
CN114572240A (en) * 2020-11-30 2022-06-03 北京百度网讯科技有限公司 Vehicle travel control method, device, vehicle, electronic device, and storage medium
CN115235488A (en) * 2021-04-22 2022-10-25 中煤科工开采研究院有限公司 Vehicle path planning method, apparatus, system, tool, product and storage medium
US20230311867A1 (en) * 2020-11-25 2023-10-05 Korea Electronics Technology Institute Method for filtering the driving route based on distributed kalman filter for stabilization of route tracking of autonomous vehicles
WO2024140694A1 (en) * 2022-12-29 2024-07-04 合众新能源汽车股份有限公司 Lane keeping control method and system integrating localization and lane line, and device and medium
CN118387095A (en) * 2024-06-27 2024-07-26 北京集度科技有限公司 Vehicle transverse control method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102171084A (en) * 2008-09-30 2011-08-31 日产自动车株式会社 System equipped with assisting controller for assisting system operator, control operation assisting device, control operation assisting method, driving operation assisting device, and driving operation assisting method
CN102975716A (en) * 2011-09-02 2013-03-20 通用汽车环球科技运作有限责任公司 System and method for speed adaptive steering override detection during automated lane centering
CN106553644A (en) * 2015-09-28 2017-04-05 丰田自动车株式会社 Autopilot facility and automated driving system
CN107428337A (en) * 2015-04-10 2017-12-01 日立汽车系统株式会社 The travel controlling system of vehicle
US20180099667A1 (en) * 2016-10-12 2018-04-12 Honda Motor Co., Ltd Vehicle control device
WO2018149478A1 (en) * 2017-02-14 2018-08-23 Volvo Truck Corporation A sensing arrangement for determining a displacement of a vehicle with respect to an electrical road system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102171084A (en) * 2008-09-30 2011-08-31 日产自动车株式会社 System equipped with assisting controller for assisting system operator, control operation assisting device, control operation assisting method, driving operation assisting device, and driving operation assisting method
CN102975716A (en) * 2011-09-02 2013-03-20 通用汽车环球科技运作有限责任公司 System and method for speed adaptive steering override detection during automated lane centering
CN107428337A (en) * 2015-04-10 2017-12-01 日立汽车系统株式会社 The travel controlling system of vehicle
CN106553644A (en) * 2015-09-28 2017-04-05 丰田自动车株式会社 Autopilot facility and automated driving system
US20180099667A1 (en) * 2016-10-12 2018-04-12 Honda Motor Co., Ltd Vehicle control device
WO2018149478A1 (en) * 2017-02-14 2018-08-23 Volvo Truck Corporation A sensing arrangement for determining a displacement of a vehicle with respect to an electrical road system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113971846A (en) * 2020-07-22 2022-01-25 郑州宇通客车股份有限公司 Positioning failure detection method and device for automatic driving vehicle
CN114312774A (en) * 2020-09-29 2022-04-12 舍弗勒技术股份两合公司 Automatic driving lane keeping method, device, terminal device and storage medium
CN112339753A (en) * 2020-10-20 2021-02-09 高深智图(广州)科技有限公司 Lane keeping auxiliary system based on laser radar positioning technology
US12179757B2 (en) * 2020-11-25 2024-12-31 Korea Electronics Technology Institute Method for filtering the driving route based on distributed Kalman filter for stabilization of route tracking of autonomous vehicles
US20230311867A1 (en) * 2020-11-25 2023-10-05 Korea Electronics Technology Institute Method for filtering the driving route based on distributed kalman filter for stabilization of route tracking of autonomous vehicles
CN114572240A (en) * 2020-11-30 2022-06-03 北京百度网讯科技有限公司 Vehicle travel control method, device, vehicle, electronic device, and storage medium
CN114572240B (en) * 2020-11-30 2023-11-14 北京百度网讯科技有限公司 Vehicle running control method, device, vehicle, electronic device and storage medium
CN115235488A (en) * 2021-04-22 2022-10-25 中煤科工开采研究院有限公司 Vehicle path planning method, apparatus, system, tool, product and storage medium
CN115235488B (en) * 2021-04-22 2025-07-04 中煤科工开采研究院有限公司 Vehicle path planning method, device, system, tool, product and storage medium
CN113191342A (en) * 2021-07-01 2021-07-30 中移(上海)信息通信科技有限公司 Lane positioning method and electronic equipment
CN113830174A (en) * 2021-09-28 2021-12-24 广州文远知行科技有限公司 Steering angle correction method, device and equipment and readable storage medium
CN114249078A (en) * 2021-12-10 2022-03-29 广东智源机器人科技有限公司 Track identification positioning method
WO2024140694A1 (en) * 2022-12-29 2024-07-04 合众新能源汽车股份有限公司 Lane keeping control method and system integrating localization and lane line, and device and medium
CN118387095A (en) * 2024-06-27 2024-07-26 北京集度科技有限公司 Vehicle transverse control method and related device
CN118387095B (en) * 2024-06-27 2024-10-18 北京集度科技有限公司 Vehicle lateral control method and related device

Also Published As

Publication number Publication date
CN111409632B (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN111409632A (en) Vehicle control method and device, computer equipment and storage medium
CN111332285B (en) Method and device for vehicle avoiding obstacles, electronic device and storage medium
CN105292116B (en) The lane changing path planning algorithm of automatic driving vehicle
US9457807B2 (en) Unified motion planning algorithm for autonomous driving vehicle in obstacle avoidance maneuver
US9229453B1 (en) Unified motion planner for autonomous driving vehicle in avoiding the moving obstacle
US9227632B1 (en) Method of path planning for evasive steering maneuver
US9650043B2 (en) Real-time anticipatory speed control
US9849878B2 (en) System and method for providing a corrected lane following path through a curve for trailering vehicles
CN111556833B (en) Vehicle control device, control method thereof, and vehicle control system
US9849911B2 (en) Enhanced vehicle lateral control (lane following/lane keeping/lane changing control) for trailering vehicles
CN108725585B (en) Trajectory tracking control method and device for autonomous parking of vehicles
US10860035B2 (en) Travel history storage method, method for producing travel path model, method for estimating local position, and travel history storage device
CN116080754B (en) Transverse control method for autonomous driving of vehicle
CN108061555B (en) Method and device for correcting vehicle positioning error
CN110015304A (en) For seeking and providing the method and system of ground characteristics
JP2015077908A (en) Automatic steering control device
CN114852085A (en) Automatic vehicle driving track planning method based on road right invasion degree
CN117755300A (en) Tracking reversing path extraction method and device, storage medium and electronic equipment
CN115892208A (en) A vehicle terminal, vehicle turning control method and device
CN116466720A (en) A path tracing method, device and medium based on PID idea
CN116399358A (en) A path planning method, device, storage medium and electronic equipment
CN111413982A (en) Method and terminal for planning tracking routes of multiple vehicles
CN115235488B (en) Vehicle path planning method, device, system, tool, product and storage medium
JP2024115995A (en) Information output device and information output method
CN118408558A (en) Vehicle autonomous navigation method, device and computer equipment based on vehicle positioning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Vehicle control methods and devices, computer equipment and storage media

Granted publication date: 20210910

Pledgee: Bank of Communications Co.,Ltd. Hunan Branch

Pledgor: CHANGSHA INTELLIGENT DRIVING RESEARCH INSTITUTE Co.,Ltd.

Registration number: Y2024980023990

PE01 Entry into force of the registration of the contract for pledge of patent right
CP03 Change of name, title or address

Address after: Building A3 and A4, Hunan Inspection and testing characteristic industrial park, No. 336, bachelor Road, Yuelu District, Changsha City, Hunan Province

Patentee after: Xidi Intelligent Driving (Hunan) Co.,Ltd.

Country or region after: China

Address before: Building A3 and A4, Hunan Inspection and testing characteristic industrial park, No. 336, bachelor Road, Yuelu District, Changsha City, Hunan Province

Patentee before: CHANGSHA INTELLIGENT DRIVING RESEARCH INSTITUTE Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Building A3 and A4, Hunan Inspection and testing characteristic industrial park, No. 336, bachelor Road, Yuelu District, Changsha City, Hunan Province

Patentee after: Xidi Intelligent Driving Technology Co.,Ltd.

Country or region after: China

Address before: Building A3 and A4, Hunan Inspection and testing characteristic industrial park, No. 336, bachelor Road, Yuelu District, Changsha City, Hunan Province

Patentee before: Xidi Intelligent Driving (Hunan) Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address