WO2023221963A1 - Following error determination method and apparatus, device, and storage medium - Google Patents

Following error determination method and apparatus, device, and storage medium Download PDF

Info

Publication number
WO2023221963A1
WO2023221963A1 PCT/CN2023/094434 CN2023094434W WO2023221963A1 WO 2023221963 A1 WO2023221963 A1 WO 2023221963A1 CN 2023094434 W CN2023094434 W CN 2023094434W WO 2023221963 A1 WO2023221963 A1 WO 2023221963A1
Authority
WO
WIPO (PCT)
Prior art keywords
target trajectory
current vehicle
trajectory
target
point
Prior art date
Application number
PCT/CN2023/094434
Other languages
French (fr)
Chinese (zh)
Inventor
刘梦可
刘金波
张建
高原
王御
王宇
李林润
姜洪伟
Original Assignee
中国第一汽车股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国第一汽车股份有限公司 filed Critical 中国第一汽车股份有限公司
Publication of WO2023221963A1 publication Critical patent/WO2023221963A1/en

Links

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
    • B60W60/00Drive control systems specially adapted for autonomous road vehicles
    • B60W60/001Planning or execution of driving tasks
    • B60W60/0011Planning or execution of driving tasks involving control alternatives for a single driving scenario, e.g. planning several paths to avoid obstacles
    • 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/14Adaptive cruise control
    • 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
    • B60W40/00Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models
    • B60W40/10Estimation or calculation of non-directly measurable driving parameters for road vehicle drive control systems not related to the control of a particular sub unit, e.g. by using mathematical models related to vehicle motion
    • 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
    • B60W2520/00Input parameters relating to overall vehicle dynamics
    • 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
    • B60W2520/00Input parameters relating to overall vehicle dynamics
    • B60W2520/06Direction of travel
    • 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
    • B60W2520/00Input parameters relating to overall vehicle dynamics
    • B60W2520/10Longitudinal speed

