A simulation test method based on vehicle position and state

By establishing the target simulation vehicle in the simulation environment and dynamically configuring cloud control instructions, the problem of low efficiency in unmanned mining truck algorithm testing is solved, efficient and safe simulation testing is achieved, the cost is reduced and the reliability and reliability of the test are improved. Comprehensive coverage.

CN118605225BActive Publication Date: 2024-10-29LEIKE ZHITU (TAIAN) AUTOMOTIVE TECH CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411081653.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-10-29
Estimated Expiration
2044-08-08

AI Technical Summary

Technical Problem

The algorithm testing of driverless mining trucks relies on actual vehicle and mine field testing, which has the problems of low testing efficiency, high cost, great safety hazards, and difficulty in comprehensively covering various working conditions.

Method used

Using a simulation test method based on vehicle position and status, the target simulation vehicle is established in the simulation environment, its driving parameters are calculated, and the cloud control instructions are dynamically configured based on the real-time position and posture to achieve efficient testing of the unmanned mining truck algorithm.

Benefits of technology

Comprehensively simulate the motion state and dynamic characteristics of the mining truck in the simulation environment, which improves the reliability and efficiency of the test, reduces costs and safety risks, and can fully verify the feasibility and robustness of the algorithm without relying on actual data. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118605225B_ABST
    Figure CN118605225B_ABST
Patent Text Reader

Abstract

The present application discloses a simulation test method based on vehicle position and state, which relates to the field of intelligent driving, including: establishing a target simulation vehicle, which is an Ackerman steering vehicle or an articulated vehicle; calculating the driving parameters of the target simulation vehicle according to the vehicle configuration parameters and the parameters in the control instructions; subscribing to the posture topic and speed topic of the target simulation vehicle to obtain the position, posture and speed of the target simulation vehicle; configuring the preset cloud control instructions based on the position, posture and speed of the target simulation vehicle; when the current position, posture and speed of the target simulation vehicle meet the preset conditions, the simulation system sends the configured cloud control instructions to the target simulation vehicle; and obtaining the simulation test results according to the vehicle configuration parameters and the parameters in the control instructions. In view of the fact that the algorithm test of unmanned mining trucks in the prior art mainly relies on real vehicles and mine field tests, the present application improves the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent driving technology, and in particular to a simulation test method based on vehicle position and status. Background Art

[0002] With the development of automation and intelligence in the mining industry, unmanned mining trucks have gradually become a key technology to improve mine production efficiency and safety. Unmanned mining trucks can achieve 24-hour uninterrupted operation by automatically planning driving routes and controlling vehicle movement, reducing the labor intensity and safety risks of drivers and improving the efficiency and reliability of ore transportation.

[0003] However, the practical application of unmanned mining trucks cannot be separated from high-precision and highly adaptable planning and control algorithms. These algorithms need to generate appropriate steering, acceleration, braking and other control instructions based on the real-time position, posture and speed of the mining truck, and guide the mining truck to travel along the predetermined path. To ensure the reliability and safety of the algorithm, it is necessary to repeatedly test and verify it in actual mining trucks and mining environments. However, there are many limitations to real-vehicle testing: on the one hand, the mining site environment is harsh, and there are safety hazards such as collisions and overturning; on the other hand, real-vehicle testing is costly and inefficient, and is constrained by the mine production plan, making it difficult to fully cover various working conditions. Therefore, how to improve the efficiency of unmanned mining truck algorithm testing while ensuring the comprehensiveness and safety of the test has become an urgent problem to be solved.

[0004] In the related art, for example, Chinese patent document CN117031979A provides a planning algorithm testing method and system based on a simulation environment. The scheme may include: a simulation configuration module obtains actual traffic condition information; based on the actual traffic condition information, a simulation scene corresponding to the actual traffic condition information is obtained; a cloud control planning module obtains vehicle information of a target simulated vehicle in the simulation scene; obtains the first traffic participant information of a first traffic participant within a preset range of the target simulated vehicle in the simulation scene; based on the trajectory planning algorithm to be tested, a planning control instruction for the target simulated vehicle is generated according to the vehicle information and the first traffic participant information; the simulation module controls the target simulated vehicle to travel according to the planning control instruction to obtain a simulation test result. However, the scheme needs to obtain the actual traffic condition information first, and then generate the corresponding simulation scene according to the actual traffic condition information. This method that relies on actual data will limit the generation efficiency and flexibility of the simulation scene. When the amount of actual traffic condition data is large or the update frequency is high, the generation process of the simulation scene will become a bottleneck in the test process, reducing the overall test efficiency. Summary of the invention

[0005] In view of the fact that the algorithm testing of unmanned mining trucks in the prior art mainly relies on real vehicles and mine site tests, which has the problem of low testing efficiency, the present application provides a simulation testing method based on vehicle position and status, which can improve the testing efficiency by testing the planning and control algorithms of unmanned mining trucks in a simulation environment.

[0006] Technical solution, the purpose of this application is achieved through the following technical solution.

