Disclosure of Invention
The invention aims to provide a method and a device for controlling an unmanned aerial vehicle based on a vehicle and the vehicle, and aims to solve the problem that in the related art, when only one driver exists in the vehicle, the unmanned aerial vehicle is difficult to control to take off or land while the vehicle runs.
In order to achieve the above object, in a first aspect of the embodiments of the present application, there is provided a method for controlling a drone based on a vehicle, the drone being in communication connection with the vehicle and the drone being capable of being parked in a trunk of the vehicle, the method including:
receiving an instruction for controlling the unmanned aerial vehicle to take off or land;
confirming that the environmental conditions around the vehicle meet preset conditions;
opening the trunk;
sending the instruction to the drone.
Optionally, an apron capable of moving to the outside of the vehicle is arranged in the vehicle, and after the trunk is opened, the instruction is sent to the unmanned aerial vehicle, and the method further includes:
and controlling the parking apron to move out of the vehicle.
Optionally, after sending the instruction to the drone, the method further includes:
controlling the apron to move into the vehicle after the drone takes off from or lands on the apron;
and closing the trunk.
Optionally, the confirming that the environmental condition around the vehicle satisfies a preset condition includes:
and confirming that the distance between the trunk and the barrier is greater than or equal to a preset distance.
Optionally, after receiving the instruction for controlling the unmanned aerial vehicle to take off or land, the method further includes:
and when the distance between the trunk and the barrier is smaller than a preset distance, forbidding opening the trunk.
And outputting prompt information to prompt that the surrounding environment condition is not suitable for opening the trunk.
In a second aspect of the embodiments of the present application, an apparatus for controlling an unmanned aerial vehicle based on a vehicle is provided, where the unmanned aerial vehicle can park in a trunk of the vehicle, the apparatus includes:
the triggering component is used for generating a take-off and landing instruction for controlling the take-off or landing of the unmanned aerial vehicle after being triggered by a user;
the controller is connected with the trigger assembly and the trunk, and is used for generating a confirmation instruction for confirming that the environmental conditions around the vehicle meet preset conditions according to the lifting instruction and generating an opening instruction for controlling the trunk to be opened according to the confirmation instruction;
the wireless communication module is connected with the controller and the unmanned aerial vehicle, and the wireless communication module is used for generating the starting instruction by the controller and then sending the take-off and landing instruction to the unmanned aerial vehicle.
Optionally, the apparatus further comprises:
an apron capable of moving outside the vehicle, the apron being connected to the controller, the controller being further configured to control the apron to move outside or inside the vehicle and to control the trunk to close after the apron has moved inside the vehicle.
Optionally, the apparatus further comprises:
and the distance detector is connected with the controller and used for generating distance information so that the controller generates the confirmation instruction according to the distance information, and the distance information is used for describing the distance between the trunk and the obstacle.
Optionally, the apparatus further comprises:
the output assembly is connected to the controller;
the controller is further used for forbidding to open the trunk when the distance detector detects that the distance between the trunk and the barrier is smaller than a preset distance, and controlling the output assembly to output prompt information so as to prompt that the surrounding environment condition is not suitable for opening the trunk.
In a third aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored, which when executed by a processor implements the steps of the method according to any one of the first aspect.
In a fourth aspect of the embodiments of the present application, an apparatus for controlling an unmanned aerial vehicle based on a vehicle is provided, including:
a memory having a computer program stored thereon; and
a processor for executing the computer program in the memory to implement the steps of the method of any of the first aspects above.
A fifth aspect of an embodiment of the present application provides a vehicle including the apparatus of any one of the second aspect or the fourth aspect.
Through above-mentioned technical scheme, be used for control receiving behind the instruction that unmanned aerial vehicle takes off or descends, the environment around the automated inspection vehicle satisfies the preset condition in order to confirm the environment situation around the vehicle, and when the environment situation around the vehicle satisfied the preset condition, the trunk of automatic control vehicle was opened, then will be used for control unmanned aerial vehicle takes off or the instruction of descending sends to unmanned aerial vehicle, and then control unmanned aerial vehicle takes off or descends, need not artificial through terminal and controls unmanned aerial vehicle's taking off or descending for only have in the vehicle driver alone and the vehicle is in under the condition of the running state, also can release unmanned aerial vehicle and carry out specific task.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Detailed Description
The following detailed description of specific embodiments of the present disclosure is provided in connection with the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a partial cross-sectional view of a vehicle according to an exemplary embodiment, the vehicle 100 having a drone 200 parked in a trunk 110, the drone 200 being capable of entering and exiting the vehicle 100 through a passageway formed when the trunk 110 is opened, the drone 200 being in Wi-Fi communication with the vehicle 100.
Fig. 2 is a scene diagram of takeoff of an unmanned aerial vehicle in the vehicle shown in fig. 1. In one possible approach, the drone 200 first ascends a distance in the trunk 110, the ascending height is lower than the top of the vehicle 100, and then the drone 200 flies out of the vehicle 100 in the horizontal direction, and then ascends vertically to complete the takeoff.
Fig. 3 is a partial cross-sectional view of another vehicle according to an exemplary embodiment, a parking apron 120 that can slide to the outside of the vehicle 100 is disposed in a trunk 110 of the vehicle 100, a drone 200 is parked on the parking apron 120 of the vehicle 100, the drone 200 and the parking apron 120 can enter and exit the vehicle 100 through a passageway formed when the trunk 110 is opened, and the drone 200 and the vehicle 100 are connected through Wi-Fi communication. The apron 120 is a flat plate, and the sliding function of the apron 120 can be realized by a mechanical structure having a linear movement function, such as a screw or a rack and pinion. For example, a lead screw is disposed in the trunk 110 of the vehicle 100, an axial direction of the lead screw is parallel to a length direction of the vehicle 100, and a lead screw nut engaged with the lead screw is fixed on the apron 120, so that the lead screw rotates in different directions to move the lead screw nut in different directions, and further the apron 120 is driven to slide out of the vehicle 100 or slide back into the vehicle 100.
Fig. 6 is a flowchart illustrating a method for controlling a drone based on a vehicle, which may be applied to the vehicle 100 shown in fig. 1, according to an exemplary embodiment, and which includes the following steps, as shown in fig. 6.
In step S61, an instruction for controlling takeoff or landing of the unmanned aerial vehicle is received.
In step S62, it is confirmed that the environmental condition around the vehicle satisfies a preset condition.
In step S63, the trunk is opened.
In step S64, the instruction is sent to the drone.
First, in step S61, an instruction for controlling takeoff or landing of the drone 200 is received. The instruction may be received by the vehicle 100 after being triggered by a trigger component 810 (see fig. 8) in the vehicle 100, or may be sent to the vehicle 100 to be received by the vehicle 100 after being triggered by an external device including the trigger component 810 (see fig. 8), such as a mobile phone or a terminal of an unmanned aerial vehicle remote controller, and the trigger component 810 (see fig. 8) may be one or more of a physical key, a virtual key, or a device capable of recognizing voice, or may be a vehicle key, and is triggered when the vehicle is started by the vehicle key.
For example, the drone 200 is parked in the trunk 110 of the vehicle 100, a steering wheel of the vehicle 100 is provided with an entity button a, and when a command for triggering the takeoff of the drone 200 is applied, a user presses the entity button a, and then sends a takeoff instruction for controlling the takeoff of the drone 200 to the entire vehicle through a Controller Area Network (CAN).
After receiving the command for controlling the unmanned aerial vehicle 200 to take off or land, the method executes step S62 to confirm that the environmental conditions around the vehicle 100 satisfy the preset conditions. Information describing the environmental conditions outside the vehicle 100 may be acquired by a detection device such as a sensor provided on the vehicle 100, for example, wind speed information outside the vehicle 100 is acquired by a wind speed sensor, and rainfall information outside the vehicle 100 is acquired by a rainfall sensor. And makes a determination based on the acquired information and a preset condition to confirm whether the environmental conditions around the vehicle 100 satisfy the preset condition. When the ambient condition of the vehicle 100 satisfies the preset condition, step S63 is executed to open the trunk 110. After the trunk 110 is opened, step S64 is executed, and the command is sent to the drone 200, so as to control the drone 200 to complete the takeoff or landing action.
Because the passageway that supplies unmanned aerial vehicle 200 business turn over that forms after trunk 110 of vehicle 100 opened is great, can have great passage area in order to reduce the probability that unmanned aerial vehicle 200 and passageway edge bump when making unmanned aerial vehicle 200 business turn over vehicle 100, so park unmanned aerial vehicle 200 in trunk 110 of vehicle 200, and in step S63, open trunk 110 for unmanned aerial vehicle 200 passes through the passageway business turn over vehicle 100 that forms when trunk 110 opened.
Alternatively, since there may be an obstacle around the vehicle 100 that hinders the takeoff or landing of the drone 200, for example, another vehicle parked around the vehicle 100, in order to allow the drone 200 to have a large moving space in and out of the vehicle 100 and reduce the probability of collision of the drone 200 with the obstacle or the vehicle 100, in step S62, confirming that the environmental condition around the vehicle satisfies the preset condition includes confirming that the distance between the trunk and the obstacle is greater than or equal to the preset distance, the distance between the trunk 110 and the obstacle may be measured in a preset direction by a radar or laser sensor equidistance detector 840 (see fig. 8) and then compared with the preset distance, and if the distance between the trunk 110 and the obstacle is greater than or equal to the preset distance, step S63 is performed, otherwise, no operation may be performed.
Following the above example, after sending the takeoff instruction to the entire vehicle, the controller 820 (see fig. 8) on the vehicle 100 receives the takeoff instruction, generates a detection instruction for controlling the radar provided on the vehicle 100 to detect the distance between the trunk 110 of the vehicle 100 and the obstacle behind the vehicle 100 and sends the detection instruction to the entire vehicle through the CAN, the radar starts to detect the distance between the trunk 110 and the obstacle behind the vehicle 100 and measures the distance to be 10m after receiving the detection instruction, then sends the measured distance as distance information to the entire vehicle through the CAN, after receiving the distance information, the controller 820 (see fig. 8) compares the distance described by the distance information with the preset distance, and assumes that the preset distance is 5m and 10m is greater than 5m, and further generates a confirmation instruction for confirming that the distance between the trunk 110 and the obstacle behind the vehicle 100 is greater than the preset distance, and an opening instruction for controlling the trunk 110 to open is generated according to the confirmation instruction and sent to the whole vehicle through the CAN, as shown in fig. 2, after the trunk 110 receives the opening instruction, the trunk 110 is opened, and then the controller 820 (see fig. 8) sends a takeoff instruction to the unmanned aerial vehicle 200 through the Wi-Fi module, and controls the unmanned aerial vehicle 200 to complete a takeoff action through a channel formed when the trunk 110 is opened.
After receiving and being used for control unmanned aerial vehicle 200 takes off or the instruction of descending, the environment around the automatic detection vehicle 100 is in order to confirm that the environmental conditions around vehicle 100 satisfies the preset condition, and when the environmental conditions around vehicle 100 satisfied the preset condition, automatic control trunk 110 opened, then will be used for control unmanned aerial vehicle 200 takes off or the instruction of descending sends to unmanned aerial vehicle 200, and then control unmanned aerial vehicle 200 takes off or descends, need not artificial terminal through to control unmanned aerial vehicle 200's taking off or descending for only there is the driver alone in vehicle 100 and vehicle 100 is in the condition of the state of traveling, also can release unmanned aerial vehicle 200 and carry out specific task.
Fig. 7 is another flow chart illustrating a method of controlling a drone based on a vehicle, as shown in fig. 7, including the following steps, in accordance with an exemplary embodiment.
In step S71, an instruction for controlling takeoff or landing of the unmanned aerial vehicle is received.
In step S72, when the distance between the trunk and the obstacle is smaller than a preset distance, the trunk is prohibited from being opened.
In step S73, a prompt message is output to prompt that the surrounding environmental conditions are not suitable for opening the trunk.
In step S74, when the distance between the trunk and the obstacle is greater than or equal to a preset distance, it is confirmed that the environmental condition around the vehicle satisfies a preset condition.
In step S75, the trunk is opened.
In step S76, the instruction is sent to the drone.
After receiving a command for controlling the takeoff or landing of the drone 200, detecting a distance between the trunk 110 and an obstacle, executing steps S72 and S73 when the distance between the trunk 110 and the obstacle is less than a preset distance, and executing steps S74, S75 and S76 when the distance between the trunk 110 and the obstacle is greater than or equal to the preset distance. Further, when the distance between the trunk 110 and the obstacle is smaller than the preset distance, the detection of the distance between the trunk 110 and the obstacle may be repeated until the distance between the trunk 110 and the obstacle is greater than or equal to the preset distance, and the process stops to perform step S72, and proceeds to step S74.
Following the above example, if it is detected by radar that the distance between an obstacle behind the vehicle 100 and the trunk 110 of the vehicle 100 is less than 5m, the controller 820 (see fig. 8) does not generate an open command and the trunk 110 is not opened, and controls the output component 850 (see fig. 8) such as a screen in the vehicle 100 to output a prompt message indicating that the surrounding environment is not suitable for opening the trunk 110. Then, the distance between the obstacle behind the vehicle 100 and the trunk 110 of the vehicle 100 is detected at intervals of 1min, until the distance between the obstacle behind the vehicle 100 and the trunk 110 of the vehicle 100 is detected to be greater than or equal to 5m, the detection is stopped, the controller 820 (see fig. 8) generates an opening instruction, and then the trunk 110 is controlled to be opened, and the unmanned aerial vehicle 200 takes off.
Fig. 8 is another flowchart illustrating a method for controlling a drone based on a vehicle, which may be applied to the vehicle 100 shown in fig. 3, as shown in fig. 8, including the following steps, according to an exemplary embodiment.
In step S81, an instruction for controlling takeoff or landing of the unmanned aerial vehicle is received.
In step S82, it is confirmed that the environmental condition around the vehicle satisfies a preset condition.
In step S83, the trunk is opened.
In step S84, the apron is controlled to move outside the vehicle.
In step S85, the instruction is sent to the drone.
When the apron 120 moves out of the vehicle 100, the apron needs to pass through a passage formed when the trunk 110 is opened, and when the apron 120 moves out of the vehicle 100, the unmanned aerial vehicle 200 parked on the apron 120 is driven to move out of the vehicle 100 together.
For example, as shown in fig. 3, the unmanned aerial vehicle 200 is parked on the apron 120 in the trunk 110 of the vehicle 100, as shown in fig. 4, after the trunk 110 receives an opening instruction for controlling the trunk 110 to open, the trunk 110 is controlled to open, and then the controller 820 (see fig. 8) generates a movement instruction for controlling the apron 120 to move outside the vehicle 100 and sends the movement instruction to the whole vehicle through the CAN, after the apron 120 receives the movement instruction, the movement instruction slides outside the vehicle 100 through a channel formed when the trunk 110 is opened, and simultaneously drives the unmanned aerial vehicle 200 parked on the apron 120 to move outside the vehicle 100, and when the apron 120 moves to the maximum, no part of the vehicle directly above the unmanned aerial vehicle 200 blocks. Thereafter, as shown in fig. 5, the controller 820 (see fig. 8) sends an instruction for controlling the takeoff of the drone 200 to the drone 200 through the Wi-Fi module, thereby controlling the drone 200 to complete the action of vertical takeoff.
When the parking apron 120 moves outside the vehicle 100, the unmanned aerial vehicle 200 parked on the parking apron 120 is driven to move outside the vehicle 100 together, so that the unmanned aerial vehicle 200 can take off and land vertically, and for the part of the unmanned aerial vehicle 200 which can only take off and land vertically, the actions required to be executed during taking off and landing and the programs for controlling the unmanned aerial vehicle 200 to take off and land are simplified. The apron 120 moves stably, so the apron 120 drives the unmanned aerial vehicle 200 to move outside the vehicle 100, and the collision of the channel edge formed when the unmanned aerial vehicle 200 and the trunk 110 are opened can be avoided, so that the loss is avoided.
Fig. 9 is another flowchart illustrating a method of controlling a drone based on a vehicle, which may be applied to the vehicle 100 shown in fig. 3, according to an exemplary embodiment, and which includes the following steps, as shown in fig. 9.
In step S91, an instruction for controlling takeoff or landing of the unmanned aerial vehicle is received.
In step S92, it is confirmed that the environmental condition around the vehicle satisfies a preset condition.
In step S93, the trunk is opened.
In step S94, the apron is controlled to move outside the vehicle.
In step S95, the instruction is sent to the drone.
In step S96, after the unmanned aerial vehicle takes off from or lands on the apron, the apron is controlled to move into the vehicle.
In step S97, the trunk is closed.
After the unmanned aerial vehicle 200 takes off from the apron 120 or lands on the apron 120, the apron 120 is controlled to move into the vehicle 100, and after the apron 120 moves into the vehicle, the trunk 110 is closed, so that when the vehicle 100 is in a driving state, the trunk 110 is still in an open state or the apron 120 is located outside the vehicle, which affects normal driving of the vehicle 100. In addition, the apron 120 and the trunk 110 respectively and automatically execute retraction and closing operations without manual triggering, so that the control is more intelligent.
Fig. 10 is a block diagram illustrating an apparatus for controlling a drone based on a vehicle, the drone 200 being capable of being parked in the trunk 110 of the vehicle 100, according to an exemplary embodiment, as shown in fig. 10, the apparatus 800 including:
a triggering component 810, configured to generate a take-off and landing instruction for controlling the unmanned aerial vehicle 200 to take off or land after being triggered by a user;
the controller 820 is connected to the trigger assembly 810 and the trunk 110, and the controller 820 is configured to generate a confirmation instruction for confirming that an environmental condition around the vehicle 100 meets a preset condition according to the take-off and landing instruction, and generate an opening instruction for controlling the trunk 110 to open according to the confirmation instruction;
the wireless communication module 830 is connected to the controller 820 and the drone 200, and the wireless communication module 830 is configured to send the take-off and landing instruction to the drone 200 after the controller 820 generates the start instruction.
The controller may be an ECU (Electronic Control Unit).
Optionally, as shown in fig. 10, the apparatus 800 further includes:
an apron 120 capable of moving outside the vehicle 100, the apron 120 being connected to the controller 820, the controller 820 being further configured to control the apron 120 to move outside the vehicle 100 or inside the vehicle 100, and to control the trunk 110 to be closed after the apron 120 moves inside the vehicle 100.
Optionally, as shown in fig. 10, the apparatus 800 further includes:
a distance detector 840 connected to the controller 820, wherein the distance detector 840 is configured to generate distance information so that the controller 820 generates the confirmation instruction according to the distance information, and the distance information is used to describe a distance between the trunk 110 and an obstacle.
Optionally, as shown in fig. 10, the apparatus 800 further includes:
an output component 850 connected to the controller 820;
the controller 820 is further configured to prohibit opening of the trunk 110 when the distance detector 840 detects that the distance between the trunk 110 and the obstacle is smaller than a preset distance, and control the output component 850 to output a prompt message to prompt that the surrounding environment condition is not suitable for opening the trunk 110.
With regard to the apparatus in the above-described embodiment, the specific manner in which each component, such as the triggering component 810 and the controller 820, performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 11 is another block diagram illustrating an apparatus for controlling a drone based on a vehicle, according to an example embodiment. As shown in fig. 11, the apparatus 900 may include: a processor 901 and a memory 902. The apparatus 900 may also include one or more of a multimedia component 903, an input/output (I/O) interface 904, and a communications component 905.
The processor 901 is configured to control the overall operation of the apparatus 900, so as to complete all or part of the steps in the above-mentioned method for controlling a drone based on a vehicle. The memory 902 is used to store various types of data to support operation of the device 900, which may include instructions for any application or method operating on the device 900 as well as application-related data, such as messaging, pictures, audio, video, and so forth. The Memory 902 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 903 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 902 or transmitted through the communication component 905. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 904 provides an interface between the processor 901 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 905 is used for wired or wireless communication between the apparatus 900 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, or 4G, or a combination of one or more of them, so that the corresponding Communication component 905 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described method for controlling the drone based on the vehicle.
In another exemplary embodiment, a computer readable storage medium comprising program instructions that, when executed by a processor, implement the steps of the vehicle-based drone controlling method described above is also provided. For example, the computer readable storage medium may be the memory 902 described above including program instructions executable by the processor 901 of the apparatus 900 to perform the method of controlling a drone based on a vehicle described above.
In another exemplary embodiment, a vehicle is also provided, the vehicle comprising any one of the above-described vehicle-based apparatuses 800, 900 for controlling a drone.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.