PROMPT METHOD, SYSTEM, DEVICE, AND STORAGE MEDIUM
An autonomous driving method includes receiving a braking instruction from an autonomous driving system; determining a prompt mode based on the braking instruction; and controlling a sound prompt module or a light prompt module to prompt according to the prompt mode. One example includes a prompt scheme, by using a braking instruction from an autonomous driving system and performing a sound and light prompt based on the braking instruction, such that a safety staff can learn the braking intention of a vehicle via the sound or light prompt before the vehicle performs braking.
1 . A prompt method, comprising:
receiving, from an autonomous driving system, a braking instruction;
determining, based on the braking instruction, a prompt mode; and
controlling, according to the prompt mode, a sound prompt module or a light prompt module to prompt.
2 . The method according to claim 1 , wherein the prompt mode comprises: a sound prompt mode, a light prompt mode, or a sound and light prompt mode; the controlling, according to the prompt mode, the sound prompt module or the light prompt module to prompt comprises:
controlling, in response to the prompt mode being the sound prompt mode, the sound prompt module to perform a sound prompt according to a preset frequency and a preset volume;
controlling, in response to the prompt mode being the light prompt mode, the light prompt module to perform a light prompt according to the preset frequency and a preset light intensity; and
controlling, in response to the prompt mode being the sound and light prompt mode, the sound prompt module to perform the sound prompt according to the preset frequency and the preset volume, and the light prompt module to perform the light prompt according to the preset frequency and the preset light intensity.
3 . The method according to claim 1 , wherein
in response to the prompt mode indicating a prompt frequency, the controlling, according to the prompt mode, the sound prompt module or the light prompt module to prompt comprises:
controlling, according to the prompt frequency, the sound prompt module to perform a sound prompt; or
controlling, according to the prompt frequency, the light prompt module to perform a light prompt;
in response to the prompt mode indicating a prompt volume of the sound prompt module, the controlling, according to the prompt mode, the sound prompt module or the light prompt module to prompt comprises:
controlling, according to the prompt volume, the sound prompt module to perform a sound prompt;
in response to the prompt mode indicating a prompt light intensity of the light prompt module, the controlling, according to the prompt mode, the sound prompt module or the light prompt module to prompt comprises:
controlling, according to the prompt light intensity, the light prompt module to perform a light prompt.
4 . The method according to claim 3 , wherein the braking instruction indicates a desired deceleration, and there is a relationship between the desired deceleration and the prompt frequency, the prompt volume, or the prompt light intensity; and the determining, based on the braking instruction, the prompt mode comprises:
determining, based on the relationship, the prompt frequency according to the desired deceleration;
determining, based on the relationship, the prompt volume according to the desired deceleration; or
determining, based on the relationship, the prompt light intensity according to the desired deceleration.
5 . The method according to claim 1 , wherein the controlling, according to the prompt mode, the sound prompt module or the light prompt module to prompt comprises:
controlling, by changing a frequency of a PWM output, a prompt frequency of the sound prompt module or the light prompt module; or
controlling, by changing a duty factor of the PWM output, a prompt volume of the sound prompt module or a prompt light intensity of the light prompt module.
6 . A prompt system, comprising a controller, a light prompt module and a sound prompt module, the controller being connected to the sound prompt module and the light prompt module, respectively, wherein
the controller is configured to receive a braking instruction from an autonomous driving system, determine a prompt mode according to the braking instruction, and control the sound prompt module or the light prompt module to prompt according to the prompt mode;
the sound prompt module is configured to realize a sound prompt corresponding to the prompt mode under the control of the controller; and
the light prompt module is configured to realize a light prompt corresponding to the prompt mode under the control of the controller.
7 . The system according to claim 6 , wherein the prompt mode comprises: a sound prompt mode, a light prompt mode, or a sound and light prompt mode; the controlling, by the controller, the sound prompt module or the light prompt module to prompt according to the prompt mode comprises:
controlling, by the controller, the sound prompt module to perform a sound prompt according to a preset frequency and a preset volume in response to the prompt mode being the sound prompt mode;
controlling, by the controller, the light prompt module to perform a light prompt according to a preset frequency and a preset light intensity in response to the prompt mode being the light prompt mode; and
controlling, by the controller, the sound prompt module to perform a sound prompt according to a preset frequency and a preset volume, and the light prompt module to perform a light prompt according to a preset frequency and a preset light intensity in response to the prompt mode being the sound and light prompt mode.
8 . The system according to claim 6 , wherein
in response to the prompt mode indicating a prompt frequency, the controller being configured to control the sound prompt module or the light prompt module to prompt according to the prompt mode comprises:
the controller being configured to control, according to the prompt frequency, the sound prompt module to perform a sound prompt; or
the controller being configured to control, according to the prompt frequency, the light prompt module to perform a light prompt;
in response to the prompt mode indicating a prompt volume of the sound prompt module, the controller being configured to control the sound prompt module or the light prompt module to prompt according to the prompt mode comprises:
the controller being configured to control, according to the prompt volume, the sound prompt module to perform the sound prompt;
in response to the prompt mode indicating a prompt light intensity of the light prompt module, the controller being configured to control the sound prompt module or the light prompt module to prompt according to the prompt mode comprises:
the controller being configured to control, according to the prompt light intensity, the light prompt module to perform the light prompt.
9 . The system according to claim 8 , wherein the braking instruction indicates a desired deceleration, and there is a relationship between the desired deceleration and the prompt frequency, the prompt volume, or the prompt light intensity; and the controller being configured to determine the prompt mode according to the braking instruction comprises:
the controller being configured to determine, based on the relationship, the prompt frequency according to the desired deceleration;
the controller being configured to determine, based on the relationship, the prompt volume according to the desired deceleration; or
the controller being configured to determine, based on the relationship, the prompt light intensity according to the desired deceleration.
10 . The system according to claim 6 , wherein the controller being configured to control the sound prompt module or the light prompt module to prompt according to the prompt mode comprises:
the controller being configured to control, by changing a frequency of a PWM output, a prompt frequency of the sound prompt module or the light prompt module; or
the controller being configured to control, by changing a duty factor of the PWM output, a prompt volume of the sound prompt module and a prompt light intensity of the light prompt module.
11 . The system according to claim 6 , further comprising a first variable resistor being provided between the controller and the sound prompt module and a second variable resistor being provided between the controller and the light prompt module, wherein
the first variable resistor is used for adjusting a prompt volume of the sound prompt module; and
the second variable resistor is used for adjusting a prompt light intensity of the light prompt module.
12 . A device, comprising a processor and a memory, the memory having stored therein at least one machine-executable instruction, the processor executing the at least one machine-executable instruction to perform the prompt method according to claim 1 .
13 . The device according to claim 12 , wherein the prompt mode comprises: a sound prompt mode, a light prompt mode, or a sound and light prompt mode; the processor executes the at least one machine-executable instruction to perform the prompt method further comprising:
controlling, in response to the prompt mode being the sound prompt mode, the sound prompt module to perform a sound prompt according to a preset frequency and a preset volume;
controlling, in response to the prompt mode being the light prompt mode, the light prompt module to perform a light prompt according to the preset frequency and a preset light intensity; and
controlling, in response to the prompt mode being the sound and light prompt mode, the sound prompt module to perform the sound prompt according to the preset frequency and the preset volume, and the light prompt module to perform the light prompt according to the preset frequency and the preset light intensity.
14 . The device according to claim 12 , wherein the processor executes the at least one machine-executable instruction to perform the prompt method further comprising:
in response to the prompt mode indicating a prompt frequency,
controlling, according to the prompt frequency, the sound prompt module to perform a sound prompt; or
controlling, according to the prompt frequency, the light prompt module to perform a light prompt;
in response to the prompt mode indicating a prompt volume of the sound prompt module, controlling, according to the prompt volume, the sound prompt module to perform a sound prompt;
in response to the prompt mode indicating a prompt light intensity of the light prompt module, controlling, according to the prompt light intensity, the light prompt module to perform a light prompt.
15 . The device according to claim 12 , wherein the processor executes the at least one machine-executable instruction to perform the prompt method further comprising:
controlling, by changing a frequency of a PWM output, a prompt frequency of the sound prompt module or the light prompt module; or
controlling, by changing a duty factor of the PWM output, a prompt volume of the sound prompt module or a prompt light intensity of the light prompt module.
16 . A computer-readable storage medium having stored thereon a computer program which when executed by a processor implements a prompt method comprising:
receiving, from an autonomous driving system, a braking instruction;
determining, based on the braking instruction, a prompt mode; and
controlling, according to the prompt mode, a sound prompt module or a light prompt module to prompt.
17 . The medium according to claim 16 , wherein the prompt mode comprises: a sound prompt mode, a light prompt mode, or a sound and light prompt mode; the computer program when executed by the processor implements the prompt method further comprising:
controlling, in response to the prompt mode being the sound prompt mode, the sound prompt module to perform a sound prompt according to a preset frequency and a preset volume;
controlling, in response to the prompt mode being the light prompt mode, the light prompt module to perform a light prompt according to the preset frequency and a preset light intensity; and
controlling, in response to the prompt mode being the sound and light prompt mode, the sound prompt module to perform the sound prompt according to the preset frequency and the preset volume, and the light prompt module to perform the light prompt according to the preset frequency and the preset light intensity.
18 . The medium according to claim 16 , wherein the computer program when executed by the processor implements the prompt method further comprising:
in response to the prompt mode indicating a prompt frequency,
controlling, according to the prompt frequency, the sound prompt module to perform a sound prompt; or
controlling, according to the prompt frequency, the light prompt module to perform a light prompt;
in response to the prompt mode indicating a prompt volume of the sound prompt module, controlling, according to the prompt volume, the sound prompt module to perform a sound prompt;
in response to the prompt mode indicating a prompt light intensity of the light prompt module, controlling, according to the prompt light intensity, the light prompt module to perform a light prompt.
19 . The medium according to claim 16 , wherein the braking instruction indicates a desired deceleration, and there is a relationship between the desired deceleration and a prompt frequency, a prompt volume, or a prompt light intensity; the computer program when executed by the processor implements the prompt method further comprising:
determining, based on the relationship, the prompt frequency according to the desired deceleration;
determining, based on the relationship, the prompt volume according to the desired deceleration; or
determining, based on the relationship, the prompt light intensity according to the desired deceleration.
20 . The medium according to claim 16 , wherein the computer program when executed by the processor implements the prompt method further comprising:
controlling, by changing a frequency of a PWM output, a prompt frequency of the sound prompt module or the light prompt module; or
controlling, by changing a duty factor of the PWM output, a prompt volume of the sound prompt module or a prompt light intensity of the light prompt module.