[0007] The present application provides a simulation test method based on vehicle position and state, including: establishing a target simulation vehicle, the target simulation vehicle being an Ackerman steering vehicle or an articulated vehicle; calculating the driving parameters of the target simulation vehicle according to the vehicle configuration parameters and the parameters in the control instructions; the driving parameters include speed, acceleration, yaw angular velocity, heading angle and position; subscribing to the position and speed topics of the target simulation vehicle to obtain the position, posture and speed of the target simulation vehicle; configuring preset cloud control instructions based on the position, posture and speed of the target simulation vehicle; when the current position, posture and speed of the target simulation vehicle meet the preset conditions, the simulation system sends the configured cloud control instructions to the target simulation vehicle; and obtaining the simulation test results according to the vehicle configuration parameters and the parameters in the control instructions.

[0008] Among them, in the Robot Operating System (ROS), a Topic is an asynchronous communication mechanism for transmitting data between nodes. A pose topic is a specific type of topic used to publish the position and pose information of a robot or vehicle. Typically, a pose topic contains the following data: Position: Usually represented by three-dimensional coordinates (x, y, z), which specifies the position of the robot or vehicle in a reference coordinate system. Orientation: Usually represented by a quaternion or Euler Angles, which specifies the rotation direction of the robot or vehicle relative to the reference coordinate system.

[0009] Common formats of pose topics include geometry_msgs / Pose, nav_msgs / Odometry, etc. By subscribing to the pose topic, you can obtain the real-time position and attitude information of the robot or vehicle for positioning, navigation, control, etc. Velocity topic is another common topic type in ROS, which is used to publish the velocity information of the robot or vehicle. Velocity topic usually contains the following data: Linear Velocity: Usually represented by a three-dimensional vector (vx, vy, vz), which specifies the translation velocity of the robot or vehicle in the reference coordinate system. Angular Velocity: Usually represented by a three-dimensional vector (ωx, ωy, ωz), which specifies the rotation velocity of the robot or vehicle relative to the reference coordinate system. Common formats of velocity topics include geometry_msgs / Twist, nav_msgs / Odometry, etc. By subscribing to the velocity topic, you can obtain the real-time velocity information of the robot or vehicle for motion control, velocity estimation, collision detection, etc.

[0010] Ackerman steering is a common steering mechanism for four-wheel vehicles, widely used in cars, trucks and other vehicles. The characteristic of Ackerman steering is that when the vehicle turns, the turning angle of the inner front wheel is greater than that of the outer front wheel, so that the turning center of the four wheels is located at the same point, thereby reducing the lateral wear of the tires and improving steering stability. An articulated vehicle is a special vehicle composed of two or more rigid bodies connected by a hinge point, which is commonly used in long-distance transportation, construction engineering, agricultural machinery and other fields. Typical representatives of articulated vehicles include semi-trailers, full trailers, articulated buses, etc.

[0011] Further, when the target simulated vehicle is an Ackerman steering vehicle, the vehicle configuration parameters and the parameters in the control command include: the parameters in the control command include the accelerator pedal opening, the brake pedal opening, the expected acceleration, the gear position and the front wheel angle; the vehicle configuration parameters include the maximum driving force, the maximum braking force, the vehicle mass, the ground slope, the rolling resistance coefficient, the vehicle inherent resistance coefficient and the vehicle wheelbase;

[0012] Furthermore, when the target simulated vehicle is an articulated vehicle, the vehicle configuration parameters and the parameters in the control instructions include: the parameters in the control instructions include the accelerator pedal opening, the brake pedal opening, the expected acceleration, the gear position and the front wheel angle; the vehicle configuration parameters include the maximum driving force, the maximum braking force, the vehicle mass, the ground slope, the rolling resistance coefficient, the vehicle's inherent resistance coefficient and the distance from the front and rear axles to the hinge point.

[0013] Furthermore, when the target simulated vehicle is an Ackerman steering vehicle, the driving parameters of the target simulated vehicle are calculated, including: calculating the longitudinal acceleration of the target simulated vehicle according to the accelerator pedal opening, brake pedal opening, expected acceleration and gear position in the control command, and the maximum driving force, maximum braking force and vehicle mass in the vehicle configuration parameters. ; Calculate the yaw rate of the target simulated vehicle based on the front wheel steering angle in the control command and the vehicle wheelbase in the vehicle configuration parameters ; Based on the calculated longitudinal acceleration and the previous speed , calculate the current speed v; according to the vehicle heading angle at the previous moment and the calculated vehicle yaw rate , calculate the vehicle heading angle at the current moment ; Based on the vehicle's position at the last moment , the calculated current vehicle speed v and current vehicle heading angle , calculate the current position .

[0014] Furthermore, the yaw rate of the Ackerman steering vehicle is calculated. , through the following formula: ,in, represents the current vehicle heading angle, L represents the vehicle wheelbase, and v represents the current vehicle speed.

[0015] Furthermore, when the target simulated vehicle is an articulated vehicle, the driving parameters of the target simulated vehicle are calculated, including: calculating the longitudinal acceleration of the target simulated vehicle according to the accelerator pedal opening, brake pedal opening, expected acceleration and gear position in the control instruction, and the maximum driving force, maximum braking force and vehicle mass in the vehicle configuration parameters. ; According to the front wheel angle in the control command and the distance from the front and rear axles to the hinge point in the vehicle configuration parameters, the hinge angle and the front yaw rate of the target simulation vehicle are calculated, and the front yaw rate is used as the vehicle's yaw rate ; According to the vehicle's yaw rate and articulation angle, calculate the front heading angle and the rear heading angle, and use the front heading angle as the vehicle heading angle; according to the calculated longitudinal acceleration and the previous speed , calculate the current speed v; according to the vehicle heading angle at the previous moment and the calculated vehicle yaw rate , calculate the current heading angle of the vehicle ; Based on the vehicle's position at the last moment , the calculated current vehicle speed v and current vehicle heading angle , calculate the current position .