Definitions

  • the present application relates to the field of vehicle technology, for example, to a following error determination method, device, equipment and storage medium.
  • the following problem of autonomous vehicles is the core issue of autonomous driving, and the performance of the controller, that is, the control accuracy of the desired following trajectory, is partly determined by the following error.
  • the performance of the controller cannot be guaranteed.
  • Following error accuracy is usually determined by the desired trajectory shape, sensor signal accuracy, and solution algorithm.
  • This application provides a following error determination method, device, equipment and storage medium to solve the problem that in actual calculations, sensor noise error is not considered and filtered, which may lead to an unreasonable increase in computing power requirements.
  • Software and hardware To solve the problem of increasing deployment costs and reducing calculation accuracy, by identifying the shape of the target trajectory and selecting the corresponding solution algorithm to reduce computing power requirements, without relying on acceleration or angular acceleration sensors for analysis, it can reduce the cost of software and hardware deployment and provide practical solutions. It provides an important reference basis for the design of vehicle embedded system controller.
  • a following error determination method including:
  • the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle;
  • the following error is determined based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
  • a following error determination device including:
  • the acquisition module is configured to acquire the target trajectory and the motion parameters of the current vehicle, wherein the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle;
  • a first determination module configured to determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory
  • the second determination module is configured to determine the following error according to the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
  • an electronic device including:
  • the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method described in any embodiment of the present application.
  • the at least one processor can execute the method described in any embodiment of the present application.
  • a computer-readable storage medium stores computer instructions, and the computer instructions are used to implement any of the embodiments of the present application when executed by a processor.
  • the following error determination method is provided.
  • Figure 1 is a flow chart of a following error determination method in an embodiment of the present application.
  • Figure 2 is a diagram showing the calculation of lateral offset in the embodiment of the present application.
  • Figure 3 is a schematic diagram of a straight line corresponding to the target trajectory in the embodiment of the present application.
  • Figure 4 is a schematic diagram of an arc with a constant curvature radius corresponding to the target trajectory in the embodiment of the present application;
  • Figure 5 is a diagram showing the linear trajectory following error calculation in the embodiment of the present application.
  • Figure 6 is a diagram illustrating the calculation of arc following error with a constant curvature radius in the embodiment of the present application.
  • Figure 7 is a schematic structural diagram of a following error determination device in an embodiment of the present application.
  • Figure 8 is a schematic structural diagram of an electronic device in an embodiment of the present application.
  • Figure 1 is a flow chart of a following error determination method provided by an embodiment of the present application. This embodiment can be applied to the situation of following error determination. This method can be executed by the following error determination device in the embodiment of the present application. The device can It is implemented using software and/or hardware, as shown in Figure 1. The method includes the following steps.
  • the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle.
  • the method of obtaining the target trajectory can be: obtaining the initial trajectory, selecting a section of the trajectory from the initial trajectory according to the position of the current vehicle and the longitudinal speed of the current vehicle, and determining it as the target trajectory.
  • the method of obtaining the target trajectory may also be: obtaining the initial trajectory; and determining the target trajectory according to the position of the current vehicle, the longitudinal speed of the current vehicle and the initial trajectory.
  • the target trajectory is a distance of 1 second forward.
  • the point on the initial trajectory closest to the current vehicle is determined according to the position of the current vehicle.
  • the point closest to the current vehicle is determined as the starting point of the target trajectory.
  • the longitudinal speed of the vehicle determines the current vehicle's driving trajectory within 1 second, and determines the target trajectory based on the starting point of the target trajectory and the current vehicle's driving trajectory within 1 second.
  • the target trajectory is a sufficiently small trajectory selected from the initial trajectory, and the shape of the target trajectory is a straight line or an arc with a constant curvature radius.
  • the trajectory shape of the target trajectory may be a straight line or an arc with a fixed curvature radius.
  • the way to determine the trajectory shape of the target trajectory according to the coordinates of the points on the target trajectory may be to obtain the lateral offset of the points on the target trajectory. If the maximum lateral offset corresponding to the target trajectory is greater than If the maximum lateral offset corresponding to the target trajectory is less than or equal to the lateral offset threshold, then the target trajectory is determined to be a straight line.
  • the following error includes: at least one of a lateral following error, a heading angle following error and a yaw angular velocity following error.
  • the method of determining the following error based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle may be: if the target trajectory is a straight line, then based on the position of the current vehicle, The slope of the target trajectory and the intercept of the target trajectory determine the lateral following error.
  • the method of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is a straight line, then based on the heading angle of the current vehicle, the The coordinates of the first target point on the target trajectory and the coordinates of the second target point on the target trajectory determine the heading angle following error, wherein the first target point is the point closest to the current vehicle, and the second The target point is the second closest point to the current vehicle.
  • the way of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is a straight line, determine the yaw angular velocity of the current vehicle as Yaw rate following error.
  • the method of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is an arc with a constant curvature radius, then based on the center of the circle of the target trajectory , the radius of the target trajectory and the position of the current vehicle determine the lateral following error.
  • the method of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is an arc with a constant curvature radius, then based on the heading of the current vehicle
  • the heading angle following error is determined by the angle, the coordinates of the first target point on the target trajectory and the coordinates of the second target point on the target trajectory, where the first target point is the point closest to the current vehicle, The second target point is the second closest point to the current vehicle.
  • the method of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is an arc with a constant curvature radius, then according to the longitudinal direction of the current vehicle The speed, the radius of the target trajectory and the yaw rate of the current vehicle determine the yaw rate following error.
  • the embodiments of the present application do not limit this.
  • obtain the target trajectory including:
  • a target trajectory is determined based on the position of the current vehicle, the longitudinal speed of the current vehicle, and the initial trajectory.
  • the initial trajectory is a preset following trajectory, and the embodiment of the present application does not limit the acquisition method of the initial trajectory.
  • the longitudinal speed of the current vehicle and the The initial trajectory can be used to determine the target trajectory by: obtaining the initial trajectory, selecting a segment of the trajectory from the initial trajectory based on the position of the current vehicle and the longitudinal speed of the current vehicle, and determining it as the target trajectory.
  • determining the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory includes:
  • the target trajectory is determined to be an arc with a constant curvature radius
  • the target trajectory is a straight line.
  • the method of determining that the target trajectory is an arc with a constant curvature radius may be: obtaining the lateral offset of each point on the target trajectory, Compare the lateral offset of each point to obtain the maximum lateral offset. If the maximum lateral offset is greater than the lateral offset threshold, it is determined that the target trajectory is an arc with a constant curvature radius.
  • the method of determining that the target trajectory is a straight line may be: obtaining the lateral offset of each point on the target trajectory, and comparing each point. The maximum lateral offset of the points is obtained. If the maximum lateral offset is less than or equal to the lateral offset threshold, it is determined that the target trajectory is a straight line.
  • determining the following error based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle includes:
  • the target trajectory is a straight line, determine the lateral following error based on the current vehicle position, the slope of the target trajectory, and the intercept of the target trajectory;
  • the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory, where, The first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
  • the yaw angular velocity of the current vehicle is determined as the yaw angular velocity following error.
  • e lat is the lateral following error
  • m is the slope corresponding to the target trajectory
  • c is the intercept corresponding to the target trajectory
  • (X v , Y v ) is the position coordinate of the current vehicle.
  • the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory.
  • the method can be:
  • is the heading angle of the vehicle at this time
  • ⁇ e is the heading angle following error
  • ⁇ R is the expected heading angle.
  • the vehicle can be used to reach the closest point (X m , Y m ) and the second closest point (X k , Y k ) of the target trajectory through the vehicle. ) can be obtained, for example, by calculating the desired heading angle based on the following formula:
  • the way to determine the yaw angular velocity of the current vehicle as the yaw angular velocity following error can be: because the curvature radius of the straight line can be considered infinite, the expected yaw angular velocity is 0, yaw angular velocity following error in, is the yaw angular velocity of the current vehicle.
  • determining the following error based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle includes:
  • the lateral following error is determined based on the center of the target trajectory, the radius of the target trajectory and the position of the current vehicle;
  • the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory. , wherein the first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
  • the yaw angular velocity following error is determined based on the longitudinal velocity of the current vehicle, the radius of the target trajectory, and the yaw angular velocity of the current vehicle.
  • the target trajectory is an arc with a constant curvature radius
  • the radius of the target trajectory and the position of the current vehicle can be:
  • the lateral trajectory error e lat is calculated based on the following formula:
  • (X c , Y c ) are the center coordinates of the target trajectory
  • (X v , Y v ) are the position coordinates of the current vehicle
  • R is the radius of the target trajectory.
  • the target trajectory is an arc with a constant curvature radius
  • it is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory.
  • is the heading angle of the vehicle at this time
  • ⁇ e is the heading angle following error
  • ⁇ R is the expected heading angle.
  • the vehicle can be used to reach the closest point (X m , Y m ) and the second closest point (X k , Y k ) of the target trajectory through the vehicle. ) can be obtained, for example, by calculating the desired heading angle based on the following formula:
  • the heading angle following error is calculated in the same way when the target trajectory is an arc with a constant curvature radius and when the target trajectory is a straight line.
  • the yaw angular velocity following error may be determined based on the longitudinal velocity of the current vehicle, the radius of the target trajectory, and the yaw angular velocity of the current vehicle. for:
  • the yaw angular velocity following error is calculated based on the following formula:
  • v x is the longitudinal velocity of the current vehicle.
  • Optional also includes:
  • the lateral offset of each point on the target trajectory is calculated based on the following formula:
  • (X i , Y i ) are the coordinates of the i-th point on the target trajectory
  • (X 1 , Y 1 ) are the coordinates of the starting point of the target trajectory
  • (X N , Y N ) are The coordinates of the end point of the target trajectory, dis, are the lateral offset of the i-th point on the target trajectory.
  • the curve in Figure 2 is the target trajectory.
  • (X 1 , Y 1 ) and (X N , Y N ) represent the first point and the last point of the target trajectory respectively.
  • Based on the A straight line is obtained by connecting a point to the last point.
  • the angle between this straight line and the positive half -axis of the From the 2nd point to the i-1th point, the corresponding lateral offset dis 2 ,...,dis i-1 can be found, find the largest value dis max , and compare it with the threshold dis threshold . If dis If max > dis threshold , the target trajectory is an arc with a fixed curvature radius, otherwise, the target trajectory is a straight line.
  • Optional also includes:
  • (X c , Y c ) are the center coordinates of the target trajectory, and N is the target trajectory.
  • the number of points on the target trajectory, (X i , Y i ) is the coordinate of the i-th point on the target trajectory;
  • the least squares method is used for trajectory fitting. If the target trajectory is an arc curve, the trajectory fitting is performed through convex optimization. The two fitting methods are explained below:
  • Convex optimization fitting When the shape of the target trajectory is an arc curve, the convex optimization method is used for fitting, as shown in Figure 4, (X 1 , Y 1 ),..., (X N , Y N ) are the target trajectories The point on, the “preview section” in the picture is the target trajectory.
  • a convex optimization fitting method is introduced. That is, this method is used to calculate the corresponding curvature radius R and circle center ( X c ,Y c ), the algorithm is as follows:
  • the target trajectory fitting loss function can be defined as:
  • the trajectory fitting circle center (X c , Y c ) and radius R can be obtained.
  • H(x) h 1 (x)+...+h n (x)
  • H(x) be a convex function, if h 1 (x)...h n (x) are all convex functions.
  • the first step first prove that e i (x) is a convex function
  • e i (x) is a convex function.
  • the second step is to prove is a convex function, here we quote Theorem 1:
  • f and g are equal and both are convex functions. From the definition of e i (x), it can be seen that e i (x) ⁇ 0, and f′ and g′ have the same sign, so it can be proved that E i (x) is a convex function.
  • the third step is to prove that E(x) is a convex function.
  • Theorem 2
  • E (x) is a convex function
  • E(x) is a convex function. Therefore, the extreme value obtained by the gradient method is the minimum value.
  • the following uses the gradient method to solve the minimum value:
  • is the heading angle of the vehicle at this time
  • ⁇ R is the expected heading angle, which is calculated through the closest point (X 1 , Y 1 ) and the next closest point (X 2 , Y 2 ) of the vehicle to the target trajectory, where,
  • is the heading angle of the vehicle at this time
  • ⁇ R is the expected heading angle, which can be calculated from the closest point (X 1 , Y 1 ) and the second closest point (X 2 , Y 2 ) of the vehicle to the target trajectory.
  • the yaw angular velocity following error is:
  • v x is the longitudinal speed of the vehicle at this time.
  • the technical solution of this embodiment is to obtain the target trajectory and the motion parameters of the current vehicle, where,
  • the motion parameters of the current vehicle include: the current vehicle position, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle; the trajectory shape of the target trajectory is determined according to the coordinates of points on the target trajectory. ; Determine the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle to solve the problem that in the actual calculation, the sensor noise error is not considered and filtered, which may lead to calculation errors. Unreasonable increase in force requirements, increased software and hardware deployment costs, and reduced calculation accuracy.
  • FIG. 7 is a schematic structural diagram of a following error determination device provided by an embodiment of the present application. This embodiment can be applied to the situation of following error determination.
  • the device can be implemented in the form of software and/or hardware.
  • the device can be integrated in any device that provides the following error determination function. As shown in Figure 7, the following error
  • the determination device includes: an acquisition module 210, a first determination module 220 and a second determination module 230.
  • the acquisition module 210 is configured to acquire the target trajectory and the motion parameters of the current vehicle, wherein the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle. ;
  • the first determination module 220 is configured to determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory;
  • the second determination module 230 is configured to determine the following error according to the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
  • the acquisition module 210 is set to:
  • a target trajectory is determined based on the position of the current vehicle, the longitudinal speed of the current vehicle, and the initial trajectory.
  • the first determination module 220 is set to:
  • the target trajectory is determined to be an arc with a constant curvature radius
  • the target trajectory is a straight line.
  • the second determination module 230 is set to:
  • the target trajectory is a straight line, determine the lateral following error based on the current vehicle position, the slope of the target trajectory, and the intercept of the target trajectory;
  • the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory, where, The first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
  • the yaw angular velocity of the current vehicle is determined as the yaw angular velocity following error.
  • the second determination module 230 is set to:
  • the lateral following error is determined based on the center of the target trajectory, the radius of the target trajectory and the position of the current vehicle;
  • the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory. , wherein the first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
  • the yaw angular velocity following error is determined based on the longitudinal velocity of the current vehicle, the radius of the target trajectory, and the yaw angular velocity of the current vehicle.
  • the first determination module 220 is set to:
  • the lateral offset of each point on the target trajectory is calculated based on the following formula:
  • (X i , Y i ) are the coordinates of the i-th point on the target trajectory
  • (X 1 , Y 1 ) are the coordinates of the starting point of the target trajectory
  • (X N , Y N ) are The coordinates of the end point of the target trajectory, dis, are the lateral offset of the i-th point on the target trajectory.
  • the second determination module 230 is set to:
  • (X c , Y c ) are the coordinates of the center of the target trajectory
  • N is the number of points on the target trajectory
  • (X i , Y i ) are the coordinates of the i-th point on the target trajectory;
  • the above-mentioned products can execute the methods provided by any embodiment of this application, and have corresponding functional modules and effects for executing the methods.
  • the technical solution of this embodiment is to obtain the target trajectory and the motion parameters of the current vehicle, where the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the lateral direction of the current vehicle. Swing angular velocity; determine the trajectory shape of the target trajectory according to the coordinates of the points on the target trajectory; determine the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle to solve the problem of In the actual calculation, the sensor noise error is not considered and filtered, which may lead to an unreasonable increase in computing power requirements, increased software and hardware deployment costs, and reduced calculation accuracy. Since it does not rely on acceleration or angular acceleration sensors, Analysis can reduce the cost of software and hardware deployment, and can filter sensor noise errors to ensure that the following error is determined under certain noise conditions, which provides an important reference for the design of real vehicle embedded system controllers.
  • FIG. 8 shows a schematic structural diagram of an electronic device 10 that can be used to implement embodiments of the present application.
  • Electronic device 10 is intended to represent many forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers.
  • Electronic device 10 may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices.
  • the components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit the implementation of the present application as described and/or claimed herein.
  • the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (Read-Only Memory, ROM) 12, a random access memory Random Access Memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor.
  • the processor 11 can load the computer program into the RAM 13 from the storage unit 18 according to the computer program stored in the ROM 12. Computer programs to perform various appropriate actions and processes. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored.
  • the processor 11, the ROM 12 and the RAM 13 are connected to each other via the bus 14.
  • An input/output (I/O) interface 15 is also connected to the bus 14 .
  • the I/O interface 15 Multiple components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc. etc.; and communication unit 19, such as network card, modem, wireless communication transceiver, etc.
  • the communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunications networks.
  • Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the processor 11 include a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a variety of dedicated artificial intelligence (Artificial Intelligence, AI) computing chips, a variety of running machine learning models Algorithm processor, digital signal processor (Digital Signal Processor, DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs a plurality of methods and processes described above, such as following error determination methods.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • AI Artificial Intelligence
  • Algorithm processor digital signal processor
  • DSP Digital Signal Processor
  • the processor 11 performs a plurality of methods and processes described above, such as following error determination methods.
  • the following error determination method may be implemented as a computer program, which is tangibly embodied in a computer-readable storage medium, such as the storage unit 18 .
  • part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19.
  • the processor 11 may be configured to perform the following error determination method in any other suitable manner (eg, by means of firmware):
  • the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle;
  • the following error is determined based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
  • FPGAs Field Programmable Gate Arrays
  • ASICs Application Specific Integrated Circuits
  • ASSP Application Specific Standard Parts
  • SOC System on Chip
  • CPLD Complex Programmable Logic Device
  • These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor
  • the processor which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
  • An output device may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
  • An output device may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
  • Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that the computer program, when executed by the processor, causes the functions/operations specified in the flowcharts and/or block diagrams to be implemented.
  • a computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
  • a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device.
  • Computer-readable storage media may include electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • the computer-readable storage medium may be a machine-readable signal medium.
  • Machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard drives, RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), flash memory, fiber optics , portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the storage medium may be a non-transitory storage medium.
  • the systems and techniques described herein may be implemented on an electronic device having a display device (e.g., a cathode ray tube (CRT) or liquid crystal) for displaying information to the user.
  • a display device e.g., a cathode ray tube (CRT) or liquid crystal
  • a display Liquid Crystal Display, LCD monitor
  • a keyboard and pointing device e.g., a mouse or a trackball
  • Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.
  • the systems and techniques described herein may be implemented on a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or or a computing system that includes front-end components (e.g., a user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and techniques described herein), or A computing system that includes any combination of such backend components, middleware components, or front-end components.
  • the components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), blockchain network, and the Internet.
  • Computing systems may include clients and servers.
  • Clients and servers are generally remote from each other and typically interact over a communications network.
  • the relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other.
  • the server can be a cloud server, also known as cloud computing server or cloud host. It is a host product in the cloud computing service system to solve the problems that exist in traditional physical host and virtual private server (VPS) services. It has the disadvantages of difficult management and weak business scalability.
  • VPN virtual private server
  • Steps can be reordered, added, or removed using various forms of the process shown above.
  • multiple steps described in this application can be executed in parallel, sequentially, or in different orders.
  • the desired results of the technical solution of this application can be achieved, there is no limitation here.

