Ramp driving method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of vehicles, in particular to a ramp driving method, a ramp driving device, electronic equipment and a storage medium.
Background
At present, with the increase of vehicles, the number of drivers with new hands is also rapidly increased, and various accidents are frequently easy to happen due to the fact that the drivers with new hands have little driving experience and are not familiar with the vehicle conditions. Particularly, when the vehicle drives to a slope, the slope is steep, and the problems of vehicle rollover, vehicle sideslip during braking, vehicle rear-end collision caused by long braking distance and the like are easily caused if the vehicle speed is too high. At present, a driver controls the driving speed of a vehicle on a slope through experience, but a great potential safety hazard exists for some novice drivers.
Disclosure of Invention
In view of this, the embodiment of the present invention provides a method for driving a slope, so as to solve the problem that the safe driving speed cannot be controlled by some drivers, especially novice drivers, on the slope at present.
According to a first aspect, an embodiment of the present invention provides a hill-level driving method, including the following steps:
when the next road section where the vehicle runs is a ramp, obtaining safe driving information of the next road section according to the attribute information of the next road section and the corresponding relation between the preset road section attribute information and the safe driving information;
obtaining the habitual driving information of the current driver in the next road section according to the attribute information of the next road section and the preset corresponding relation between the road section attribute information of the current driver and the habitual driving information;
and when the habitual driving information does not accord with the safe driving information, generating and sending a first prompt message.
According to the slope driving method provided by the embodiment 1 of the invention, when the next road section where the vehicle runs is a slope, the safe driving information and the habitual driving information are respectively obtained according to the attribute information of the next road section, and when the habitual driving information does not accord with the safe driving information, the driver can be prompted, so that the safety problem that the driver only controls the driving speed of the vehicle on the slope by experience is solved.
With reference to the first aspect, in a first embodiment of the first aspect, the hill driving method further includes:
acquiring current driving information of a vehicle;
judging whether the current driving information accords with the safe driving information;
and when the current driving information does not accord with the safe driving information, generating and sending a second prompt message.
With reference to the first aspect or the first embodiment of the first aspect, in a second embodiment of the first aspect, the hill driving method further includes:
acquiring real-time road condition information, and determining road condition information of the next road section according to the real-time road condition information;
and determining the corresponding relation between the road section attribute information corresponding to the road condition information of the next road section and the safe driving information or/and the corresponding relation between the road section attribute information of the current driver and the habitual driving information according to the road condition information of the next road section.
With reference to the first aspect or the first embodiment of the first aspect, in a third embodiment of the first aspect,
the method for constructing the corresponding relation between the road section attribute information and the safe driving information comprises the following steps:
respectively acquiring driving information of different drivers on different attribute road sections;
carrying out data cleaning on the driving information of different drivers in the same attribute road section by utilizing Gaussian distribution, and learning the residual data after cleaning to obtain the safe driving information of the attribute road section;
and traversing all attributes of the road section to obtain the corresponding relation between the road section attribute information and the safe driving information.
With reference to the first aspect or the first implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the method for constructing the corresponding relationship between the road segment attribute information of the current driver and the habitual driving information includes:
respectively acquiring the habitual driving information of the current driver on different attribute road sections;
and constructing a corresponding relation between the road section attribute information of the current driver and the habitual driving information according to the habitual driving information of the current driver on different attribute road sections.
With reference to the first aspect or the first embodiment of the first aspect, in a fifth embodiment of the first aspect, the hill driving method further includes:
obtaining map information and a current road section where the vehicle runs, and obtaining a next road section where the vehicle runs and attribute information of the next road section according to the map information and the current road section;
and judging whether the next road section is a ramp or not according to the attribute information of the next road section.
With reference to the first aspect or the first implementation manner of the first aspect, in a sixth implementation manner of the first aspect, the attribute information of the road segment includes a gradient of the road segment and/or friction information of the road segment.
According to a second aspect, an embodiment of the present invention provides a hill-level driving device, including:
the system comprises a first processing module, a second processing module and a third processing module, wherein the first processing module is used for obtaining safe driving information of a next road section according to attribute information of the next road section and a corresponding relation between preset road section attribute information and the safe driving information when a next road section where a vehicle runs is a ramp;
the second processing module is used for obtaining the habitual driving information of the current driver in the next road section according to the attribute information of the next road section and the preset corresponding relation between the road section attribute information of the current driver and the habitual driving information;
and the prompt module is used for generating and sending a first prompt message when the habitual driving information does not accord with the safe driving information.
According to a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, where the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the hill driving method according to the first aspect or any one of the implementation manners of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing a computer to execute the method for driving a slope as described in the first aspect or any one of the implementation manners of the first aspect.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:
fig. 1 is a schematic flow chart of a method of driving a slope in embodiment 1 of the present invention;
fig. 2 is a schematic flow chart of a method of driving a slope in embodiment 2 of the present invention;
fig. 3 is a schematic structural view of a hill-level driving apparatus in embodiment 3 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1
Embodiment 1 of the present invention provides a hill driving method, and fig. 1 is a schematic flow chart of the hill driving method in embodiment 1 of the present invention. As shown in fig. 1, the hill-level driving method according to embodiment 1 of the present invention includes the steps of:
s101: and when the next road section where the vehicle runs is a ramp, obtaining the safe driving information of the next road section according to the attribute information of the next road section and the corresponding relation between the preset road section attribute information and the safe driving information.
In particular, the next route section is understood to be a route section that is within a certain distance in front of the vehicle.
In embodiment 1 of the present invention, the attribute information of the link includes one or more of the following items: grade information of the road section, gradient information of the road section, speed limit information of the road section and friction information of the road section.
As a specific embodiment, the method for constructing the correspondence between the link attribute information and the safe driving information may adopt the following manner: respectively acquiring driving information of different drivers on different attribute road sections; carrying out data cleaning on the driving information of different drivers in the same attribute road section by utilizing Gaussian distribution, and learning the residual data after cleaning to obtain the safe driving information of the attribute road section; and traversing all attributes of the road section to obtain the corresponding relation between the road section attribute information and the safe driving information. Specifically, when data cleaning is performed using gaussian distribution, data cleaning may be performed using the 2 σ principle of gaussian distribution, and data distributed outside the (μ - σ 2, μ +2 σ) interval may be eliminated.
In embodiment 1 of the present invention, the correspondence relationship between the link attribute information and the safe driving information may constitute a first driving model.
Taking the vehicle speed of the same road section as an example, the safe vehicle speed accounts for the vast majority of data statistics, and is distributed in the middle zone of the vehicle speed interval, and the too fast and the too slow vehicle speeds have risks of causing traffic accidents. The inventor also finds that the driving information is in a gaussian distribution for the road sections with the same attribute information, and the safe driving information follows the 2 sigma principle, i.e., the unsafe driving information is roughly distributed outside the (mu-2 sigma, mu +2 sigma) interval. Therefore, when the driving information of different drivers in the same attribute road section is learned, the driving information outside the (mu-2 sigma, mu +2 sigma) section is removed, and the safe driving information of the attribute road section is obtained.
S102: and obtaining the habitual driving information of the current driver in the next road section according to the attribute information of the next road section and the preset corresponding relation between the road section attribute information of the current driver and the habitual driving information.
As a specific implementation manner, the method for constructing the corresponding relationship between the link attribute information of the current driver and the habitual driving information includes: respectively acquiring the driving information of the current driver on different attribute road sections; and constructing a corresponding relation between the road section attribute information of the current driver and the habitual driving information according to the driving information of the current driver on the road sections with different attributes. In embodiment 1 of the present invention, the correspondence between the link attribute information of the current driver and the habitual driving information may constitute a second driving model.
In embodiment 1 of the present invention, the second driving model includes driving information of the driver at a different attribute section. And inputting the attribute information of the next road section into a preset second driving model, obtaining the habitual driving information of the driver of the vehicle in the next road section, namely obtaining the historical driving information adopted by the driver of the vehicle when the driver of the vehicle encounters the road section with the same attribute information as the next road section according to the attribute information of the next road section, and obtaining the habitual driving information according to the historical driving information on the basis of the continuity of the driving habits of the driver.
S103: and when the habitual driving information does not accord with the safe driving information, generating and sending a first prompt message.
In the embodiment of the present invention, the safe driving information may be understood as a range value, and the driving habit information that does not conform to the safe driving information may be understood as the driving habit information that is not within the range of the safe driving information.
For example, when the habitual driving speed is lower than the minimum value of the safe driving speed, a prompt message such as "please notice to increase the traveling speed" may be generated and prompted; when the habitual driving speed is higher than the maximum value of the safe driving speed, a prompt message such as "slow speed with clear attention" may be generated and prompted.
In the embodiment of the invention, the driving information comprises but is not limited to driving speed, driving gear and accelerator depth.
According to the slope driving method provided by the embodiment 1 of the invention, when the next road section where the vehicle runs is a slope, the safe driving information and the habitual driving information are respectively obtained according to the attribute information of the next road section, and when the habitual driving information does not accord with the safe driving information, the driver can be prompted, so that the safety problem that the driver only controls the driving speed of the vehicle on the slope by experience is solved.
As a further technical solution, the hill driving method according to the embodiment of the present invention further includes the steps of: acquiring current driving information of a vehicle; judging whether the current driving information accords with the safe driving information; and when the current driving information does not accord with the safe driving information, generating and sending a second prompt message. That is, when the current driving information is not within the range of the safe driving information, the second prompt message is generated and issued. For example, the second prompt message may be safe driving information, such as a speed and a gear of safe driving, so that when the speed and the gear of driving need to be changed, corresponding prompt information may be provided, and it is convenient for a driver to change a driving mode.
Example 2
Embodiment 2 of the present invention provides a ramp driving method, and fig. 2 is a schematic flow chart of the ramp driving method in embodiment 2 of the present invention. As shown in fig. 2, the hill-hold driving method according to embodiment 2 of the present invention includes the steps of:
s201: obtaining map information and a current road section where the vehicle runs, and obtaining a next road section where the vehicle runs and attribute information of the next road section according to the map information and the current road section.
In embodiment 2 of the present invention, the attribute information of the link acquired in the map information by step S201 includes one or more of the following: grade information of the road section, gradient information of the road section and speed limit information of the road section.
S202: judging whether the next road section is a ramp or not according to the attribute information of the next road section; and when the next road section is a ramp, sending an instruction for acquiring the friction information of the next road section.
As a specific implementation manner, the slope of the next road segment may be obtained according to the attribute information of the next road segment, and when the slope of the next road segment is greater than a preset slope value, the next road segment is determined to be a slope.
S203: and receiving friction information of the next road section.
As a specific embodiment, friction information of the next road segment transmitted by other devices may be acquired. The mode of obtaining the friction information of the next road section by other equipment can be acquired in real time or obtained by other means, and the invention is not limited.
S204: and acquiring real-time road condition information, and determining the road condition information of the next road section according to the real-time road condition information.
As a specific implementation manner, in the embodiment of the present invention, the traffic information includes a vehicle passing speed of the road section and a traffic status of the road section, such as smooth, slow, and congested.
S205: according to the road condition information of the next road section, the corresponding relation between the road section attribute information corresponding to the road condition information of the next road section and the safe driving information (hereinafter referred to as a first driving model) or/and the corresponding relation between the road section attribute information of the current driver and the habitual driving information (hereinafter referred to as a second driving model) are determined.
In the embodiment of the invention, the first driving model is divided into the first driving model under congestion and the first driving model under unblocked state, because the form speed which can be reached by the vehicle under congestion and unblocked state is greatly different, the first driving model corresponding to the road condition information of the next road section can obtain more applicable safe driving information; determining the second driving model corresponding to the road condition information of the next road section can obtain more accurate habitual driving information.
S206: inputting the attribute information of the next road segment (including the attribute information of the next road segment obtained in step S201 and/or step S203) into a first driving model corresponding to the road condition information of the next road segment, so as to obtain safe driving information of the next road segment.
S207: inputting the attribute information of the next road segment (including the attribute information of the next road segment obtained in step S201 and/or step S203) and the friction information of the next road segment into a second driving model corresponding to the road condition information of the next road segment, to obtain the driving habit information of the driver of the vehicle in the next road segment.
S208: and when the habitual driving information does not accord with the safe driving information, generating and sending a first prompt message.
According to the slope driving method provided by the embodiment 2 of the invention, when the next road section where the vehicle runs is a slope, the safe driving information and the habitual driving information are respectively obtained according to the attribute information of the next road section, and when the habitual driving information does not accord with the safe driving information, the driver can be prompted, so that the safety problem that the driver controls the driving speed of the vehicle on the slope only by experience is solved.
Example 3
Embodiment 3 of the present invention provides a slope driving device, and fig. 3 is a schematic structural diagram of the slope driving device in embodiment 3 of the present invention. As shown in fig. 3, a hill-level driving device according to embodiment 3 of the present invention includes: a first processing module 30, a second processing module 32, and a prompt module 34.
Specifically, the first processing module 30 is configured to, when a next road segment on which the vehicle runs is a ramp, obtain safe driving information of the next road segment according to the attribute information of the next road segment and a corresponding relationship between preset road segment attribute information and the safe driving information.
And the second processing module 32 is configured to obtain the habitual driving information of the current driver in the next road segment according to the attribute information of the next road segment and a preset corresponding relationship between the road segment attribute information of the current driver and the habitual driving information.
And the prompt module 34 is configured to generate and send a first prompt message when the habitual driving information does not conform to the safe driving information.
The slope driving device provided by the embodiment 3 of the invention can realize the slope driving method of the embodiments 1-2 of the invention and can achieve the same technical effects, and the details are not repeated herein.
Example 4
Embodiments of the present invention further provide an electronic device, which may include a processor and a memory, where the processor and the memory may be connected by a bus or in another manner.
The processor may be a Central Processing Unit (CPU). The Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the first processing module 30, the second processing module 32, and the prompt module 34 shown in fig. 3) corresponding to the hill-slope driving method in the embodiment of the present invention. The processor executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory, namely, the hill-hold driving method in the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory and, when executed by the processor, perform a hill-ride method as in the embodiment of fig. 1-2.
The details of the electronic device may be understood by referring to the corresponding descriptions and effects in the embodiments shown in fig. 1 to fig. 3, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.