[0016] Furthermore, the longitudinal acceleration of the articulated vehicle is calculated , through the following formula: ,in, Indicates the wheel driving force corresponding to the accelerator pedal opening; Indicates the wheel braking force corresponding to the brake pedal opening; It represents the longitudinal resistance of the vehicle, including rolling resistance, air resistance, inherent resistance and slope resistance; m represents the mass of the vehicle.

[0017] Furthermore, the yaw rate of the articulated vehicle is calculated , through the following formula:

[0018] ,in, and are the distances from the front and rear axles to the hinge point respectively; Indicates the relative rotation angle between the front and rear carriages, i.e. the articulation angle; represents the articulation angle deflection speed; the vehicle speed v is calculated by the following formula: ,in, is the simulation time step;

[0019] The vehicle's current heading angle Calculated by the following formula: ,in, is the vehicle's current heading angle; the vehicle's current position Calculated by the following formula: .

[0020] Furthermore, based on the position, posture and speed of the target simulated vehicle, preset cloud control instructions are configured, including: obtaining the current position of the target simulated vehicle, and judging whether the target simulated vehicle is located at the preset position according to the preset expected coordinates, heading angle and corresponding error range of the target simulated vehicle; obtaining the current state of the target simulated vehicle, the current state includes whether the vehicle is in motion, and the time interval since the last receipt of the cloud control instruction, and judging whether the target simulated vehicle is in the preset state according to the preset vehicle motion state condition and the minimum time interval condition; if the target simulated vehicle satisfies the preset position and preset state at the same time, the target simulated vehicle is configured to receive the cloud control instruction.

[0021] Among them, judging whether the target simulated vehicle satisfies the preset position and preset state at the same time: judging whether the target simulated vehicle is at the preset position; judging whether the target simulated vehicle is in the preset state; if the target simulated vehicle satisfies both the preset position and the preset state, then determining that the target simulated vehicle satisfies both the preset position and the preset state; if the target simulated vehicle satisfies both the preset position and the preset state, then extracting the control parameters in the cloud control instruction, wherein the cloud control instruction includes: speed limit control: according to the underground road conditions and safety requirements, issuing a suitable maximum speed limit; emergency braking: when a dangerous situation (such as obstacles, personnel) is detected, immediately issuing a braking instruction; track guidance: according to the vehicle position and the target track, issuing a steering control instruction to realize the track guidance function.

[0022] Further, the method for determining when the target simulated vehicle is at a preset position includes: obtaining the current position coordinates of the target simulated vehicle in the simulation coordinate system; and heading angle ; Calculate the current position coordinates Expected coordinates of the simulated vehicle with the preset target The distance difference between and angle difference ; Determine distance difference Is it within the preset coordinate error range? Inside: ; Calculate the current heading angle The expected heading angle of the simulated vehicle relative to the preset target The angle difference between , judging the angle difference Is it within the preset heading angle error range? Within, that is: If the distance difference In the expected coordinate error range Inside, and the angle difference In the expected heading angle error range If the target simulated vehicle is within the preset position, the target simulated vehicle is judged to be located at the preset position; wherein the distance difference is calculated by the Euclidean distance formula: .

[0023] Angle difference Calculated according to the heading angle: ,in The expected coordinates reference direction.

[0024] The method for determining when the target simulated vehicle is in a preset state includes: obtaining the current speed of the target simulated vehicle in the simulation coordinate system; ; According to the preset speed threshold Determine whether the target simulated vehicle is in motion: If , then it is determined that the target simulated vehicle is in motion; if , then the target simulated vehicle is determined to be in a stationary state; obtain the current time , and calculate the current time and the last time the cloud control command was received The time interval between : ; According to the preset minimum time interval threshold Determine the time interval Whether the conditions are met: If , then the time interval condition is met; if , then the time interval condition is not met; if the target simulated vehicle is in the preset motion state and the time interval If the minimum time interval condition is met, it is determined that the target simulated vehicle is in a preset state.

[0025] Preferably, the current velocity vector of the target simulated vehicle in the simulation coordinate system is obtained , including speed and speed direction ; According to the preset speed threshold and speed direction threshold , determine whether the target simulated vehicle is in motion: if and exist If the target simulated vehicle is within the range, it is determined that the target simulated vehicle is in motion; otherwise, it is determined that the target simulated vehicle is stationary; obtain the current acceleration of the target simulated vehicle , wheel speed and drive motor current , according to the preset acceleration threshold , wheel speed threshold and current threshold , further determine the motion state of the target simulation vehicle: If or or , then the target simulated vehicle is judged to be in motion; otherwise, the previous motion state judgment result is maintained; obtain the current moment , and calculate the time interval Δt between the current time and the last time t_last the cloud control command was received: ; According to the type of cloud control instruction, select the corresponding minimum time interval threshold : If it is an emergency braking command, select a smaller ; If it is a cruise control command, select a larger ; If it is other types of instructions, select the conventional ; Determine whether the time interval Δt meets the conditions: If , then the time interval condition is met; if , then it is determined that the time interval condition is not met; if the target simulated vehicle is in a preset motion state and the time interval Δt meets the minimum time interval condition, then it is determined that the target simulated vehicle is in a preset state.