Landscapes

  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • Control Of Driving Devices And Active Controlling Of Vehicle (AREA)
  • Navigation (AREA)

Abstract

Provided are a following error determination method and apparatus, a device, and a storage medium. The following error determination method comprises: obtaining a target trajectory and motion parameters of a current vehicle, the motion parameters of the current vehicle comprising a location of the current vehicle, a longitudinal speed of the current vehicle, a heading angle of the current vehicle, and a yaw velocity of the current vehicle (S110); determining a trajectory shape of the target trajectory according to coordinates of points on the target trajectory (S120); and determining a following error according to the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle (S130).

Description

跟随误差确定方法、装置、设备及存储介质Following error determination method, device, equipment and storage medium
本申请要求在2022年05月16日提交中国专利局、申请号为202210526910.8的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210526910.8, which was submitted to the China Patent Office on May 16, 2022. The entire content of this application is incorporated into this application by reference.
技术领域Technical field
本申请涉及车辆技术领域,例如涉及一种跟随误差确定方法、装置、设备及存储介质。The present application relates to the field of vehicle technology, for example, to a following error determination method, device, equipment and storage medium.
背景技术Background technique
自动驾驶车辆的跟随问题是自动驾驶的核心问题,而控制器的表现,即对期望跟随轨迹的控制精度部分由跟随误差决定。当跟随误差精度无法保证,则控制器的表现无法保证。跟随误差精度通常由期望轨迹形状、传感器信号精度、和求解算法共同决定。The following problem of autonomous vehicles is the core issue of autonomous driving, and the performance of the controller, that is, the control accuracy of the desired following trajectory, is partly determined by the following error. When the following error accuracy cannot be guaranteed, the performance of the controller cannot be guaranteed. Following error accuracy is usually determined by the desired trajectory shape, sensor signal accuracy, and solution algorithm.
相关技术往往是将所有类型轨迹识别为单一形状,依赖加速度或角加速度传感器进行分析,并且引入相关传感器噪声误差来进行跟随控制。由于在实际的运算之中,并未考虑传感器噪声误差并进行滤波,可能会导致对算力要求不合理的增加,软硬件部署成本增加并且降低计算精度。Related technologies often identify all types of trajectories as a single shape, rely on acceleration or angular acceleration sensors for analysis, and introduce relevant sensor noise errors for following control. Since the sensor noise error is not considered and filtered in actual calculations, it may lead to an unreasonable increase in computing power requirements, increase in software and hardware deployment costs, and reduce calculation accuracy.
发明内容Contents of the invention
本申请提供一种跟随误差确定方法、装置、设备及存储介质,以解决在实际的运算之中,并未考虑传感器噪声误差并进行滤波,可能会导致对算力要求不合理的增加,软硬件部署成本增加并且降低计算精度的问题,通过识别目标轨迹的形状,选择相应的求解算法,以减小算力要求,并未依赖加速度或角加速度传感器进行分析,能够降低软硬件部署成本,为实车嵌入式系统控制器设计提供了重要的参考依据。This application provides a following error determination method, device, equipment and storage medium to solve the problem that in actual calculations, sensor noise error is not considered and filtered, which may lead to an unreasonable increase in computing power requirements. Software and hardware To solve the problem of increasing deployment costs and reducing calculation accuracy, by identifying the shape of the target trajectory and selecting the corresponding solution algorithm to reduce computing power requirements, without relying on acceleration or angular acceleration sensors for analysis, it can reduce the cost of software and hardware deployment and provide practical solutions. It provides an important reference basis for the design of vehicle embedded system controller.
根据本申请的一方面,提供了一种跟随误差确定方法,包括:According to one aspect of the present application, a following error determination method is provided, including:
获取目标轨迹和当前车辆的运动参数,其中,所述当前车辆的运动参数包括:当前车辆的位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度;Obtain the target trajectory and the motion parameters of the current vehicle, wherein the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle;
根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状;Determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory;
根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差。 The following error is determined based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
根据本申请的另一方面,提供了一种跟随误差确定装置,包括:According to another aspect of the present application, a following error determination device is provided, including:
获取模块,设置为获取目标轨迹和当前车辆的运动参数,其中,所述当前车辆的运动参数包括:当前车辆的位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度;The acquisition module is configured to acquire the target trajectory and the motion parameters of the current vehicle, wherein the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle;
第一确定模块,设置为根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状;A first determination module configured to determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory;
第二确定模块,设置为根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差。The second determination module is configured to determine the following error according to the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
根据本申请的另一方面,提供了一种电子设备,包括:According to another aspect of the present application, an electronic device is provided, including:
至少一个处理器;以及at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请任一实施例所述的跟随误差确定方法。The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method described in any embodiment of the present application. Follow the error determination method.
根据本申请的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本申请任一实施例所述的跟随误差确定方法。According to another aspect of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement any of the embodiments of the present application when executed by a processor. The following error determination method.
附图说明Description of the drawings
图1是本申请实施例中的一种跟随误差确定方法的流程图;Figure 1 is a flow chart of a following error determination method in an embodiment of the present application;
图2是本申请实施例中的横向偏移计算图示;Figure 2 is a diagram showing the calculation of lateral offset in the embodiment of the present application;
图3是本申请实施例中的目标轨迹对应的直线示意图;Figure 3 is a schematic diagram of a straight line corresponding to the target trajectory in the embodiment of the present application;
图4是本申请实施例中的目标轨迹对应的定曲率半径圆弧示意图;Figure 4 is a schematic diagram of an arc with a constant curvature radius corresponding to the target trajectory in the embodiment of the present application;
图5是本申请实施例中的直线轨迹跟随误差计算图示;Figure 5 is a diagram showing the linear trajectory following error calculation in the embodiment of the present application;
图6是本申请实施例中的定曲率半径圆弧跟随误差计算图示;Figure 6 is a diagram illustrating the calculation of arc following error with a constant curvature radius in the embodiment of the present application;
图7是本申请实施例中的一种跟随误差确定装置的结构示意图;Figure 7 is a schematic structural diagram of a following error determination device in an embodiment of the present application;
图8是本申请实施例中的一种电子设备的结构示意图。Figure 8 is a schematic structural diagram of an electronic device in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。 The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. The described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. Data so used are interchangeable under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, e.g., a process, method, system, product, or apparatus that encompasses a series of steps or units and need not be limited to those explicitly listed. Those steps or elements may instead include other steps or elements not expressly listed or inherent to the process, method, product or apparatus.
实施例一Embodiment 1
图1为本申请实施例提供的一种跟随误差确定方法的流程图,本实施例可适用于跟随误差确定的情况,该方法可以由本申请实施例中的跟随误差确定装置来执行,该装置可采用软件和/或硬件的方式实现,如图1所示,该方法包括如下步骤。Figure 1 is a flow chart of a following error determination method provided by an embodiment of the present application. This embodiment can be applied to the situation of following error determination. This method can be executed by the following error determination device in the embodiment of the present application. The device can It is implemented using software and/or hardware, as shown in Figure 1. The method includes the following steps.
S110、获取目标轨迹和当前车辆的运动参数,其中,所述当前车辆的运动参数包括:当前车辆的位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度。S110. Obtain the target trajectory and the motion parameters of the current vehicle, where the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle.
获取目标轨迹的方式可以为:获取初始轨迹,根据当前车辆的位置和当前车辆的纵向速度从初始轨迹上选取一段轨迹,确定为目标轨迹。获取目标轨迹的方式还可以为:获取初始轨迹;根据所述当前车辆的位置、所述当前车辆的纵向速度以及所述初始轨迹确定目标轨迹。例如可以是,所述目标轨迹为1秒向前的距离,根据当前车辆的位置确定初始轨迹上距离当前车辆最近的点,将距离当前车辆最近的点确定为目标轨迹的起始点,根据当前车辆的纵向速度确定当前车辆1秒内行驶轨迹,根据目标轨迹的起始点和当前车辆1秒内行驶轨迹确定目标轨迹。目标轨迹为从初始轨迹上选取的足够小的一段轨迹,所述目标轨迹的形状为直线或者定曲率半径圆弧。The method of obtaining the target trajectory can be: obtaining the initial trajectory, selecting a section of the trajectory from the initial trajectory according to the position of the current vehicle and the longitudinal speed of the current vehicle, and determining it as the target trajectory. The method of obtaining the target trajectory may also be: obtaining the initial trajectory; and determining the target trajectory according to the position of the current vehicle, the longitudinal speed of the current vehicle and the initial trajectory. For example, the target trajectory is a distance of 1 second forward. The point on the initial trajectory closest to the current vehicle is determined according to the position of the current vehicle. The point closest to the current vehicle is determined as the starting point of the target trajectory. According to the current vehicle The longitudinal speed of the vehicle determines the current vehicle's driving trajectory within 1 second, and determines the target trajectory based on the starting point of the target trajectory and the current vehicle's driving trajectory within 1 second. The target trajectory is a sufficiently small trajectory selected from the initial trajectory, and the shape of the target trajectory is a straight line or an arc with a constant curvature radius.
S120、根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状。S120. Determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory.
所述目标轨迹的轨迹形状可以为直线,也可以为定曲率半径圆弧。The trajectory shape of the target trajectory may be a straight line or an arc with a fixed curvature radius.
示例性的,根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状的方式可以为:获取目标轨迹上的点的横向偏移,若所述目标轨迹对应的最大横向偏移大于横向偏移阈值,则确定所述目标轨迹为定曲率半径圆弧;若所述目标轨迹对应的最大横向偏移小于或者等于横向偏移阈值,则确定所述目标轨迹为直线。Exemplarily, the way to determine the trajectory shape of the target trajectory according to the coordinates of the points on the target trajectory may be to obtain the lateral offset of the points on the target trajectory. If the maximum lateral offset corresponding to the target trajectory is greater than If the maximum lateral offset corresponding to the target trajectory is less than or equal to the lateral offset threshold, then the target trajectory is determined to be a straight line.
S130、根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的 运动参数确定跟随误差。S130. According to the trajectory shape of the target trajectory, the target trajectory and the current vehicle The motion parameters determine the following error.
所述跟随误差包括:横向跟随误差、航向角跟随误差以及横摆角速度跟随误差中的至少一种。The following error includes: at least one of a lateral following error, a heading angle following error and a yaw angular velocity following error.
示例性的,根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差的方式可以为:若所述目标轨迹为直线,则根据所述当前车辆的位置、所述目标轨迹的斜率以及所述目标轨迹的截距确定横向跟随误差。根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差的方式还可以为:若所述目标轨迹为直线,则根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差,其中,所述第一目标点为与所述当前车辆距离最近的点,所述第二目标点为与所述当前车辆距离次近的点。根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差的方式还可以为:若所述目标轨迹为直线,则将所述当前车辆的横摆角速度确定为横摆角速度跟随误差。根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差的方式还可以为:若所述目标轨迹为定曲率半径圆弧,则根据所述目标轨迹的圆心、所述目标轨迹的半径和所述当前车辆的位置确定横向跟随误差。根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差的方式还可以为:若所述目标轨迹为定曲率半径圆弧,则根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差,其中,所述第一目标点为与所述当前车辆距离最近的点,所述第二目标点为与所述当前车辆距离次近的点。根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差的方式还可以为:若所述目标轨迹为定曲率半径圆弧,则根据所述当前车辆的纵向速度、所述目标轨迹的半径以及所述当前车辆的横摆角速度确定横摆角速度跟随误差。本申请实施例对此不进行限制。Exemplarily, the method of determining the following error based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle may be: if the target trajectory is a straight line, then based on the position of the current vehicle, The slope of the target trajectory and the intercept of the target trajectory determine the lateral following error. The method of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is a straight line, then based on the heading angle of the current vehicle, the The coordinates of the first target point on the target trajectory and the coordinates of the second target point on the target trajectory determine the heading angle following error, wherein the first target point is the point closest to the current vehicle, and the second The target point is the second closest point to the current vehicle. The way of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is a straight line, determine the yaw angular velocity of the current vehicle as Yaw rate following error. The method of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is an arc with a constant curvature radius, then based on the center of the circle of the target trajectory , the radius of the target trajectory and the position of the current vehicle determine the lateral following error. The method of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is an arc with a constant curvature radius, then based on the heading of the current vehicle The heading angle following error is determined by the angle, the coordinates of the first target point on the target trajectory and the coordinates of the second target point on the target trajectory, where the first target point is the point closest to the current vehicle, The second target point is the second closest point to the current vehicle. The method of determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle may also be: if the target trajectory is an arc with a constant curvature radius, then according to the longitudinal direction of the current vehicle The speed, the radius of the target trajectory and the yaw rate of the current vehicle determine the yaw rate following error. The embodiments of the present application do not limit this.
可选的,获取目标轨迹,包括:Optional, obtain the target trajectory, including:
获取初始轨迹;Get the initial trajectory;
根据所述当前车辆的位置、所述当前车辆的纵向速度以及所述初始轨迹确定目标轨迹。A target trajectory is determined based on the position of the current vehicle, the longitudinal speed of the current vehicle, and the initial trajectory.
所述初始轨迹为预设跟随轨迹,本申请实施例对初始轨迹的获取方式不进行限制。The initial trajectory is a preset following trajectory, and the embodiment of the present application does not limit the acquisition method of the initial trajectory.
示例性的,根据所述当前车辆的位置、所述当前车辆的纵向速度以及所述 初始轨迹确定目标轨迹的方式可以为:获取初始轨迹,根据当前车辆的位置和当前车辆的纵向速度从初始轨迹上选取一段轨迹,确定为目标轨迹。For example, according to the position of the current vehicle, the longitudinal speed of the current vehicle and the The initial trajectory can be used to determine the target trajectory by: obtaining the initial trajectory, selecting a segment of the trajectory from the initial trajectory based on the position of the current vehicle and the longitudinal speed of the current vehicle, and determining it as the target trajectory.
可选的,根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状,包括:Optionally, determining the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory includes:
若所述目标轨迹对应的最大横向偏移大于横向偏移阈值,则确定所述目标轨迹为定曲率半径圆弧;If the maximum lateral offset corresponding to the target trajectory is greater than the lateral offset threshold, the target trajectory is determined to be an arc with a constant curvature radius;
若所述目标轨迹对应的最大横向偏移小于或者等于横向偏移阈值,则确定所述目标轨迹为直线。If the maximum lateral offset corresponding to the target trajectory is less than or equal to the lateral offset threshold, it is determined that the target trajectory is a straight line.
示例性的,若所述目标轨迹对应的最大横向偏移大于横向偏移阈值,则确定所述目标轨迹为定曲率半径圆弧的方式可以为:获取目标轨迹上每个点的横向偏移,比较每个点的横向偏移,得到最大横向偏移,若最大横向偏移大于横向偏移阈值,则确定所述目标轨迹为定曲率半径圆弧。For example, if the maximum lateral offset corresponding to the target trajectory is greater than the lateral offset threshold, the method of determining that the target trajectory is an arc with a constant curvature radius may be: obtaining the lateral offset of each point on the target trajectory, Compare the lateral offset of each point to obtain the maximum lateral offset. If the maximum lateral offset is greater than the lateral offset threshold, it is determined that the target trajectory is an arc with a constant curvature radius.
示例性的,若所述目标轨迹对应的最大横向偏移小于或者等于横向偏移阈值,则确定所述目标轨迹为直线的方式可以为:获取目标轨迹上每个点的横向偏移,比较每个点的横向偏移,得到最大横向偏移,若最大横向偏移小于或者等于横向偏移阈值,则确定所述目标轨迹为直线。For example, if the maximum lateral offset corresponding to the target trajectory is less than or equal to the lateral offset threshold, the method of determining that the target trajectory is a straight line may be: obtaining the lateral offset of each point on the target trajectory, and comparing each point. The maximum lateral offset of the points is obtained. If the maximum lateral offset is less than or equal to the lateral offset threshold, it is determined that the target trajectory is a straight line.
可选的,根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差,包括:Optionally, determining the following error based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle includes:
若所述目标轨迹为直线,则根据所述当前车辆的位置、所述目标轨迹的斜率以及所述目标轨迹的截距确定横向跟随误差;If the target trajectory is a straight line, determine the lateral following error based on the current vehicle position, the slope of the target trajectory, and the intercept of the target trajectory;
若所述目标轨迹为直线,则根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差,其中,所述第一目标点为与所述当前车辆距离最近的点,所述第二目标点为与所述当前车辆距离次近的点;If the target trajectory is a straight line, the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory, where, The first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
若所述目标轨迹为直线,则将所述当前车辆的横摆角速度确定为横摆角速度跟随误差。If the target trajectory is a straight line, the yaw angular velocity of the current vehicle is determined as the yaw angular velocity following error.
示例性的,若所述目标轨迹为直线,则根据所述当前车辆的位置、所述目标轨迹的斜率以及所述目标轨迹的截距确定横向跟随误差的方式可以为:目标轨迹对应的直线方程为y=mx+c,基于如下公式计算横向跟随误差:
For example, if the target trajectory is a straight line, the method of determining the lateral following error based on the current vehicle position, the slope of the target trajectory, and the intercept of the target trajectory may be: the straight line equation corresponding to the target trajectory For y=mx+c, the lateral following error is calculated based on the following formula:
其中,elat为横向跟随误差,m为目标轨迹对应的斜率,c为目标轨迹对应的截距,(Xv,Yv)为当前车辆的位置坐标。Among them, e lat is the lateral following error, m is the slope corresponding to the target trajectory, c is the intercept corresponding to the target trajectory, (X v , Y v ) is the position coordinate of the current vehicle.
示例性的,若所述目标轨迹为直线,则根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差的方式可以为:For example, if the target trajectory is a straight line, the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory. The method can be:
基于如下公式计算得到航向角跟随误差:
θe=θ-θR
The heading angle following error is calculated based on the following formula:
θ e =θ-θ R
其中,θ为车辆此时航向角,θe为航向角跟随误差,θR为期望航向角,可以通过车辆到目标轨迹最近点(Xm,Ym)和次近点(Xk,Yk)求出,例如可以是,基于如下公式计算得到期望航向角:
Among them, θ is the heading angle of the vehicle at this time, θ e is the heading angle following error, and θ R is the expected heading angle. The vehicle can be used to reach the closest point (X m , Y m ) and the second closest point (X k , Y k ) of the target trajectory through the vehicle. ) can be obtained, for example, by calculating the desired heading angle based on the following formula:
示例性的,若所述目标轨迹为直线,则将所述当前车辆的横摆角速度确定为横摆角速度跟随误差的方式可以为:因为直线的曲率半径可以认为无限大,所以期望横摆角速度为0,横摆角速度跟随误差其中,为当前车辆的横摆角速度。For example, if the target trajectory is a straight line, the way to determine the yaw angular velocity of the current vehicle as the yaw angular velocity following error can be: because the curvature radius of the straight line can be considered infinite, the expected yaw angular velocity is 0, yaw angular velocity following error in, is the yaw angular velocity of the current vehicle.
可选的,根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差,包括:Optionally, determining the following error based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle includes:
若所述目标轨迹为定曲率半径圆弧,则根据所述目标轨迹的圆心、所述目标轨迹的半径和所述当前车辆的位置确定横向跟随误差;If the target trajectory is an arc with a constant curvature radius, the lateral following error is determined based on the center of the target trajectory, the radius of the target trajectory and the position of the current vehicle;
若所述目标轨迹为定曲率半径圆弧,则根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差,其中,所述第一目标点为与所述当前车辆距离最近的点,所述第二目标点为与所述当前车辆距离次近的点;If the target trajectory is an arc with a constant curvature radius, the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory. , wherein the first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
若所述目标轨迹为定曲率半径圆弧,则根据所述当前车辆的纵向速度、所述目标轨迹的半径以及所述当前车辆的横摆角速度确定横摆角速度跟随误差。If the target trajectory is an arc with a constant curvature radius, the yaw angular velocity following error is determined based on the longitudinal velocity of the current vehicle, the radius of the target trajectory, and the yaw angular velocity of the current vehicle.
示例性的,若所述目标轨迹为定曲率半径圆弧,则根据所述目标轨迹的圆 心、所述目标轨迹的半径和所述当前车辆的位置确定横向跟随误差的方式可以为:For example, if the target trajectory is an arc with a constant curvature radius, then according to the circular arc of the target trajectory The way to determine the lateral following error based on the center, the radius of the target trajectory and the position of the current vehicle can be:
基于如下公式计算得到横向轨迹误差elat
The lateral trajectory error e lat is calculated based on the following formula:
其中,(Xc,Yc)为所述目标轨迹的圆心坐标,(Xv,Yv)为当前车辆的位置坐标,R为所述目标轨迹的半径。Among them, (X c , Y c ) are the center coordinates of the target trajectory, (X v , Y v ) are the position coordinates of the current vehicle, and R is the radius of the target trajectory.
示例性的,若所述目标轨迹为定曲率半径圆弧,则根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差的方式可以为:基于如下公式计算得到航向角跟随误差:
θe=θ-θR
For example, if the target trajectory is an arc with a constant curvature radius, it is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory. The heading angle following error can be calculated as follows: the heading angle following error is calculated based on the following formula:
θ e =θ-θ R
其中,θ为车辆此时航向角,θe为航向角跟随误差,θR为期望航向角,可以通过车辆到目标轨迹最近点(Xm,Ym)和次近点(Xk,Yk)求出,例如可以是,基于如下公式计算得到期望航向角:
Among them, θ is the heading angle of the vehicle at this time, θ e is the heading angle following error, and θ R is the expected heading angle. The vehicle can be used to reach the closest point (X m , Y m ) and the second closest point (X k , Y k ) of the target trajectory through the vehicle. ) can be obtained, for example, by calculating the desired heading angle based on the following formula:
目标轨迹为定曲率半径圆弧和目标轨迹为直线时的航向角跟随误差的计算方式相同。The heading angle following error is calculated in the same way when the target trajectory is an arc with a constant curvature radius and when the target trajectory is a straight line.
示例性的,若所述目标轨迹为定曲率半径圆弧,则根据所述当前车辆的纵向速度、所述目标轨迹的半径以及所述当前车辆的横摆角速度确定横摆角速度跟随误差的方式可以为:For example, if the target trajectory is an arc with a constant curvature radius, the yaw angular velocity following error may be determined based on the longitudinal velocity of the current vehicle, the radius of the target trajectory, and the yaw angular velocity of the current vehicle. for:
基于如下公式计算横摆角速度跟随误差:
The yaw angular velocity following error is calculated based on the following formula:
其中,为当前车辆的横摆角速度,vx为当前车辆的纵向速度。 in, is the yaw angular velocity of the current vehicle, v x is the longitudinal velocity of the current vehicle.
可选的,还包括:Optional, also includes:
基于如下公式计算得到所述目标轨迹上每个点的横向偏移:
The lateral offset of each point on the target trajectory is calculated based on the following formula:
其中,(Xi,Yi)为所述目标轨迹上的第i个点的坐标,所述(X1,Y1)为所述目标轨迹的起始点坐标,(XN,YN)为所述目标轨迹的终止点坐标,dis为所述目标轨迹上的第i个点的横向偏移。Among them, (X i , Y i ) are the coordinates of the i-th point on the target trajectory, (X 1 , Y 1 ) are the coordinates of the starting point of the target trajectory, (X N , Y N ) are The coordinates of the end point of the target trajectory, dis, are the lateral offset of the i-th point on the target trajectory.
在一个例子中,如图2所示,图2中曲线为目标轨迹,(X1,Y1)和(XN,YN)分别表示目标轨迹的第一个点和最后一个点,基于第一个点和最后一个点的连线,获得一条直线。该直线与X轴正半轴夹角为ψ,目标轨迹上的第i点(Xi,Yi)到直线的距离,定义为目标轨迹上的第i点到直线的横向偏移。从第2点到第i-1个点,可以求出相对应的横向偏移量dis2,…,disi-1,找出其中最大的值dismax,并与阈值disthreshold比较,如果dismax>disthreshold则目标轨迹为定曲率半径圆弧,否则,目标轨迹为直线。In an example, as shown in Figure 2, the curve in Figure 2 is the target trajectory. (X 1 , Y 1 ) and (X N , Y N ) represent the first point and the last point of the target trajectory respectively. Based on the A straight line is obtained by connecting a point to the last point. The angle between this straight line and the positive half -axis of the From the 2nd point to the i-1th point, the corresponding lateral offset dis 2 ,...,dis i-1 can be found, find the largest value dis max , and compare it with the threshold dis threshold . If dis If max > dis threshold , the target trajectory is an arc with a fixed curvature radius, otherwise, the target trajectory is a straight line.
可选的,还包括:Optional, also includes:
基于如下公式计算所述目标轨迹的圆心:

Calculate the center point of the target trajectory based on the following formula:

其中, (Xc,Yc)为所述目标轨迹的圆心坐标,N为所述目 标轨迹上的点的数量,(Xi,Yi)为所述目标轨迹上的第i个点的坐标;in, (X c , Y c ) are the center coordinates of the target trajectory, and N is the target trajectory. The number of points on the target trajectory, (X i , Y i ) is the coordinate of the i-th point on the target trajectory;
基于如下公式计算所述目标轨迹的半径:
Calculate the radius of the target trajectory based on the following formula:
在一个例子中,若目标轨迹为直线,则采用最小二乘法进行轨迹拟合,若目标轨迹为圆弧曲线,则通过凸优化进行轨迹拟合。下面分别对两种拟合方法进行说明:In one example, if the target trajectory is a straight line, the least squares method is used for trajectory fitting. If the target trajectory is an arc curve, the trajectory fitting is performed through convex optimization. The two fitting methods are explained below:
最小二乘法:如图3所示,(X1,Y1)和(XN,YN)分别表示目标轨迹的第一个点和最后一个点,y=mx+c,表示所有轨迹上的点到该直线的距离之和最小的直线,即为拟合后的直线轨迹。第一点到第N点的方程可表示为:
Least squares method: As shown in Figure 3, (X 1 , Y 1 ) and (X N , Y N ) represent the first point and the last point of the target trajectory respectively, y=mx+c, represents all trajectories The straight line with the smallest sum of distances from the point to the straight line is the straight line trajectory after fitting. The equation from the first point to the Nth point can be expressed as:
上述矩阵可表示为:
T=Ax
The above matrix can be expressed as:
T=Ax
为了求出x,对其进行如下变换:
ATT=ATAx
(ATA)-1ATT=x
To find x, transform it as follows:
A T T=A T Ax
(A T A) -1 A T T=x
则可求出对应的直线斜率m和截距c。因为目标轨迹为直线,所以曲率半径为无穷大。Then the corresponding slope m and intercept c of the straight line can be obtained. Because the target trajectory is a straight line, the radius of curvature is infinite.
凸优化拟合:当目标轨迹的形状为圆弧曲线时,采用凸优化方法进行拟合,如图4所示,(X1,Y1),…,(XN,YN)为目标轨迹上的点,图中的“preview section” 为目标轨迹,为了找到一条所有目标轨迹上的点到拟合圆弧轨迹的距离之和最小的圆弧轨迹,引入凸优化拟合方法,即采用该方法,算出相应的曲率半径R和圆心(Xc,Yc),算法如下:Convex optimization fitting: When the shape of the target trajectory is an arc curve, the convex optimization method is used for fitting, as shown in Figure 4, (X 1 , Y 1 ),..., (X N , Y N ) are the target trajectories The point on, the “preview section” in the picture is the target trajectory. In order to find an arc trajectory with the smallest sum of distances from all points on the target trajectory to the fitted arc trajectory, a convex optimization fitting method is introduced. That is, this method is used to calculate the corresponding curvature radius R and circle center ( X c ,Y c ), the algorithm is as follows:
定义轨迹上第i点到拟合圆心(Xc,Yc)的距离平方与拟合半径R平方的差为ei,即:
ei(x)=(Xi-Xc)2+(Yi-Yc)2-R2
Define the difference between the square of the distance from the i-th point on the trajectory to the center of the fitting circle (X c , Y c ) and the square of the fitting radius R as e i , that is:
e i (x) = (X i -X c ) 2 + (Y i -Y c ) 2 -R 2
定义ei>0,即算出的R值偏小偏保守(这样使得向心加速度会计算偏大,进而保证同一速度下不会超过向心加速度阈值)Define e i >0, that is, the calculated R value is too small and conservative (this will cause the centripetal acceleration to be calculated too large, thereby ensuring that the centripetal acceleration threshold will not be exceeded at the same speed)
定义第i点的误差平方,即: Define the square error of point i, that is:
目标轨迹拟合损失函数可定义为:
The target trajectory fitting loss function can be defined as:
为了找出轨迹拟合损失函数极值,引入梯度法,即:


In order to find the extreme value of the trajectory fitting loss function, the gradient method is introduced, namely:


基于上述公式即可求出轨迹拟合圆心(Xc,Yc)和半径R。Based on the above formula, the trajectory fitting circle center (X c , Y c ) and radius R can be obtained.
为了证明该优化方法将找出轨迹拟合函数E(x)最小值,需证明E(x)为凸函数。为了证明该特性,引入如下两个定理: In order to prove that this optimization method will find the minimum value of the trajectory fitting function E(x), it is necessary to prove that E(x) is a convex function. In order to prove this property, the following two theorems are introduced:
1.如果h(x)=f(x)g(x)(缩略表示为h=fg),且满足:
1. If h(x)=f(x)g(x) (abbreviated as h=fg), and satisfy:
2.令H(x)=h1(x)+…+hn(x),H(x)为凸函数,如果h1(x)…hn(x)均为凸函数。2. Let H(x)=h 1 (x)+…+h n (x), H(x) be a convex function, if h 1 (x)…h n (x) are all convex functions.
下面证明上述两个定理:Prove the above two theorems below:
定理1证明:
h=fg
Proof of Theorem 1:
h=fg

h′=f′g+fg′
h″=f″g+fg″+2f′g′
but
h′=f′g+fg′
h″=f″g+fg″+2f′g′
因为f,g均为凸函数,则f″≥0且g″≥0,又因为:f≥0且g≥0,所以f″g≥0且g″f≥0,又知f′与g′符号相同;则f′g′≥0,因此h″=f″g+fg″+2f′g′≥0。可证得,h(x)为凸函数Because f and g are both convex functions, then f″≥0 and g″≥0, and because: f≥0 and g≥0, so f″g≥0 and g″f≥0, and we also know that f′ and g ′ has the same sign; then f′g′≥0, so h″=f″g+fg″+2f′g′≥0. It can be proved that h(x) is a convex function
定理2证明:Proof of Theorem 2:
因为h1(x)…hn(x)均为凸函数,则:h1″(x)…ph″n(x)均大于0,又知H″(x)=h″1(x)+…+h″n(x),则H″(x)≥0。可证得,H(x)为凸函数Because h 1 (x)…h n (x) are all convex functions, then: h 1 ″(x)…ph″ n (x) are all greater than 0, and we also know that H″(x)=h″ 1 (x) +…+h″ n (x), then H″(x)≥0. It can be proved that H(x) is a convex function
证明E(x)为凸函数:Prove that E(x) is a convex function:
第一步:先证明ei(x)为凸函数,The first step: first prove that e i (x) is a convex function,
已知
ei(x)=(Xi-Xc)2+(Yi-Yc)2-R2
x=(Xc,Yc)
A known
e i (x) = (X i -X c ) 2 + (Y i -Y c ) 2 -R 2
x=(X c , Y c )
所以,ei(x)为凸函数。have Therefore, e i (x) is a convex function.
第二步,证明为凸函数,这里引用定理1:
The second step is to prove is a convex function, here we quote Theorem 1:
其中,f,g相等且均为凸函数,由ei(x)定义可知ei(x)≥0,而f′与g′符号相同,所以可证Ei(x)为凸函数。Among them, f and g are equal and both are convex functions. From the definition of e i (x), it can be seen that e i (x) ≥ 0, and f′ and g′ have the same sign, so it can be proved that E i (x) is a convex function.
第三步,证明E(x)为凸函数,这里引用定理2:
The third step is to prove that E(x) is a convex function. Here we quote Theorem 2:
因为Ei(x)为凸函数,则E(x)为凸函数。Because E i (x) is a convex function, then E (x) is a convex function.
因此,可以得出E(x)为凸函数。所以梯度法所求极值即为最小值,下面采用梯度法求解最小值:

Therefore, it can be concluded that E(x) is a convex function. Therefore, the extreme value obtained by the gradient method is the minimum value. The following uses the gradient method to solve the minimum value:

假设R大于0,
Assuming R is greater than 0,
可解的



solvable



因为
because
所以



so



与上面相同,推导公式略:
Same as above, the derivation formula is omitted:
整理上述方程,(Xc,Yc)可由下列矩阵求出:


Arranging the above equations, (X c , Y c ) can be obtained from the following matrix:


其中,




in,




当圆心位置(Xc,Yc)通过上述方程确定后,半径R基于如下公式确定:
When the circle center position (X c , Y c ) is determined by the above equation, the radius R is determined based on the following formula:
自此,轨迹曲率半径R在直线和曲线状态下均完成求解。Since then, the trajectory curvature radius R has been solved in both straight line and curved states.
如图5所示,当前车辆位置(Xv,Yv)到拟合直线的距离为横向轨迹误差,直线方程为y=mx+c,则横向跟随误差elat为:
As shown in Figure 5, the distance from the current vehicle position (X v , Y v ) to the fitted straight line is the lateral trajectory error. The straight line equation is y=mx+c, then the lateral following error e lat is:
直线的航向角跟随误差θe为:
θe=θ-θR
The heading angle following error θ e of the straight line is:
θ e =θ-θ R
其中,θ为车辆此时航向角,θR为期望达到航向角,通过车辆到目标轨迹最近点(X1,Y1)和次近点(X2,Y2)求出,其中,
Among them, θ is the heading angle of the vehicle at this time, θ R is the expected heading angle, which is calculated through the closest point (X 1 , Y 1 ) and the next closest point (X 2 , Y 2 ) of the vehicle to the target trajectory, where,
因为,直线的曲率半径可以认为无限大,所以其期望的横摆角速度为0,横摆角速度跟随误差其中,为车辆此时角速度。Because the radius of curvature of a straight line can be considered infinite, its expected yaw angular velocity is 0, and the yaw angular velocity follows the error in, is the angular velocity of the vehicle at this time.
当轨迹为圆弧时,如图6所示,横向跟随误差elat可表示为:
When the trajectory is an arc, as shown in Figure 6, the lateral following error e lat can be expressed as:
直线的航向角跟随误差θe为:
θe=θ-θR
The heading angle following error θ e of the straight line is:
θ e =θ-θ R
其中,θ为车辆此时航向角,θR为期望达到航向角,可以通过车辆到目标轨迹最近点(X1,Y1)和次近点(X2,Y2)求出。
Among them, θ is the heading angle of the vehicle at this time, and θ R is the expected heading angle, which can be calculated from the closest point (X 1 , Y 1 ) and the second closest point (X 2 , Y 2 ) of the vehicle to the target trajectory.
因为圆弧的曲率半径可以通过轨迹拟合和曲率半径计算模块得出,所以横摆角速度跟随误差为:
Because the radius of curvature of the arc can be obtained through the trajectory fitting and radius of curvature calculation modules, the yaw angular velocity following error is:
其中,为车辆此时角速度,vx为此时车辆的纵向车速。至此,当目标轨迹为直线与圆弧的条件下,圆弧曲率半径、横向跟随误差、航向角跟随误差,横摆角速度跟随误差均已求出。以上多个参数可以传递至下一步的控制模块,为控制系统设计提供重要依据。in, is the angular velocity of the vehicle at this time, v x is the longitudinal speed of the vehicle at this time. At this point, when the target trajectory is a straight line or an arc, the arc curvature radius, lateral following error, heading angle following error, and yaw angular velocity following error have all been calculated. The above multiple parameters can be passed to the next step of the control module, providing an important basis for the design of the control system.
本实施例的技术方案,通过获取目标轨迹和当前车辆的运动参数,其中, 所述当前车辆的运动参数包括:当前车辆位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度;根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状;根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差,以解决在实际的运算之中,并未考虑传感器噪声误差并进行滤波,可能会导致对算力要求不合理的增加,软硬件部署成本增加并且降低计算精度的问题,由于并未依赖加速度或角加速度传感器进行分析,能够降低软硬件部署成本,并且能够对传感器噪声误差进行滤波,以保证在一定噪声条件下,确定跟随误差,为实车嵌入式系统控制器设计提供了重要的参考依据。The technical solution of this embodiment is to obtain the target trajectory and the motion parameters of the current vehicle, where, The motion parameters of the current vehicle include: the current vehicle position, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle; the trajectory shape of the target trajectory is determined according to the coordinates of points on the target trajectory. ; Determine the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle to solve the problem that in the actual calculation, the sensor noise error is not considered and filtered, which may lead to calculation errors. Unreasonable increase in force requirements, increased software and hardware deployment costs, and reduced calculation accuracy. Since it does not rely on acceleration or angular acceleration sensors for analysis, the software and hardware deployment costs can be reduced, and sensor noise errors can be filtered to ensure that Under certain noise conditions, determining the following error provides an important reference for the design of the embedded system controller for real vehicles.
实施例二Embodiment 2
图7为本申请实施例提供的一种跟随误差确定装置的结构示意图。本实施例可适用于跟随误差确定的情况,该装置可采用软件和/或硬件的方式实现,该装置可集成在任何提供跟随误差确定功能的设备中,如图7所示,所述跟随误差确定装置包括:获取模块210、第一确定模块220和第二确定模块230。FIG. 7 is a schematic structural diagram of a following error determination device provided by an embodiment of the present application. This embodiment can be applied to the situation of following error determination. The device can be implemented in the form of software and/or hardware. The device can be integrated in any device that provides the following error determination function. As shown in Figure 7, the following error The determination device includes: an acquisition module 210, a first determination module 220 and a second determination module 230.
获取模块210,设置为获取目标轨迹和当前车辆的运动参数,其中,所述当前车辆的运动参数包括:当前车辆的位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度;The acquisition module 210 is configured to acquire the target trajectory and the motion parameters of the current vehicle, wherein the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle. ;
第一确定模块220,设置为根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状;The first determination module 220 is configured to determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory;
第二确定模块230,设置为根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差。The second determination module 230 is configured to determine the following error according to the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
可选的,所述获取模块210是设置为:Optionally, the acquisition module 210 is set to:
获取初始轨迹;Get the initial trajectory;
根据所述当前车辆的位置、所述当前车辆的纵向速度以及所述初始轨迹确定目标轨迹。A target trajectory is determined based on the position of the current vehicle, the longitudinal speed of the current vehicle, and the initial trajectory.
可选的,所述第一确定模块220是设置为:Optionally, the first determination module 220 is set to:
若所述目标轨迹对应的最大横向偏移大于横向偏移阈值,则确定所述目标轨迹为定曲率半径圆弧;If the maximum lateral offset corresponding to the target trajectory is greater than the lateral offset threshold, the target trajectory is determined to be an arc with a constant curvature radius;
若所述目标轨迹对应的最大横向偏移小于或者等于横向偏移阈值,则确定所述目标轨迹为直线。If the maximum lateral offset corresponding to the target trajectory is less than or equal to the lateral offset threshold, it is determined that the target trajectory is a straight line.
可选的,所述第二确定模块230是设置为: Optionally, the second determination module 230 is set to:
若所述目标轨迹为直线,则根据所述当前车辆的位置、所述目标轨迹的斜率以及所述目标轨迹的截距确定横向跟随误差;If the target trajectory is a straight line, determine the lateral following error based on the current vehicle position, the slope of the target trajectory, and the intercept of the target trajectory;
若所述目标轨迹为直线,则根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差,其中,所述第一目标点为与所述当前车辆距离最近的点,所述第二目标点为与所述当前车辆距离次近的点;If the target trajectory is a straight line, the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory, where, The first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
若所述目标轨迹为直线,则将所述当前车辆的横摆角速度确定为横摆角速度跟随误差。If the target trajectory is a straight line, the yaw angular velocity of the current vehicle is determined as the yaw angular velocity following error.
可选的,所述第二确定模块230是设置为:Optionally, the second determination module 230 is set to:
若所述目标轨迹为定曲率半径圆弧,则根据所述目标轨迹的圆心、所述目标轨迹的半径和所述当前车辆的位置确定横向跟随误差;If the target trajectory is an arc with a constant curvature radius, the lateral following error is determined based on the center of the target trajectory, the radius of the target trajectory and the position of the current vehicle;
若所述目标轨迹为定曲率半径圆弧,则根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差,其中,所述第一目标点为与所述当前车辆距离最近的点,所述第二目标点为与所述当前车辆距离次近的点;If the target trajectory is an arc with a constant curvature radius, the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory. , wherein the first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
若所述目标轨迹为定曲率半径圆弧,则根据所述当前车辆的纵向速度、所述目标轨迹的半径以及所述当前车辆的横摆角速度确定横摆角速度跟随误差。If the target trajectory is an arc with a constant curvature radius, the yaw angular velocity following error is determined based on the longitudinal velocity of the current vehicle, the radius of the target trajectory, and the yaw angular velocity of the current vehicle.
可选的,所述第一确定模块220是设置为:Optionally, the first determination module 220 is set to:
基于如下公式计算得到所述目标轨迹上每个点的横向偏移:
The lateral offset of each point on the target trajectory is calculated based on the following formula:
其中,(Xi,Yi)为所述目标轨迹上的第i个点的坐标,所述(X1,Y1)为所述目标轨迹的起始点坐标,(XN,YN)为所述目标轨迹的终止点坐标,dis为所述目标轨迹上的第i个点的横向偏移。Among them, (X i , Y i ) are the coordinates of the i-th point on the target trajectory, (X 1 , Y 1 ) are the coordinates of the starting point of the target trajectory, (X N , Y N ) are The coordinates of the end point of the target trajectory, dis, are the lateral offset of the i-th point on the target trajectory.
可选的,所述第二确定模块230是设置为:Optionally, the second determination module 230 is set to:
基于如下公式计算所述目标轨迹的圆心:

Calculate the center point of the target trajectory based on the following formula:

其中, (Xc,Yc)为所述目标轨迹的圆心坐标,N为所述目标轨迹上的点的数量,(Xi,Yi)为所述目标轨迹上的第i个点的坐标;in, (X c , Y c ) are the coordinates of the center of the target trajectory, N is the number of points on the target trajectory, (X i , Y i ) are the coordinates of the i-th point on the target trajectory;
基于如下公式计算所述目标轨迹的半径:
Calculate the radius of the target trajectory based on the following formula:
上述产品可执行本申请任意实施例所提供的方法,具备执行方法相应的功能模块和效果。The above-mentioned products can execute the methods provided by any embodiment of this application, and have corresponding functional modules and effects for executing the methods.
本实施例的技术方案,通过获取目标轨迹和当前车辆的运动参数,其中,所述当前车辆的运动参数包括:当前车辆的位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度;根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状;根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差,以解决在实际的运算之中,并未考虑传感器噪声误差并进行滤波,可能会导致对算力要求不合理的增加,软硬件部署成本增加并且降低计算精度的问题,由于并未依赖加速度或角加速度传感器进行分析,能够降低软硬件部署成本,并且能够对传感器噪声误差进行滤波,以保证在一定噪声条件下,确定跟随误差,为实车嵌入式系统控制器设计提供了重要的参考依据。The technical solution of this embodiment is to obtain the target trajectory and the motion parameters of the current vehicle, where the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the lateral direction of the current vehicle. Swing angular velocity; determine the trajectory shape of the target trajectory according to the coordinates of the points on the target trajectory; determine the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle to solve the problem of In the actual calculation, the sensor noise error is not considered and filtered, which may lead to an unreasonable increase in computing power requirements, increased software and hardware deployment costs, and reduced calculation accuracy. Since it does not rely on acceleration or angular acceleration sensors, Analysis can reduce the cost of software and hardware deployment, and can filter sensor noise errors to ensure that the following error is determined under certain noise conditions, which provides an important reference for the design of real vehicle embedded system controllers.
实施例三Embodiment 3
图8示出了可以用来实施本申请的实施例的电子设备10的结构示意图。电子设备10旨在表示多种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备10还可以表示多种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备(如头盔、眼镜、手表等)和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本申请的实现。FIG. 8 shows a schematic structural diagram of an electronic device 10 that can be used to implement embodiments of the present application. Electronic device 10 is intended to represent many forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic device 10 may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (eg, helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are examples only and are not intended to limit the implementation of the present application as described and/or claimed herein.
如图8所示,电子设备10包括至少一个处理器11,以及与至少一个处理器11通信连接的存储器,如只读存储器(Read-Only Memory,ROM)12、随机访 问存储器(Random Access Memory,RAM)13等,其中,存储器存储有可被至少一个处理器执行的计算机程序,处理器11可以根据存储在ROM12中的计算机程序或者从存储单元18加载到RAM13中的计算机程序,来执行多种适当的动作和处理。在RAM 13中,还可存储电子设备10操作所需的多种程序和数据。处理器11、ROM 12以及RAM 13通过总线14彼此相连。输入/输出(Input/Output,I/O)接口15也连接至总线14。As shown in Figure 8, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a read-only memory (Read-Only Memory, ROM) 12, a random access memory Random Access Memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor. The processor 11 can load the computer program into the RAM 13 from the storage unit 18 according to the computer program stored in the ROM 12. Computer programs to perform various appropriate actions and processes. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via the bus 14. An input/output (I/O) interface 15 is also connected to the bus 14 .
电子设备10中的多个部件连接至I/O接口15,包括:输入单元16,例如键盘、鼠标等;输出单元17,例如多种类型的显示器、扬声器等;存储单元18,例如磁盘、光盘等;以及通信单元19,例如网卡、调制解调器、无线通信收发机等。通信单元19允许电子设备10通过诸如因特网的计算机网络和/或多种电信网络与其他设备交换信息/数据。Multiple components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc. etc.; and communication unit 19, such as network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices through a computer network such as the Internet and/or various telecommunications networks.
处理器11可以是多种具有处理和计算能力的通用和/或专用处理组件。处理器11的一些示例包括中央处理单元(Central Processing Unit,CPU)、图形处理单元(Graphics Processing Unit,GPU)、多种专用的人工智能(Artificial Intelligence,AI)计算芯片、多种运行机器学习模型算法的处理器、数字信号处理器(Digital Signal Processor,DSP)、以及任何适当的处理器、控制器、微控制器等。处理器11执行上文所描述的多个方法和处理,例如跟随误差确定方法。Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of the processor 11 include a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a variety of dedicated artificial intelligence (Artificial Intelligence, AI) computing chips, a variety of running machine learning models Algorithm processor, digital signal processor (Digital Signal Processor, DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 performs a plurality of methods and processes described above, such as following error determination methods.
在一些实施例中,跟随误差确定方法可被实现为计算机程序,其被有形地包含于计算机可读存储介质,例如存储单元18。在一些实施例中,计算机程序的部分或者全部可以经由ROM 12和/或通信单元19而被载入和/或安装到电子设备10上。当计算机程序加载到RAM 13并由处理器11执行时,可以执行上文描述的跟随误差确定方法的一个或多个步骤。备选地,在其他实施例中,处理器11可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行跟随误差确定方法:In some embodiments, the following error determination method may be implemented as a computer program, which is tangibly embodied in a computer-readable storage medium, such as the storage unit 18 . In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the following error determination method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the following error determination method in any other suitable manner (eg, by means of firmware):
获取目标轨迹和当前车辆的运动参数,其中,所述当前车辆的运动参数包括:当前车辆的位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度;Obtain the target trajectory and the motion parameters of the current vehicle, wherein the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle;
根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状;Determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory;
根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差。The following error is determined based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
本文中以上描述的系统和技术的多种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品 (Application Specific Standard Parts,ASSP)、芯片上系统的系统(System on Chip,SOC)、负载可编程逻辑设备(Complex Programmable Logic Device,CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些多种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described above may be implemented in digital electronic circuit systems, integrated circuit systems, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Dedicated standard products (Application Specific Standard Parts, ASSP), System on Chip (SOC), Complex Programmable Logic Device (CPLD), computer hardware, firmware, software, and/or combinations thereof accomplish. These various embodiments may include implementation in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor The processor, which may be a special purpose or general purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device. An output device.
用于实施本申请的方法的计算机程序可以采用一个或多个编程语言的任何组合来编写。这些计算机程序可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器,使得计算机程序当由处理器执行时使流程图和/或框图中所规定的功能/操作被实施。计算机程序可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Computer programs for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that the computer program, when executed by the processor, causes the functions/operations specified in the flowcharts and/or block diagrams to be implemented. A computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
在本申请的上下文中,计算机可读存储介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的计算机程序。计算机可读存储介质可以包括电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。备选地,计算机可读存储介质可以是机器可读信号介质。机器可读存储介质包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、RAM、ROM、可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)、快闪存储器、光纤、便捷式紧凑盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。存储介质可以是非暂态(non-transitory)存储介质。In the context of this application, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. Computer-readable storage media may include electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium may be a machine-readable signal medium. Machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard drives, RAM, ROM, Erasable Programmable Read-Only Memory (EPROM), flash memory, fiber optics , portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above. The storage medium may be a non-transitory storage medium.
为了提供与用户的交互,可以在电子设备上实施此处描述的系统和技术,该电子设备具有:用于向用户显示信息的显示装置(例如,阴极射线管(Cathode Ray Tube,CRT)或者液晶显示器(Liquid Crystal Display,LCD)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给电子设备。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having a display device (e.g., a cathode ray tube (CRT) or liquid crystal) for displaying information to the user. A display (Liquid Crystal Display, LCD monitor); and a keyboard and pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and may be provided in any form, including Acoustic input, voice input or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或 者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(Local Area Network,LAN)、广域网(Wide Area Network,WAN)、区块链网络和互联网。The systems and techniques described herein may be implemented on a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or or a computing system that includes front-end components (e.g., a user's computer having a graphical user interface or web browser through which the user can interact with implementations of the systems and techniques described herein), or A computing system that includes any combination of such backend components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communications network). Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), blockchain network, and the Internet.
计算系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,又称为云计算服务器或云主机,是云计算服务体系中的一项主机产品,以解决了传统物理主机与虚拟专用服务器(Virtual Private Server,VPS)服务中,存在的管理难度大,业务扩展性弱的缺陷。Computing systems may include clients and servers. Clients and servers are generally remote from each other and typically interact over a communications network. The relationship of client and server is created by computer programs running on corresponding computers and having a client-server relationship with each other. The server can be a cloud server, also known as cloud computing server or cloud host. It is a host product in the cloud computing service system to solve the problems that exist in traditional physical host and virtual private server (VPS) services. It has the disadvantages of difficult management and weak business scalability.
可以使用上面所示的多种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的多个步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本申请的技术方案所期望的结果,本文在此不进行限制。 Steps can be reordered, added, or removed using various forms of the process shown above. For example, multiple steps described in this application can be executed in parallel, sequentially, or in different orders. As long as the desired results of the technical solution of this application can be achieved, there is no limitation here.

Claims (10)

  1. 一种跟随误差确定方法,包括:A method for determining following error, including:
    获取目标轨迹和当前车辆的运动参数,其中,所述当前车辆的运动参数包括:当前车辆的位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度;Obtain the target trajectory and the motion parameters of the current vehicle, wherein the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle;
    根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状;Determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory;
    根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差。The following error is determined based on the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
  2. 根据权利要求1所述的方法,其中,所述获取目标轨迹,包括:The method according to claim 1, wherein said obtaining the target trajectory includes:
    获取初始轨迹;Get the initial trajectory;
    根据所述当前车辆的位置、所述当前车辆的纵向速度以及所述初始轨迹确定所述目标轨迹。The target trajectory is determined based on the position of the current vehicle, the longitudinal speed of the current vehicle, and the initial trajectory.
  3. 根据权利要求1所述的方法,其中,所述根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状,包括:The method according to claim 1, wherein determining the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory includes:
    在所述目标轨迹对应的最大横向偏移大于横向偏移阈值的情况下,确定所述目标轨迹为定曲率半径圆弧;When the maximum lateral offset corresponding to the target trajectory is greater than the lateral offset threshold, determine that the target trajectory is an arc with a constant curvature radius;
    在所述目标轨迹对应的最大横向偏移小于或者等于所述横向偏移阈值的情况下,确定所述目标轨迹为直线。When the maximum lateral offset corresponding to the target trajectory is less than or equal to the lateral offset threshold, it is determined that the target trajectory is a straight line.
  4. 根据权利要求3所述的方法,其中,所述根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差,包括:The method according to claim 3, wherein determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle includes:
    在所述目标轨迹为直线的情况下,根据所述当前车辆的位置、所述目标轨迹的斜率以及所述目标轨迹的截距确定横向跟随误差;In the case where the target trajectory is a straight line, the lateral following error is determined based on the position of the current vehicle, the slope of the target trajectory, and the intercept of the target trajectory;
    在所述目标轨迹为直线的情况下,根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差,其中,所述第一目标点为与所述当前车辆距离最近的点,所述第二目标点为与所述当前车辆距离次近的点;When the target trajectory is a straight line, the heading angle following error is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory, where , the first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
    在所述目标轨迹为直线的情况下,将所述当前车辆的横摆角速度确定为横摆角速度跟随误差。When the target trajectory is a straight line, the yaw angular velocity of the current vehicle is determined as the yaw angular velocity following error.
  5. 根据权利要求3所述的方法,其中,所述根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差,包括:The method according to claim 3, wherein determining the following error according to the trajectory shape of the target trajectory, the target trajectory and the motion parameters of the current vehicle includes:
    在所述目标轨迹为定曲率半径圆弧的情况下,根据所述目标轨迹的圆心、所述目标轨迹的半径和所述当前车辆的位置确定横向跟随误差; In the case where the target trajectory is an arc with a constant curvature radius, the lateral following error is determined based on the center of the circle of the target trajectory, the radius of the target trajectory and the position of the current vehicle;
    在所述目标轨迹为定曲率半径圆弧的情况下,根据所述当前车辆的航向角度、所述目标轨迹上第一目标点的坐标以及所述目标轨迹上第二目标点的坐标确定航向角跟随误差,其中,所述第一目标点为与所述当前车辆距离最近的点,所述第二目标点为与所述当前车辆距离次近的点;When the target trajectory is an arc with a constant curvature radius, the heading angle is determined based on the heading angle of the current vehicle, the coordinates of the first target point on the target trajectory, and the coordinates of the second target point on the target trajectory. Following error, wherein the first target point is the point closest to the current vehicle, and the second target point is the second closest point to the current vehicle;
    在所述目标轨迹为定曲率半径圆弧的情况下,根据所述当前车辆的纵向速度、所述目标轨迹的半径以及所述当前车辆的横摆角速度确定横摆角速度跟随误差。In the case where the target trajectory is an arc with a constant curvature radius, the yaw angular velocity following error is determined based on the longitudinal velocity of the current vehicle, the radius of the target trajectory, and the yaw angular velocity of the current vehicle.
  6. 根据权利要求3所述的方法,还包括:The method of claim 3, further comprising:
    基于如下公式计算得到所述目标轨迹上每个点的横向偏移:
    The lateral offset of each point on the target trajectory is calculated based on the following formula:
    其中,(Xi,Yi)为所述目标轨迹上的第i个点的坐标,所述(X1,Y1)为所述目标轨迹的起始点坐标,(XN,YN)为所述目标轨迹的终止点坐标,dis为所述目标轨迹上的第i个点的横向偏移。Among them, (X i , Y i ) are the coordinates of the i-th point on the target trajectory, (X 1 , Y 1 ) are the coordinates of the starting point of the target trajectory, (X N , Y N ) are The coordinates of the end point of the target trajectory, dis, are the lateral offset of the i-th point on the target trajectory.
  7. 根据权利要求5所述的方法,还包括:The method of claim 5, further comprising:
    基于如下公式计算所述目标轨迹的圆心:

    Calculate the center point of the target trajectory based on the following formula:

    其中, (Xc,Yc)为所述目标轨迹的圆心坐标,N为所述目标轨迹上的点的数量,(Xi,Yi)为所述目标轨迹上的第i个点的坐标;in, (X c , Y c ) are the coordinates of the center of the target trajectory, N is the number of points on the target trajectory, (X i , Y i ) are the coordinates of the i-th point on the target trajectory;
    基于如下公式计算所述目标轨迹的半径:
    Calculate the radius of the target trajectory based on the following formula:
  8. 一种跟随误差确定装置,包括:A following error determination device, including:
    获取模块,设置为获取目标轨迹和当前车辆的运动参数,其中,所述当前车辆的运动参数包括:当前车辆的位置、当前车辆的纵向速度、当前车辆的航向角度以及当前车辆的横摆角速度;The acquisition module is configured to acquire the target trajectory and the motion parameters of the current vehicle, wherein the motion parameters of the current vehicle include: the position of the current vehicle, the longitudinal speed of the current vehicle, the heading angle of the current vehicle, and the yaw angular velocity of the current vehicle;
    第一确定模块,设置为根据所述目标轨迹上的点的坐标确定所述目标轨迹的轨迹形状;A first determination module configured to determine the trajectory shape of the target trajectory according to the coordinates of points on the target trajectory;
    第二确定模块,设置为根据所述目标轨迹的轨迹形状、所述目标轨迹以及所述当前车辆的运动参数确定跟随误差。The second determination module is configured to determine the following error according to the trajectory shape of the target trajectory, the target trajectory, and the motion parameters of the current vehicle.
  9. 一种电子设备,包括:An electronic device including:
    至少一个处理器;以及at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-7中任一项所述的跟随误差确定方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor, so that the at least one processor can execute any one of claims 1-7 Described following error determination method.
  10. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现权利要求1-7中任一项所述的跟随误差确定方法。 A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the following error determination method according to any one of claims 1-7 when executed by a processor. .
PCT/CN2023/094434 2022-05-16 2023-05-16 Following error determination method and apparatus, device, and storage medium WO2023221963A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210526910.8 2022-05-16
CN202210526910.8A CN114715196A (en) 2022-05-16 2022-05-16 Following error determination method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023221963A1 true WO2023221963A1 (en) 2023-11-23

Family

ID=82230929

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/094434 WO2023221963A1 (en) 2022-05-16 2023-05-16 Following error determination method and apparatus, device, and storage medium

Country Status (2)

Country Link
CN (1) CN114715196A (en)
WO (1) WO2023221963A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114715196A (en) * 2022-05-16 2022-07-08 中国第一汽车股份有限公司 Following error determination method, device, equipment and storage medium
CN116026349B (en) * 2022-12-30 2024-03-19 吉咖智能机器人有限公司 Method, apparatus, electronic device and medium for vehicle distance measurement
CN116238545B (en) * 2023-05-12 2023-10-27 禾多科技(北京)有限公司 Automatic driving track deviation detection method and detection system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005119386A1 (en) * 2004-05-17 2005-12-15 Csi Wireless Inc. Satellite based vehicle guidance control in straight and contour modes
KR100836375B1 (en) * 2007-02-05 2008-06-09 현대자동차주식회사 Parking track obeying method for minimizing of obeying error
US20210403083A1 (en) * 2020-06-30 2021-12-30 Beijing Baidu Netcom Science And Technology Co., Ltd. Reverse trajectory tracking method and apparatus, electronic device and storage medium
CN114222987A (en) * 2019-08-23 2022-03-22 沃尔沃卡车集团 Method for quantifying vehicle path following performance
CN114715196A (en) * 2022-05-16 2022-07-08 中国第一汽车股份有限公司 Following error determination method, device, equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005119386A1 (en) * 2004-05-17 2005-12-15 Csi Wireless Inc. Satellite based vehicle guidance control in straight and contour modes
KR100836375B1 (en) * 2007-02-05 2008-06-09 현대자동차주식회사 Parking track obeying method for minimizing of obeying error
CN114222987A (en) * 2019-08-23 2022-03-22 沃尔沃卡车集团 Method for quantifying vehicle path following performance
US20210403083A1 (en) * 2020-06-30 2021-12-30 Beijing Baidu Netcom Science And Technology Co., Ltd. Reverse trajectory tracking method and apparatus, electronic device and storage medium
CN114715196A (en) * 2022-05-16 2022-07-08 中国第一汽车股份有限公司 Following error determination method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114715196A (en) 2022-07-08

Similar Documents

Publication Publication Date Title
WO2023221963A1 (en) Following error determination method and apparatus, device, and storage medium
US20220019817A1 (en) Vehicle locating method, electronic device and storage medium
US20210272306A1 (en) Method for training image depth estimation model and method for processing image depth information
JP7273129B2 (en) Lane detection method, device, electronic device, storage medium and vehicle
WO2022247203A1 (en) Method and apparatus for controlling autonomous vehicle, device, and storage medium
WO2024051661A1 (en) Pavement unevenness classification and identification method and apparatus, vehicle, and storage medium
CN114387319B (en) Point cloud registration method, device, equipment and storage medium
WO2023273344A1 (en) Vehicle line crossing recognition method and apparatus, electronic device, and storage medium
WO2022257614A1 (en) Training method and apparatus for object detection model, and image detection method and apparatus
EP4020387A2 (en) Target tracking method and device, and electronic apparatus
EP4123594A2 (en) Object detection method and apparatus, computer-readable storage medium, and computer program product
US20230139187A1 (en) Method and apparatus for determining information, electronic device and storage medium
KR20220056832A (en) Method and apparatus for pushing information, electronic device , computer readable storage medium and computer program
CN114663529A (en) External parameter determining method and device, electronic equipment and storage medium
WO2023241556A1 (en) Parking control method and apparatus, and device and storage medium
CN111833391B (en) Image depth information estimation method and device
WO2023231833A1 (en) Creep control method and apparatus, electronic device and storage medium
WO2023221415A1 (en) Backbone network generation method and apparatus, device and storage medium
US20230036294A1 (en) Method for processing image, electronic device and storage medium
US20220351495A1 (en) Method for matching image feature point, electronic device and storage medium
CN113762397B (en) Method, equipment, medium and product for training detection model and updating high-precision map
CN114882587A (en) Method, apparatus, electronic device, and medium for generating countermeasure sample
CN113778078A (en) Positioning information generation method and device, electronic equipment and computer readable medium
CN112683216B (en) Method and device for generating vehicle length information, road side equipment and cloud control platform
WO2024007569A1 (en) Dead reckoning method and apparatus, device, and medium

Legal Events

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

Ref document number: 23806915

Country of ref document: EP

Kind code of ref document: A1