[0026] Compared with the prior art, the advantages of this application are:

[0027] By building a simulated mining truck model and calculating its driving parameters, the motion state and dynamic characteristics of the mining truck can be fully simulated in a simulation environment, providing a realistic digital twin for the algorithm testing of unmanned mining trucks. The driving parameters are generated by combining the physical parameters of the mining truck and the control instructions, ensuring the consistency between the simulated mining truck and the actual mining truck, and improving the reliability of the simulation test.

[0028] By obtaining the position, posture and speed information of the simulated mining truck in real time and judging whether it meets the preset conditions, the control instructions can be dynamically configured according to the real-time status of the mining truck to realize the adaptability test of the unmanned mining truck algorithm. By presetting different position and status conditions, the feasibility and robustness of the algorithm under various working conditions can be fully verified, and the test task can be completed efficiently without the need for a real vehicle and a mine site.

[0029] By sending pre-configured control instructions to simulated mining trucks that meet preset conditions and comparing their actual driving trajectories with expected trajectories, the control accuracy and path tracking capabilities of the unmanned mining truck algorithm can be quantitatively evaluated. Automatically generating control instructions and analyzing trajectory deviations in software in a simulation environment greatly improves the efficiency and comprehensiveness of algorithm testing and reduces the difficulty and workload of manual operations.

[0030] The simulation test method of this application is applicable to two types of mining trucks: articulated and rigid frames. By providing corresponding driving parameter calculation methods for different chassis types, the scope of application of algorithm testing can be expanded and the universality of test results can be improved. By docking with the physical models of different mining trucks, a set of test systems can be used to evaluate the unmanned driving algorithms of multiple mining trucks, which has strong versatility and adaptability.

[0031] The simulation test method provided in this application can be put into use in the early stage of research and development. By simulating mining trucks and mines through the software environment, the test cost is significantly reduced, the test safety is improved, and the algorithm iteration speed is accelerated. At the same time, the test process is traceable and reproducible, providing rich data support for algorithm optimization. Compared with the traditional real vehicle testing method, it greatly improves the test efficiency and algorithm performance of unmanned mining trucks. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The present application will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:

[0033] Figure 1 is an exemplary flow chart of a simulation test method based on vehicle position and state according to some embodiments of this specification;

[0034] Figure 2 is an Ackerman steering vehicle kinematic model according to some embodiments of the present application;

[0035] Figure 3 It is a kinematic model of an articulated vehicle according to some embodiments of the present application;

[0036] Figure 4 It is a schematic diagram of controlling the steering of an articulated truck by the left and right cylinders of the articulated truck according to some embodiments of the present application. DETAILED DESCRIPTION

[0037] The method and system provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0038] Figure 1 It is an exemplary flow chart of a simulation test method based on vehicle position and state shown in some embodiments of this specification, realizing a target vehicle simulation model, including an Ackerman vehicle and an articulated vehicle. Figure 2 Vehicle kinematic model for Ackerman steering. Figure 3 It is the kinematic model of the articulated truck. Figure 4The left and right cylinders of an articulated vehicle control the steering of the articulated vehicle. For the case where the target simulation vehicle is an Ackerman vehicle, the simulation model first calculates the driving force and braking force of the vehicle according to the parameters such as the accelerator pedal opening, the brake pedal opening, the expected acceleration, and the gear position in the control command. Specifically, by querying the mapping table of the accelerator pedal opening, the gear position and the engine torque, the engine output torque is obtained; then the driving force at the wheel is calculated in combination with the gearbox transmission ratio and the final reducer transmission ratio. Similarly, by querying the mapping table of the brake pedal opening and the brake pressure, the braking torque is obtained, and then the braking force at the wheel is calculated. Then, the simulation model calculates the front wheel angle according to the left and right cylinder control quantities. Specifically, by querying the mapping table of the cylinder displacement and the front wheel angle, the real-time angle of the left and right front wheels is obtained. Next, the simulation model calculates the longitudinal acceleration of the vehicle in combination with the configuration parameters such as the maximum driving force, the maximum braking force, the vehicle mass, the ground slope, the rolling resistance coefficient, and the vehicle inherent resistance coefficient. Among them, the maximum driving force and the maximum braking force are used to constrain the acceleration of the vehicle; the vehicle mass is used to calculate the vertical load on the wheels; the ground slope is used to calculate the additional resistance of the slope to the vehicle; the rolling resistance coefficient and the vehicle's inherent resistance coefficient are used to calculate the driving resistance of the vehicle. By solving the longitudinal dynamics equation of the vehicle, the longitudinal acceleration of the vehicle can be obtained. Then, the simulation model combines parameters such as the vehicle wheelbase and the front wheel angle to calculate the vehicle's yaw rate.

[0039] Specifically, by solving the simplified vehicle lateral dynamics equation, the rotational angular velocity of the vehicle around the vertical axis, that is, the yaw rate, can be obtained. Finally, the simulation model integrates the longitudinal acceleration and yaw rate, and combines the initial conditions to obtain the vehicle's speed, heading angle, and position. Among them, the speed is the speed of the vehicle's center of mass in the vehicle coordinate system; the heading angle is the angle between the vehicle's longitudinal axis and the X-axis of the global coordinate system; the position is the coordinate of the vehicle's center of mass in the global coordinate system. At this point, the simulation model of the Ackerman car can output the speed, acceleration, yaw rate, heading angle, and position of the target vehicle, realizing the dynamic simulation of the Ackerman car.

[0040] When the target simulation vehicle is an articulated vehicle, the calculation process of the simulation model is similar to that of the Ackerman vehicle, but the structural characteristics of the articulated vehicle need to be considered. First, the calculation method of the driving force and braking force of the articulated vehicle is the same as that of the Ackerman vehicle. The engine torque and braking torque are obtained by looking up the table through the parameters such as the accelerator pedal opening, the brake pedal opening, and the gear position. Then, the transmission and constraint calculations are performed to obtain the driving force and braking force at the wheel. Then, the simulation model calculates the articulation angle of the articulated vehicle according to the control amount of the left and right cylinders. Specifically, by querying the mapping table of the cylinder displacement and the articulation angle, the relative turning angle of the front and rear frames of the articulated vehicle is obtained. Next, the simulation model calculates the longitudinal acceleration of the articulated vehicle by combining the configuration parameters such as the maximum driving force, the maximum braking force, the vehicle mass, the ground slope, the rolling resistance coefficient, and the vehicle inherent resistance coefficient. Unlike the Ackerman vehicle, the front and rear frames of the articulated vehicle are subjected to different vertical loads and need to be calculated separately. By solving the longitudinal dynamic equation of the articulated vehicle, the longitudinal acceleration of the articulated vehicle can be obtained. Furthermore, the simulation model calculates the yaw rate of the articulated vehicle by combining parameters such as the distance from the front and rear axles to the hinge point and the hinge angle.

[0041] Compared with the Ackerman vehicle, the lateral dynamic equation of the articulated vehicle is more complicated, and the interaction forces and moments of the front and rear frames need to be considered. By solving the lateral dynamic equation of the articulated vehicle, the rotational angular velocity of the articulated vehicle around the vertical axis, that is, the yaw rate, can be obtained. Finally, similar to the Ackerman vehicle, the simulation model integrates the longitudinal acceleration and yaw rate, and combines the initial conditions to obtain the speed, heading angle and position of the articulated vehicle. It should be noted that the heading angle of the articulated vehicle is the angle between the longitudinal axis of the front frame and the X-axis of the global coordinate system; the position of the articulated vehicle is the coordinate of the center of mass of the front frame in the global coordinate system. At this point, the simulation model of the articulated vehicle can output the speed, acceleration, yaw rate, heading angle and position of the target vehicle, realizing the dynamic simulation of the articulated vehicle.

[0042] Subscribe to the position and speed information of the target simulated vehicle. In the simulation environment, each target simulated vehicle will publish its own position topic and speed topic at a certain frequency. The position topic contains the position (coordinates) and posture (head heading angle) information of the vehicle, and the speed topic contains the speed information of the vehicle. Specifically, the position information is given in the form of (x, y) coordinates, indicating the position of the center of mass of the vehicle in the global coordinate system; the head heading angle θ represents the angle between the longitudinal axis of the vehicle and the X axis of the global coordinate system, expressed in radians; the speed v represents the movement speed of the center of mass of the vehicle in the vehicle coordinate system, which is a scalar. The simulation test system obtains the position, posture and speed information of the vehicle in real time by subscribing to the position topic and speed topic of the target simulated vehicle. Specifically, the system first establishes a communication connection with the target simulated vehicle, and then sends a subscription request to the target simulated vehicle at a fixed frequency (such as 100Hz) to request to subscribe to the position topic and speed topic. After receiving the subscription request, the target simulated vehicle sends the position and speed information to the system at the set publishing frequency (such as 50Hz). After receiving the information, the system can update the position, posture and speed of the target simulated vehicle in real time.

[0043] Calculate the driving parameters of the Ackerman steering vehicle. For the case where the target simulation vehicle is an Ackerman steering vehicle, on the basis of obtaining the vehicle posture and speed information, it is also necessary to calculate the vehicle's driving parameters, including longitudinal acceleration, yaw rate, vehicle speed and heading angle, according to the control instructions and vehicle configuration parameters. First, the longitudinal acceleration a_x of the Ackerman steering vehicle is calculated according to the accelerator pedal opening, brake pedal opening, expected acceleration and gear position in the control instructions, and the maximum driving force, maximum braking force and vehicle mass in the vehicle configuration parameters. Specifically, the system first queries the engine torque mapping table according to the accelerator pedal opening and gear position to obtain the engine output torque T_e; then, according to the brake pedal opening, the brake pressure mapping table is queried to obtain the braking torque T_b. Then, the system constrains the engine torque and braking torque according to the maximum driving force F_max and the maximum braking force B_max to obtain the driving force F_d and braking force F_b at the wheel. Finally, the system calculates the longitudinal acceleration a_x based on the expected acceleration a_des and the vehicle mass m, with the formula: a_x=(F_d-F_b) / m. If a_x exceeds the maximum acceleration or maximum deceleration limit, the limit value is taken. Secondly, the yaw rate ω_z of the Ackerman steering vehicle is calculated based on the front wheel steering angle δ in the control command and the vehicle wheelbase L in the vehicle configuration parameters. Specifically, the system first determines the steering direction of the vehicle based on the sign of the front wheel steering angle δ; then calculates the yaw rate ω_z based on the absolute value of the front wheel steering angle δ and the vehicle wheelbase L, with the formula: ω_z=v*tan(δ) / L, where v is the current speed of the vehicle in m / s; δ is the front wheel steering angle in radians; and L is the vehicle wheelbase in m. It should be noted that the above formula assumes that the left and right front wheel steering angles are equal, which is suitable for situations with a large turning radius.

[0044] If you need to consider the situation where the left and right front wheel steering angles are not equal, you can use a more accurate Ackerman steering geometry model. Then, according to the calculated longitudinal acceleration a_x and the vehicle speed v_last at the previous moment, calculate the vehicle speed v at the current moment. The formula is: v=v_last+a_x*Δt, where Δt is the time step of the simulation system, in seconds. Next, according to the vehicle heading angle θ_last at the previous moment and the calculated vehicle yaw rate ω_z, calculate the vehicle heading angle θ at the current moment. The formula is: θ=θ_last+ω_z*Δt, finally, according to the vehicle position (x_last, y_last) at the previous moment, the calculated current vehicle speed v and the current vehicle heading angle θ, calculate the current position (x, y). The formula is: x=x_last+v*cos(θ)*Δt, y=y_last+v*sin(θ)*Δt, so far, the driving parameters of the Ackerman steering vehicle have been calculated. The system can use the calculated parameters such as longitudinal acceleration, yaw rate, vehicle speed, heading angle and position as the state output of the simulated vehicle for subsequent testing and evaluation.

[0045] When the target simulation vehicle is an articulated vehicle, it is necessary to calculate the driving parameters of the articulated vehicle, including longitudinal acceleration, articulation angle, yaw rate, vehicle speed, heading angle and position, according to the control instructions and vehicle configuration parameters. To calculate the longitudinal acceleration of the articulated vehicle, first, the longitudinal acceleration a_x of the articulated vehicle is calculated according to the accelerator pedal opening, brake pedal opening, expected acceleration and gear position in the control instructions, and the maximum driving force, maximum braking force and vehicle mass in the vehicle configuration parameters. Specifically, the system first queries the engine torque mapping table according to the accelerator pedal opening and gear position to obtain the engine output torque T_e; then, according to the brake pedal opening, the brake pressure mapping table is queried to obtain the braking torque T_b. Then, the system constrains the engine torque and braking torque according to the maximum driving force F_max and the maximum braking force B_max to obtain the driving force F_throttle and braking force F_brake at the wheel.

[0046] Next, the system calculates the longitudinal resistance F_resist of the articulated vehicle, including rolling resistance, air resistance, inherent resistance and slope resistance. Among them, rolling resistance is related to vehicle mass, tire rolling resistance coefficient and road slope; air resistance is related to vehicle frontal area, air resistance coefficient and vehicle speed; inherent resistance is related to vehicle mass and inherent resistance coefficient; slope resistance is related to vehicle mass and road slope. Finally, the system calculates the longitudinal acceleration a_x based on the driving force F_throttle, braking force F_brake, longitudinal resistance F_resist and vehicle mass m. The formula is: a_x= (F_throttle-F_brake-F_resist) / m. If a_x exceeds the maximum acceleration or maximum deceleration limit, the limit value is taken.

[0047] Calculate the articulation angle and yaw rate of the articulated vehicle. Calculate the articulation angle of the articulated vehicle based on the left and right cylinder control values ​​in the control instructions and the distance from the front and rear axles to the articulation point in the vehicle configuration parameters. Specifically, the system first queries the mapping table of cylinder displacement and articulation angle according to the control amount of the left and right cylinders to obtain the articulation angle. Then, the system calculates the hinge angle , the distances from the front and rear axles to the hinge point l_f and l_r, and the vehicle speed v, calculate the yaw rate ω_z_head of the front of the articulated vehicle. The formula is: ω_z_head=v*sin( ) / (l_f+l_r*cos( )), where v is the vehicle speed in m / s; is the articulation angle in radians; l_f and l_r are the distances from the front and rear axles to the articulation point in meters. The system uses the yaw rate ω_z_head of the vehicle head as the yaw rate ω_z of the articulated vehicle.

[0048] Calculate the heading angle of the articulated vehicle according to the vehicle speed v and articulation angle and yaw angular velocity ω_z, calculate the heading angle θ_head and the heading angle θ_tail of the articulated vehicle. The formula is: θ_head=atan2(ω_z*(l_f+l_r*cos( )), v), θ_tail=θ_head- , where atan2 is a two-parameter inverse tangent function used to calculate the heading angle; v is the vehicle speed; ω_z is the yaw rate; l_f and l_r are the distances from the front and rear axles to the hinge point, respectively; The system uses the vehicle head heading angle θ_head as the heading angle θ of the articulated vehicle.

[0049] Calculate the speed of the articulated vehicle. Calculate the current speed v based on the calculated longitudinal acceleration a_x and the previous speed v_last. The formula is: v=v_last+a_x*Δt, where Δt is the time step of the simulation system, in seconds. Calculate the position of the articulated vehicle. Calculate the current position (x, y) based on the position of the articulated vehicle at the previous moment (x_last, y_last), the calculated current speed v and the current vehicle head heading angle θ_head. The formula is: x=x_last+v*cos(θ_head)*Δt, y=y_last+v*sin(θ_head)*Δt. At this point, the driving parameters of the articulated vehicle are calculated. The system can use the calculated longitudinal acceleration, articulation angle, yaw angular velocity, vehicle speed, heading angle and position as the state output of the simulated vehicle for subsequent testing and evaluation.

[0050] Based on the position, posture and speed of the target simulated vehicle, the preset cloud control instructions are configured, which can be divided into the following steps: Determine whether the target simulated vehicle is at the preset position. First, obtain the current position coordinates (x1, y1) and heading angle θ1 of the target simulated vehicle in the simulation coordinate system. Then, calculate the distance difference Δd and angle difference Δθ between the current position coordinates and the expected coordinates (x0, y0) of the preset target simulated vehicle. The distance difference Δd is calculated using the Euclidean distance formula: Δd=√((x1-x0)^2+(y1-y0)^2), and the angle difference Δθ is calculated based on the heading angle: Δ =arctan((y1-y0) / (x1-x0))- 0, where 0 is the reference direction of the expected coordinate (x0, y0). Next, it is determined whether the distance difference Δd is within the preset coordinate error range ε_d, that is: |Δd|≤ε_d, and at the same time, it is determined whether the angle difference Δθ is within the preset heading angle error range ε_θ, that is: |Δθ|≤ε_θ. If the distance difference Δd is within the expected coordinate error range ε_d, and the angle difference Δθ is within the expected heading angle error range ε_θ, then it is determined that the target simulated vehicle is located at the preset position.

[0051] To determine whether the target simulated vehicle is in a preset state, first, obtain the current speed v_cur of the target simulated vehicle in the simulation coordinate system. Then, determine whether the target simulated vehicle is in a moving state according to the preset speed threshold v_thres: if v_cur ≥ v_thres, then determine that the target simulated vehicle is in a moving state; if v_cur

Claims

1. A simulation test method based on vehicle position and state, comprising: Establishing a target simulation vehicle, where the target simulation vehicle is an Ackerman steering vehicle or an articulated vehicle; Calculate the driving parameters of the target simulated vehicle according to the vehicle configuration parameters and the parameters in the control command; the driving parameters include speed, acceleration, yaw rate, heading angle and position; Subscribe to the position and speed topics of the target simulated vehicle to obtain the position, posture and speed of the target simulated vehicle; Configure preset cloud control instructions based on the position, posture and speed of the target simulated vehicle; When the current position, posture and speed of the target simulated vehicle meet the preset conditions, the simulation system sends the configured cloud control instructions to the target simulated vehicle; According to the vehicle configuration parameters and the parameters in the control instructions, the simulation test results are obtained; Configure preset cloud control instructions based on the position, posture and speed of the target simulated vehicle, including: Obtain the current position of the target simulated vehicle, and determine whether the target simulated vehicle is located at a preset position based on the preset expected coordinates, heading angle, and corresponding error range of the target simulated vehicle; Obtain the current state of the target simulated vehicle, which includes whether the vehicle is in motion and the time interval since the last time the cloud control command was received, and determine whether the target simulated vehicle is in a preset state based on the preset vehicle motion state condition and the minimum time interval condition; If the target simulated vehicle satisfies both the preset position and the preset state, the target simulated vehicle is configured to receive the cloud control command; The method for determining when the target simulated vehicle is at a preset position includes: Obtain the current position coordinates (x, y) and heading angle θ of the target simulated vehicle in the simulation coordinate system; Calculate the distance difference Δd and angle difference Δθ between the current position coordinates (x, y) and the expected coordinates (x0, y0) of the preset target simulated vehicle; Determine whether the distance difference Δd is within the preset coordinate error range ε d Within: |Δd|≤ε d ; Calculate the angle difference Δθ between the current heading angle θ and the expected heading angle θ0 of the preset target simulation vehicle, and determine whether the angle difference Δθ is within the preset heading angle error range ε θ In, that is: |Δθ|≤ε θ ; If the distance difference Δd is within the expected coordinate error range ε d and the angle difference Δθ is within the expected heading angle error range ε θ If the target simulated vehicle is within the preset position, it is determined that the target simulated vehicle is located at the preset position; Among them, the distance difference Δd is calculated by the Euclidean distance formula: The angle difference Δθ is calculated based on the heading angle: Where θ0 is the reference direction of the expected coordinates (x0, y0).

2. The simulation test method based on vehicle position and state according to claim 1, characterized in that: When the target simulation vehicle is an Ackerman steering vehicle, the vehicle configuration parameters and the parameters in the control command include: The parameters in the control command include the accelerator pedal opening, the brake pedal opening, the desired acceleration, the gear position and the front wheel angle; The vehicle configuration parameters include maximum driving force, maximum braking force, vehicle mass, ground slope, rolling resistance coefficient, vehicle inherent resistance coefficient and vehicle wheelbase.

3. The simulation test method based on vehicle position and state according to claim 2, characterized in that: When the target simulated vehicle is an articulated vehicle, the vehicle configuration parameters and the parameters in the control instructions include: The parameters in the control command include the accelerator pedal opening, the brake pedal opening, the desired acceleration, the gear position and the front wheel angle; Vehicle configuration parameters include maximum driving force, maximum braking force, vehicle mass, ground slope, rolling resistance coefficient, vehicle inherent resistance coefficient and the distance from the front and rear axles to the hinge point.

4. The simulation test method based on vehicle position and state according to claim 3, characterized in that: When the target simulation vehicle is an Ackerman steering vehicle, the driving parameters of the target simulation vehicle are calculated, including: According to the accelerator pedal opening, brake pedal opening, expected acceleration and gear position in the control command, as well as the maximum driving force, maximum braking force and vehicle mass in the vehicle configuration parameters, the longitudinal acceleration a of the target simulation vehicle is calculated. x ; According to the front wheel steering angle in the control command and the vehicle wheelbase in the vehicle configuration parameters, the yaw angular velocity ω of the target simulation vehicle is calculated z ; According to the calculated longitudinal acceleration a x and the vehicle speed v at the previous moment last , calculate the vehicle speed v at the current moment; According to the vehicle heading angle θ at the last moment last and the calculated vehicle yaw rate ω z , calculate the vehicle heading angle θ at the current moment; According to the vehicle's position at the last moment (x last ,y last ), calculate the current vehicle speed v and the current vehicle heading angle θ, and calculate the current position (x, y); The vehicle heading angle θ is the angle between the longitudinal axis of the vehicle and the X-axis of the global coordinate system, expressed in radians.

5. The simulation test method based on vehicle position and state according to claim 4, characterized in that: Calculate the yaw rate ω of an Ackerman steered vehicle z , through the following formula: Among them, θ represents the current vehicle heading angle, L represents the vehicle wheelbase, and v represents the current vehicle speed.

6. The simulation test method based on vehicle position and state according to claim 3, characterized in that: When the target simulated vehicle is an articulated vehicle, the driving parameters of the target simulated vehicle are calculated, including: According to the accelerator pedal opening, brake pedal opening, expected acceleration and gear position in the control command, as well as the maximum driving force, maximum braking force and vehicle mass in the vehicle configuration parameters, the longitudinal acceleration a of the target simulation vehicle is calculated. x ; According to the front wheel angle in the control command and the distance from the front and rear axles to the hinge point in the vehicle configuration parameters, the hinge angle and the front yaw rate of the target simulation vehicle are calculated, and the front yaw rate is used as the vehicle's yaw rate ω z ; According to the vehicle's yaw rate ω z and the articulation angle, calculate the vehicle head heading angle and the vehicle tail heading angle, and use the vehicle head heading angle as the vehicle heading angle; According to the calculated longitudinal acceleration a x and the vehicle speed v at the previous moment last , calculate the vehicle speed v at the current moment; According to the vehicle heading angle θ at the last moment last and the calculated vehicle yaw rate ω z , calculate the vehicle heading angle θ at the current moment; According to the vehicle's position at the last moment (x last ,y last ), calculate the current vehicle speed v and the current vehicle heading angle θ, and calculate the current position (x, y).

7. The simulation test method based on vehicle position and state according to claim 6, characterized in that: Calculate the longitudinal acceleration a of the articulated vehicle x , through the following formula: Among them, F throttle Indicates the wheel driving force corresponding to the accelerator pedal opening; F brake Indicates the wheel braking force corresponding to the brake pedal opening; F resist It represents the longitudinal resistance of the vehicle, including rolling resistance, air resistance, inherent resistance and slope resistance; m represents the mass of the vehicle.

8. The simulation test method based on vehicle position and state according to claim 6, characterized in that: Calculate the yaw rate ω of the articulated vehicle z , through the following formula: Among them, l f and l r are the distances from the front and rear axles to the hinge point respectively; γ k Represents the relative rotation angle between the front and rear compartments, i.e. the articulation angle; ω γ represents the hinge angle deflection speed; The vehicle speed v is calculated using the following formula: in=in last +a x ×Δt Where Δt is the simulation time step; The vehicle's current heading angle θ is calculated using the following formula: θ=θ last +oh z ×Δt Among them, θ is the current heading angle of the vehicle; The vehicle's current position (x, y) is calculated using the following formula: x=x last +v×cosθ×Δt y=y last +v×sinθ×Δt.

Citation Information

Patent Citations

  • Simulation environment-based planning algorithm test method and system

    CN117031979A

  • Strip mine multi-marshalling cooperative intelligent scheduling method and system based on parallel simulation

    CN117787621A

  • A platform-independent unified model for simulating a road vehicle

    EP4372598A1