WO2019037102A1 - Method and apparatus for obtaining flight simulation data, storage medium and device - Google Patents

Method and apparatus for obtaining flight simulation data, storage medium and device Download PDF

Info

Publication number
WO2019037102A1
WO2019037102A1 PCT/CN2017/099113 CN2017099113W WO2019037102A1 WO 2019037102 A1 WO2019037102 A1 WO 2019037102A1 CN 2017099113 W CN2017099113 W CN 2017099113W WO 2019037102 A1 WO2019037102 A1 WO 2019037102A1
Authority
WO
WIPO (PCT)
Prior art keywords
model
data
sub
environment
flight
Prior art date
Application number
PCT/CN2017/099113
Other languages
French (fr)
Chinese (zh)
Inventor
赵开勇
姚尧
马岳文
郑石真
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2017/099113 priority Critical patent/WO2019037102A1/en
Priority to CN201780004499.5A priority patent/CN108701164A/en
Publication of WO2019037102A1 publication Critical patent/WO2019037102A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/15Vehicle, aircraft or watercraft design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a storage medium, and a device for obtaining flight simulation data.
  • the aircraft has a wide range of applications.
  • the flight simulator will be designed accordingly, and the flight process of the aircraft will be simulated to optimize the various parameters of the aircraft according to the simulation results. , as well as control performance and so on.
  • the flight simulator is usually simulated by a robot simulator.
  • the simulation result can only simulate an idealized static environment scene, and the aircraft still faces the complicated and varied scenes and environments during the actual flight process. More adjustments are needed. In some extreme environments, the aircraft may even be ineffective. Therefore, the existing flight simulator is relatively simple, so it is difficult to effectively assist the actual flight process of the aircraft based on the flight simulation data obtained.
  • the application provides a method, device, storage medium and device for obtaining flight simulation data.
  • a method of obtaining flight simulation data comprising:
  • target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
  • the first type of data is rendered and output, and the second type of data is directly output.
  • an apparatus for obtaining flight simulation data comprising:
  • An acquiring unit configured to acquire one or more target environment sub-models in an aircraft model to be simulated flight scenario, where the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is for an environmental factor having dynamic changing characteristics Created model;
  • a processing unit configured to process interaction between each target environment sub-model and the aircraft model to obtain first type data and second type data
  • an output unit configured to output the first type of data after being rendered, and directly output the second type of data.
  • a computer readable storage medium having stored thereon a computer program, the program being executed by a processor to:
  • target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
  • the first type of data is rendered and output, and the second type of data is directly output.
  • a computing device comprising a memory, a processor and an external interface connected by an internal bus,
  • the memory is configured to store machine readable instructions corresponding to control logic for obtaining flight simulation data
  • the processor is configured to read the machine readable instructions on the memory and execute the instructions to:
  • target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
  • the first type of data is rendered and output, and the second type of data is directly output.
  • the present application combines the processing and rendering of the sub-models of multiple scenes by simulating the flight scene of the aircraft through the different dynamic environment models established, and finally outputs the flight.
  • the simulation data can effectively simulate various possible scenes in the real world, so it can provide more realistic and accurate simulation data to the development process of the aircraft, which can provide effective assistance for the aircraft in the development process, for example, the sensor can be optimized.
  • Parameter configuration and optimization include various algorithms including control algorithms and navigation algorithms.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application
  • FIG. 3 is a flow chart of one embodiment of a method for obtaining flight simulation data in the present application.
  • FIG. 4 is a flow chart of another embodiment of a method for obtaining flight simulation data in the present application.
  • FIG. 5 is a block diagram of an embodiment of an apparatus for obtaining flight simulation data of the present application.
  • FIG. 6 is a block diagram of an embodiment of a computing device of the present application.
  • the flight simulator can simulate the flight of the aircraft with high fidelity.
  • the flight simulation data obtained by the simulation can be used to optimize the sensor parameter configuration of the aircraft and optimize various flight control algorithms and navigation control algorithms.
  • the functionality of the flight simulator is reflected in the ability to provide simulations that are closer to the real scene for complex and variable environments.
  • the flight simulators in the related art can usually only simulate idealized scenes, so it is difficult to carry out the actual flight process of the aircraft. Effective assistance.
  • FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application:
  • the flight simulator is an APP (Application), which can be installed in a terminal device, for example, a mobile phone, a tablet computer, etc.
  • APP Application
  • the flight simulation control can be entered.
  • the user can input various simulation commands to the aircraft model by operating on the flight simulation control interface, thereby presenting a flight simulation image of the aircraft model on the terminal device, thereby obtaining various flight simulation data.
  • different dynamic environment models may be established in advance, so as to simulate sub-models of multiple scenes when simulating the scene of the aircraft flying. Merge processing and rendering, so that the final output of flight simulation data can effectively simulate various possible scenarios in the real world.
  • FIG. 2 a schematic diagram of an embodiment of obtaining flight simulation data according to the present application is shown:
  • the schematic shown in Figure 2 includes a plurality of pre-created models and processing systems.
  • the plurality of models may be stored in a memory, and the plurality of models may include: a static environment model indicating that the environment is stable in the environment and the object does not move; and a dynamic environment model including a state change and the object may move; An aircraft model used to simulate the appearance and flight control of an actual aircraft.
  • the processing system can call the aircraft model from the memory, and the selected static environment model and the dynamic environment model, etc., by combining the processing and rendering of the interaction between the models, and outputting as the first Image data and depth data of the class data, and sensor type data without rendering processing as the second type of data can be directly output, and the above two pieces of data are collectively referred to as flight simulation data.
  • a flow chart of an embodiment of a method for obtaining flight simulation data according to the present application includes the following steps:
  • Step 301 Acquire one or more target environment sub-models in the aircraft model to be simulated flight scenario, and the target environment sub-model includes the target dynamic environment model.
  • the flight simulator may simulate the flight process of the aircraft model in a flight scenario composed of one or more environmental sub-models.
  • the aircraft model may include: a dynamic model for interacting with the target environment submodel, a control model for controlling the flight attitude of the aircraft model, and a visual system model for providing visual data for the control model;
  • the environmental submodel may include The static environment model and the dynamic environment model;
  • the flight scene may include: a flight scene that changes according to the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; Flight scene.
  • the static environment model generally represents an object in the environment that contains state stability and does not create movement.
  • the static environment model may include one or more of the following sub-models: a terrain sub-model, a building sub-model.
  • the terrain submodel can be used to simulate the generation of ultrasonic data to the ground.
  • the ultrasonic data is the distance data generated by the physics engine from the collision of multiple beams emitted by the ultrasonic transmitter at the bottom of the aircraft with the surface model.
  • the flight control logic can be provided with a reference for landing, or a terrain following function for navigation. Taking flight control as the example of the control logic when landing, the height of the aircraft from the ground can be obtained by ultrasonic data.
  • the ultrasonic data is monitored in real time when the aircraft is landing. When the aircraft approaches the surface, the aircraft is decelerated, and the upper limit of the aircraft and the distance of the aircraft are controlled.
  • the building sub-model can be used to simulate obstacle information in image data and depth data captured by the aircraft.
  • the obstacle avoidance strategy of the aircraft can be specified. , bypass strategy, etc.
  • a dynamic environment model is a model created for environmental factors with dynamically changing characteristics. It usually indicates that the environment contains objects that are state-variable and may move.
  • the dynamic environment model may include one or more of the following sub-models: Weather System Submodel, light source submodel, environment modifier submodel, moving object submodel, and interference submodel.
  • the sub-model of the light source can be used to simulate the effect on the brightness of the image captured by the aircraft.
  • the vision system of the aircraft may fail.
  • the vision system may include a sensing function module and a navigation function. a module, wherein the sensing function module can be used to calculate the position of the aircraft by image data captured by the onboard camera, or to perceive an object within a certain range by the ultrasonic sensor, and the navigation function module can be used to plan the aircraft for image data taken by the onboard camera.
  • the navigation data may include the navigation flight path data and flight behavior data of the aircraft, so the light source sub-model can be used to test whether the aircraft can maintain safe flight after the vision system fails, or whether it can be restored after the image brightness returns to normal.
  • Visual system function the snow model in the environmental modifier model can be used to simulate the overexposure of the image by snow reflection. In the snow environment, the image of the aircraft is difficult to extract because the image is white. With enough feature points, the visual system function of the aircraft can also be tested by the ground area snow model.
  • the rain-snow sub-model in the weather system sub-model can be used to simulate the noise impact on the image captured by the aircraft.
  • the image picture taken by the aircraft if there is rain or snow, it is equivalent to adding noise to the image. Therefore, it is possible to test the robustness of the visual algorithm and the performance of filtering noise.
  • the boundary of the visual algorithm can be tested to obtain the safe flight limit of the aircraft.
  • the moving object submodel can be used to simulate people, animals, vehicles, etc. in the scene, and the corresponding aircraft model can simulate generating a main camera image code stream and transmit the image code stream to the navigation algorithm module for advanced Functional development tests, such as tracking or wrapping vehicles, recognizing human gestures, etc.
  • the dynamic environment models in the above examples can be used to simulate the generation of visual image information and to verify the visual system of the aircraft.
  • the visual image is usually a grayscale image
  • the main camera image code stream is usually a color image stream.
  • one or more environment sub-models of the aircraft to be simulated flight scene may be acquired in different manners, and the one or more environment sub-models are referred to as the target environment sub-model.
  • one or more environment submodels may be mapped to a particular flight scenario, or different flight scenarios may correspond to one or more environment submodels. Based on this, two alternative implementations for obtaining the target environment submodel are provided:
  • the environment sub-model list when entering the flight simulation state, may be directly outputted on the display interface, and the environment sub-model list includes all the preset dynamic environment models and static environment models, and the user may To simulate a flight scenario, select one or more target environment sub-models from the list of environment sub-models, that is, the target environment sub-model is mapped to a target flight scenario, wherein the one or more target environment sub-models include a dynamic environment model Further, a static environment model can also be included.
  • the created aircraft model and the plurality of types of environment sub-models may be pre-stored, and the correspondence between different flight scenes and different environment sub-model names may be saved when entering the flight simulation state.
  • the plurality of flight scenes can be directly outputted on the display interface for the user to select, and the result selected by the user is determined as the target flight scene to be simulated by the aircraft model, and the corresponding relationship is searched according to the target flight scene, thereby calling one corresponding to the target flight scene. Or multiple target environment submodels.
  • Step 302 Process interaction between each target environment sub-model and the aircraft model to obtain first type data and second type data.
  • the target position of the dynamic object in the flight scene in the target dynamic environment model in the target environment sub-model may be determined first, and then the dynamic object is superimposed to the target according to the target position.
  • the flight state data of the aircraft model in the merged model can be calculated to obtain the second type of data.
  • the flight state data may include at least one of the following data: position data of the aircraft model, distance data of the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model.
  • the second type of data may include at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, and a remote controller obtained from the distance data Signal strength data, ultrasonic sensor data obtained from position data and direction data, and IMU data, and the like.
  • Step 303 Perform rendering on the first type of data, and directly output the second type of data.
  • the merged model may be rendered, and the rendering process may adopt various existing rendering algorithms, which are not described herein.
  • the first type of data after rendering can include: image data and depth data.
  • the embodiment uses the different dynamic environment models to simulate the flight scene of the aircraft, and combines and renders the sub-models of the multiple scenes, and finally outputs the flight simulation data, which can be effectively
  • the real world's various possible scenarios are simulated, so that more realistic and accurate simulation data can be provided to the aircraft development process, which can provide effective assistance for the aircraft during development.
  • FIG. 4 a flow chart of another embodiment of a method for obtaining flight simulation data according to the present application, illustrates in detail a process of obtaining flight simulation data and performing flight control adjustment according to the flight simulation data:
  • Step 401 Pre-storing the created aircraft model and multiple types of environment sub-models, and preserving the correspondence between different flight scenarios and different environment sub-model names, wherein the plurality of types of environment sub-models include a dynamic environment model and Static environment model.
  • the aircraft model for simulating the actual aircraft may include: a dynamic model for interacting with the environment submodel, a control model for controlling the flight attitude of the aircraft model, and for providing visual data for the control model Visual system model.
  • the environment sub-model may include a static environment model and a dynamic environment model.
  • the static environment model usually represents an object in the environment that contains stable state and does not move.
  • the static environment model can include one or more of the following sub-models: terrain sub-models such as mountains, plains, etc.; building sub-models, such as buildings, Commercial buildings, etc.; dynamic environment models are models created for environmental factors with dynamically changing characteristics, usually indicating that the environment contains objects that are state-variable and may move.
  • the dynamic environment model may include one or more of the following sub-models.
  • weather system sub-models such as clouds, wind, rain, snow, etc.
  • light source sub-models such as direct light source, scattered light source, point light source, parallel light source, etc.
  • environmental modifier sub-model such as ground area snow, ground area water, etc.
  • Object submodels such as animals, people, vehicles, etc.
  • interference submodels such as magnetic field interference, GPS interference, control signal interference, etc.
  • the sub-model of the above dynamic environment model can be characterized by the algorithm and formula model in the related technology.
  • the average wind power of the corresponding area can usually be calculated according to different geographical regions, and then an intermittent wind is superimposed on the basis of the wind to simulate the dynamic wind of the corresponding area, and the intermittent wind can pass the sine
  • the signal y sin(wt) is characterized, where w is the intermittent frequency, t is the time, and y is the wind power.
  • a strip magnet can be arranged around the aircraft model as the interference magnetic field, and then the magnetic field and the strip magnet magnetic field are superimposed to realize the interference to the geomagnetic signal.
  • the mathematical model of the strip magnet and the mathematical model of the geomagnetic field can adopt the model in the related art.
  • the mathematical model of the geomagnetic field can adopt the World Magnetic Model 2015
  • the mathematical model of the strip magnet can be based on O.-Savar's law establishes a magnetic field generated by a steady current, which can be characterized by a formula Where I is the source current, L' is the integral path, and dl' is the tiny line element of the source current.
  • the standard used for GPS communication is the NMEA 0183 standard, so it can be changed.
  • the number of satellites used in the GPGGA (GPS fixed data output statement) and the horizontal accuracy are used to simulate GPS interference.
  • interference can be achieved by blocking communication between the remote control and the aircraft model.
  • the flight scene may include: a flight scene that changes according to the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; and a flight scene that changes according to the interference situation. Since different flight scenarios can correspond to one or more environment sub-models, the correspondence between different flight scenarios and different environment sub-models can be created in advance in this embodiment, for example,
  • the above aircraft model and multiple types of environment sub-models can be characterized by various mathematical formulas, and the corresponding relationships between the various models and the above-described creation can be saved in the memory.
  • Step 402 Determine a target flight scenario to be simulated by the aircraft
  • the user's selection result may be a plurality of flight scenes, for example, a flight scene that includes both snow and a ground scene containing snow.
  • Step 403 Find a correspondence between different flight scenarios and different environment sub-model names according to the target flight scenario, and obtain an environment sub-model name corresponding to the target flight scenario.
  • Step 404 Invoke one or more target environment sub-models corresponding to the environment sub-model name from the saved multiple types of environment sub-models.
  • Step 405 Process the interaction between each target environment sub-model and the aircraft model, obtain the first type of data and the second type of data, and perform steps 406 and 410 respectively.
  • the interaction between the environment sub-model and the aircraft model can be simulated by using various existing physical system models, including: the mechanical physical model can be used to simulate the collision of the aircraft and the influence of gravity on the aircraft, which can be adopted.
  • the electromagnetic model simulates the attenuation, shielding, and electromagnetic interference of the flight control signal.
  • the magnet model can be used to simulate the interference of the magnetic field on the compass of the aircraft.
  • the hydrodynamic model can be used to simulate the wind, air resistance, and propeller power of the aircraft.
  • the physical model interacting with the aircraft model and the aircraft model may include: an interaction force model of the aircraft and the air at different body motion speeds and propeller speeds, the interaction force model being used to obtain After the force of the aircraft model relative to the air, the flight state information of the aircraft, such as the motion acceleration and angular acceleration of the aircraft fuselage, is obtained by synthesizing the force with the gravity of the fuselage.
  • the wind speed values may be different at different locations of the building due to differences in building height and volume. Therefore, when simulating wind power through a hydrodynamic model, wind speed fields at different positions can be created in advance, and the wind speed field can be a function of time, thereby simulating wind speed variation and turbulence.
  • the target position of the dynamic object in the flight scene in the target dynamic environment model in the target environment sub-model may be determined first, and then the dynamic object is superimposed to the target according to the target position.
  • the target static environment model includes a building
  • the target dynamic environment model includes a moving vehicle (a moving object submodel) and a falling snow (a weather system submodel), which may be at the target.
  • the position of the car and the snowflake is determined first, and then the car and the snowflake are superimposed to the corresponding position in the background environment of the building according to the position, thereby obtaining the target static environment model.
  • a merged model of the target dynamic environment model is obtained.
  • the flight state data of the aircraft model in the merged model can be calculated to obtain the second type of data.
  • the flight state data may include at least one of the following data: position data of the aircraft model, distance data of the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model.
  • the second type of data may include at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, and a remote controller obtained from the distance data Signal strength data, ultrasonic sensor data obtained from position data and direction data, and IMU data, and the like.
  • Step 406 After the first type of data is rendered and output.
  • Step 407 Input the first type of data into the visual system model of the aircraft model.
  • Step 408 Obtain visual data obtained after the visual system model senses and navigates the first type of data.
  • Step 409 Input the visual data into the control model of the aircraft model to end the current process.
  • the visual system may include a sensing function module and a navigation function module, and the first type of data may be input into the sensing function module and the navigation function module, thereby obtaining an aircraft obtained by the sensing function module according to the first type of data.
  • the navigation data may include navigation flight path data and flight behavior data of the aircraft, and then the above location data and navigation data
  • the control model is entered so that the control model can use this data for flight control.
  • Step 410 Input the second type of data into the control model of the aircraft model.
  • Step 411 Obtain flight control data that is output after the control model performs virtual flight control on the aircraft according to the second type of data.
  • Step 412 Adjust the flight control logic of the aircraft according to the flight control data, and end the current process.
  • control mode in which the aircraft is flying is a fixed point mode. If the aircraft loses the GPS signal due to magnetic field interference, the aircraft should automatically switch to the attitude.
  • Mode Application The embodiment of the present application can simulate the above scenario by a flight simulator to detect whether the flight simulator will switch to the attitude mode.
  • the flight control logic In another example of the optional adjustment of the flight control logic, it is assumed that the aircraft encounters a strong geomagnetic compass interference, and the original value of the aircraft state calculated by the navigation control system may be incorrect at this time, and the embodiment of the present application may be adopted.
  • the flight simulator simulates the true value of the state of the aircraft in the above scenario. By calculating the difference between the real value and the original value, it provides a basis for the development and improvement of the navigation algorithm in the navigation control system, that is, the navigation algorithm can be informed that the geomagnetic compass arrives in the interference. To what extent may result in failure.
  • the present application also provides an embodiment of an apparatus and apparatus for obtaining flight simulation data.
  • FIG. 5 a block diagram of an embodiment of an apparatus for obtaining flight simulation data according to the present application is as follows:
  • the apparatus includes an acquisition unit 510, a processing unit 520, and an output unit 530.
  • the acquiring unit 510 is configured to acquire one or more target environment sub-models in the aircraft model to be simulated flight scenario, where the target environment sub-model includes a target dynamic environment model, where the dynamic environment model is for the dynamic change characteristic a model created by environmental factors;
  • the processing unit 520 is configured to process interaction between each target environment sub-model and the aircraft model to obtain first type data and second type data;
  • the output unit 530 is configured to perform post-rendering output on the first type of data, and directly output the second type of data.
  • the obtaining unit 510 may include:
  • a list output subunit configured to output an environment submodel list, where the environment submodel list includes a dynamic environment model and a static environment model;
  • the target obtaining subunit is configured to obtain one or more target environment submodels selected by the user from the list of environment submodels.
  • the obtaining unit 510 may include:
  • a target determining subunit for determining a target flight scene to be simulated by the aircraft
  • the target invocation subunit is configured to invoke one or more target environment submodels corresponding to the target flight scene.
  • the apparatus may further include:
  • a saving unit configured to pre-save the created aircraft model and the plurality of types of environment sub-models, and save a correspondence between different flight scenarios and different environment sub-model names, wherein the plurality of types of environment sub-models include Dynamic environment model and static environment model.
  • the target calling subunit is specifically configured to search the corresponding relationship according to the target flight scenario, obtain an environment submodel name corresponding to the target flight scenario, and obtain from the saved multiple types of environment sub-categories One or more target environment sub-models corresponding to the environment sub-model name are called in the model.
  • the flight scene includes: a flight scene according to a change of the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; and a flight scene that changes according to the interference condition;
  • the static environment model in the environment sub-model includes one or more of the following sub-models: a terrain sub-model, a building sub-model;
  • the dynamic environment model in the environment sub-model includes one or more of the following sub-models: a weather system sub-model, a light source sub-model, an environment modifier sub-model, a moving object sub-model, and an interference sub-model.
  • the weather system sub-model includes a wind sub-model, and the wind sub-model is characterized by a corresponding relationship between wind speed fields and wind speed values of different geographical locations;
  • the interference sub-model is simulated by a set electromagnetic model including: a magnetic field interference sub-model, a GPS interference sub-model, and a remote control control signal interference sub-model.
  • processing unit 520 can include:
  • a location determining subunit configured to determine a target location of the dynamic object in the target dynamic environment model in the flight scenario
  • An object superposition subunit configured to superimpose the dynamic object to a corresponding position in a target static environment model in the target environment submodel according to the target location, to obtain a merge model as the first type of data;
  • a data calculation subunit for calculating flight state data in the merged model of the aircraft model Get the second type of data.
  • the first type of data after the rendering of the merged model includes: image data and depth data;
  • the flight state data includes at least one of the following: position data of the aircraft model, distance data between the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model;
  • the second type of data includes at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, according to the Remote control signal strength data obtained from the distance data, ultrasonic sensor data obtained from the position data and direction data, and IMU data.
  • the aircraft model includes: a dynamic model for interacting with the target environment submodel, a control model for controlling an aircraft model flight attitude, and for using the control model A visual system model that provides visual data.
  • the device may further include:
  • a first input unit configured to input the first type of data into the vision system model
  • a first obtaining unit configured to obtain visual data obtained after the visual system model senses and navigates the first type of data
  • the first input unit is further configured to input the visual data into the control model.
  • the apparatus may further include:
  • a second input unit configured to input the second type of data into the control model
  • a second obtaining unit configured to obtain flight control data that is output after the control model performs virtual flight control on the aircraft according to the second type of data
  • An adjustment unit for adjusting flight control logic of the aircraft based on the flight control data.
  • the computing device may include a memory 620 connected through an internal bus 610 , a processor 630 , and an external interface 640 .
  • the memory 620 is configured to store machine readable instructions corresponding to control logic for obtaining flight simulation data
  • the processor 630 is configured to read the machine readable instructions on the memory 620 and execute the instructions to:
  • the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamically changing characteristics;
  • the first type of data is rendered and output, and the second type of data is directly output.
  • the processor 630 is specifically configured to output an environment sub-model list, where the environment sub-model list is selected when performing one or more target environment sub-models under the aircraft model to be simulated flight scene.
  • the dynamic environment model and the static environment model are included; one or more target environment sub-models selected by the user from the list of environment sub-models are obtained.
  • the processor 630 is specifically configured to determine a target flight scenario to be simulated by the aircraft when performing one or more target environment sub-models for acquiring an aircraft model to be simulated flight scene; One or more target environment sub-models corresponding to the target flight scene.
  • the memory 620 is further configured to pre-save the created aircraft model and the plurality of types of environment sub-models, and save the correspondence between different flight scenarios and different environment sub-model names.
  • the plurality of types of environment sub-models include a dynamic environment model and a static environment model.
  • the processor 630 when the processor 630 performs one or more target environment sub-models corresponding to the flight scene, the processor 630 is specifically configured to search the corresponding relationship according to the target flight scene to obtain the target flight scene.
  • the processor 630 is specifically configured to search the corresponding relationship according to the target flight scene to obtain the target flight scene.
  • Corresponding environment sub-model name; one or more target environment sub-models corresponding to the environment sub-model name are called from the saved plurality of types of environment sub-models.
  • the flight scene includes: a flight scene according to a change of the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; and a flight scene that changes according to the interference condition;
  • the static environment model in the environment sub-model includes one or more of the following sub-models: a terrain sub-model, a building sub-model;
  • the dynamic environment model in the environment sub-model includes one or more of the following sub-models: a weather system sub-model, a light source sub-model, an environment modifier sub-model, a moving object sub-model, and an interference sub-model.
  • the weather system sub-model includes a wind sub-model that passes wind speed fields of different geographic locations and Characterizing the correspondence of wind speed values;
  • the interference sub-model is simulated by a set electromagnetic model including: a magnetic field interference sub-model, a GPS interference sub-model, and a remote control control signal interference sub-model.
  • the processor 630 is configured to process the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data, specifically for determining the a target location of the dynamic object in the flight scene in the target dynamic environment model; according to the target location, the dynamic object is superimposed to a corresponding position in the target static environment model in the target environment submodel, and obtained as a merged model of the first type of data; and, by calculating flight state data of the aircraft model in the merged model, obtaining a second type of data.
  • the first type of data after rendering the merged model includes: image data and depth data;
  • the flight state data includes at least one of the following: position data of the aircraft model, distance data between the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model;
  • the second type of data includes at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, according to the Remote control signal strength data obtained from the distance data, ultrasonic sensor data obtained from the position data and direction data, and IMU data.
  • the aircraft model includes: a dynamic model for interacting with the target environment submodel, a control model for controlling an aircraft model flight attitude, and for using the control model A visual system model that provides visual data.
  • the processor 630 is further configured to input the first type of data into the visual system model, and obtain the visual system model to perform sensing and navigation processing on the first type of data. Thereafter, the obtained visual data; the visual data is input to the control model.
  • the processor 630 is further configured to input the second type of data into the control model; and obtain the control model to perform virtual flight control on the aircraft according to the second type of data. And outputting flight control data; adjusting flight control logic of the aircraft based on the flight control data.
  • the flow of obtaining flight simulation data shown in the embodiment of the present application may also be included in a computer readable storage medium, and the storage medium may be connected to a processing device that executes instructions for storing control for obtaining flight simulation data.
  • Logic-corresponding machine readable instructions executable by a processing device, the machine readable instructions being Implement the following operations:
  • target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
  • the first type of data is rendered and output, and the second type of data is directly output.
  • One or more target environment sub-models corresponding to the target flight scene are invoked.
  • the computer instructions are further processed as follows when executed:
  • One or more target environment sub-models corresponding to the environment sub-model name are called from the saved plurality of types of environment sub-models.
  • the flight scene includes: a flight scene that changes according to a weather system; a flight scene that changes according to a type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; a flight scene with changing conditions;
  • the static environment model in the environment sub-model includes one or more of the following sub-models: a terrain sub-model, a building sub-model;
  • the dynamic environment model in the environment sub-model includes one or more of the following sub-models: a weather system sub-model, a light source sub-model, an environment modifier sub-model, a moving object sub-model, and an interference sub-model.
  • the weather system sub-model includes a wind sub-model, and the wind sub-model is characterized by a corresponding relationship between wind speed fields and wind speed values of different geographic locations;
  • the interference sub-model is simulated by a set electromagnetic model including: a magnetic field interference sub-model, a GPS interference sub-model, and a remote control control signal interference sub-model.
  • the computer instruction is executed to process the interaction between each target environment sub-model and the aircraft model, and when the first type of data and the second type of data are obtained, the following processing is specifically performed:
  • a second type of data is obtained by calculating flight state data of the aircraft model in the merged model.
  • the first type of data after the rendering of the merged model includes: image data and depth data;
  • the flight state data includes at least one of the following: position data of the aircraft model, distance data between the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model;
  • the second type of data includes at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, according to the Remote control signal strength data obtained from the distance data, ultrasonic sensor data obtained from the position data and direction data, and IMU data.
  • the aircraft model includes: a dynamic model for interacting with the target environment submodel, a control model for controlling an aircraft model flight attitude, and for using the control model A visual system model that provides visual data.
  • the computer instructions are further processed as follows when executed:
  • the visual data is input to the control model.
  • the computer instructions are further processed as follows when executed:
  • the flight control logic of the aircraft is adjusted based on the flight control data.
  • the device embodiment since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
  • Embodiments of the subject matter and functional operations described in this specification can be implemented in the following: digital electronic circuits, tangible embodied computer software or firmware, computer hardware including the structures disclosed in the specification and their structural equivalents, or One or more combinations.
  • Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one of computer program instructions encoded on a tangible, non-transitory program carrier to be executed by a data processing device or to control operation of a data processing device or Multiple modules.
  • the program instructions may be encoded on an artificially generated propagating signal, such as a machine-generated electrical, optical or electromagnetic signal that is generated to encode and transmit the information to a suitable receiver device for data
  • the processing device executes.
  • the computer storage medium can be a machine readable storage device, a machine readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
  • the processes and logic flows described in this specification can be performed by one or more of executing one or more computer programs
  • the programmable computer executes to perform the corresponding function by operating according to the input data and generating an output.
  • the processing and logic flow may also be performed by dedicated logic circuitry, such as an FPGA (Field Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit), and the apparatus may also be implemented as dedicated logic circuitry.
  • FPGA Field Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • Computers suitable for the execution of a computer program include, for example, a general purpose and/or special purpose microprocessor, or any other type of central processing unit.
  • the central processing unit will receive instructions and data from a read only memory and/or a random access memory.
  • the basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data.
  • the computer will also include one or more mass storage devices for storing data, such as a magnetic disk, magneto-optical disk or optical disk, or the like, or the computer will be operatively coupled to the mass storage device for receiving data or It transmits data, or both.
  • the computer does not have to have such a device.
  • the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or, for example, a universal serial bus (USB) ) Portable storage devices for flash drives, to name a few.
  • PDA personal digital assistant
  • GPS global positioning system
  • USB universal serial bus
  • Computer readable media suitable for storing computer program instructions and data include all forms of nonvolatile memory, media and memory devices including, for example, semiconductor memory devices (eg, EPROM, EEPROM, and flash memory devices), magnetic disks (eg, internal hard drives or Mobile disk), magneto-optical disks, and CD ROM and DVD-ROM disks.
  • semiconductor memory devices eg, EPROM, EEPROM, and flash memory devices
  • magnetic disks eg, internal hard drives or Mobile disk
  • magneto-optical disks e.g, CD ROM and DVD-ROM disks.
  • the processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.

Abstract

A method for obtaining flight simulation data, comprising: acquiring one or more target environment sub-models of an aircraft model in a flight scene to be simulated, the target environment sub-model including a target dynamic environment model, the dynamic environment model being a model created for environmental factors having a dynamic change characteristic; processing the interaction between each target environment sub-model and the aircraft model to obtain a first type of data and a second type of data; and rendering the first type of data and outputting the rendered data, and directly outputting the second type of data. The method can effectively simulate various possible scenes in the real world and can provide more realistic and accurate simulation data to the development process of an aircraft, thus providing effective assistance for an aircraft under development. An apparatus for obtaining flight simulation data, a computer readable storage medium, and a computing device are all used to implement the described method.

Description

获得飞行模拟数据的方法、装置、存储介质及设备Method, device, storage medium and device for obtaining flight simulation data 技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种获得飞行模拟数据的方法、装置、存储介质及设备。The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a storage medium, and a device for obtaining flight simulation data.
背景技术Background technique
目前飞行器有比较广泛的应用,为了保证飞行器在实际飞行过程中能够应对各种场景变化,会相应设计飞行模拟器,对飞行器的飞行过程进行模拟仿真,从而依据仿真结果优化飞行器的各种参数配置,以及控制性能等。At present, the aircraft has a wide range of applications. In order to ensure that the aircraft can cope with various scene changes during the actual flight process, the flight simulator will be designed accordingly, and the flight process of the aircraft will be simulated to optimize the various parameters of the aircraft according to the simulation results. , as well as control performance and so on.
相关技术中,通常采用机器人模拟器对飞行过程进行仿真,这种仿真结果只能模拟比较理想化的静态环境场景,导致飞行器在实际飞行过程中,面对复杂多变的场景和环境时,仍然需要做比较多的调整,在一些极端环境下,甚至可能导致飞行器失效,因此现有飞行模拟器由于比较简单,因此根据其所得到的飞行模拟数据难以对飞行器的实际飞行过程进行有效辅助。In the related art, the flight simulator is usually simulated by a robot simulator. The simulation result can only simulate an idealized static environment scene, and the aircraft still faces the complicated and varied scenes and environments during the actual flight process. More adjustments are needed. In some extreme environments, the aircraft may even be ineffective. Therefore, the existing flight simulator is relatively simple, so it is difficult to effectively assist the actual flight process of the aircraft based on the flight simulation data obtained.
发明内容Summary of the invention
本申请提供一种获得飞行模拟数据的方法、装置、存储介质及设备。The application provides a method, device, storage medium and device for obtaining flight simulation data.
依据本申请的第一方面,提供一种获得飞行模拟数据的方法,所述方法包括:According to a first aspect of the present application, a method of obtaining flight simulation data is provided, the method comprising:
获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;Obtaining one or more target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;Processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data;
对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。The first type of data is rendered and output, and the second type of data is directly output.
依据本申请的第二方面,提供一种获得飞行模拟数据的装置,包括:According to a second aspect of the present application, an apparatus for obtaining flight simulation data is provided, comprising:
获取单元,用于获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型; An acquiring unit, configured to acquire one or more target environment sub-models in an aircraft model to be simulated flight scenario, where the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is for an environmental factor having dynamic changing characteristics Created model;
处理单元,用于处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;a processing unit, configured to process interaction between each target environment sub-model and the aircraft model to obtain first type data and second type data;
输出单元,用于对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。And an output unit, configured to output the first type of data after being rendered, and directly output the second type of data.
依据本申请的第三方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如下操作:According to a third aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program, the program being executed by a processor to:
获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;Obtaining one or more target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;Processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data;
对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。The first type of data is rendered and output, and the second type of data is directly output.
依据本申请的第四方面,提供一种计算设备,其特征在于,包括通过内部总线连接的存储器、处理器和外部接口,According to a fourth aspect of the present application, a computing device is provided, comprising a memory, a processor and an external interface connected by an internal bus,
所述存储器,用于存储获得飞行模拟数据的控制逻辑对应的机器可读指令;The memory is configured to store machine readable instructions corresponding to control logic for obtaining flight simulation data;
所述处理器,用于读取所述存储器上的所述机器可读指令,并执行所述指令以实现如下操作:The processor is configured to read the machine readable instructions on the memory and execute the instructions to:
获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;Obtaining one or more target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;Processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data;
对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。The first type of data is rendered and output, and the second type of data is directly output.
由以上本申请实施例提供的技术方案可见,本申请由于通过所建立的不同动态环境模型,在模拟飞行器飞行的场景时,通过对多个场景的子模型进行合并处理和渲染,最终输出的飞行模拟数据,可以有效对真实世界的各种可能场景进行模拟,因此能够向飞行器的开发过程提供更加真实和准确的仿真数据,从而可以为开发过程中的飞行器提供有效辅助,比如,可以优化传感器的参数配置、优化包括控制算法、导航算法等在内的各种算法。It can be seen from the technical solutions provided by the above embodiments of the present application that the present application combines the processing and rendering of the sub-models of multiple scenes by simulating the flight scene of the aircraft through the different dynamic environment models established, and finally outputs the flight. The simulation data can effectively simulate various possible scenes in the real world, so it can provide more realistic and accurate simulation data to the development process of the aircraft, which can provide effective assistance for the aircraft in the development process, for example, the sensor can be optimized. Parameter configuration and optimization include various algorithms including control algorithms and navigation algorithms.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附 图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following description of the embodiments is required. BRIEF DESCRIPTION OF THE DRAWINGS The drawings in the following description are merely illustrative of some embodiments of the present application, and may be obtained by those skilled in the art without departing from the scope of the invention. Other drawings.
图1是本申请实施例的应用场景示意图;FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application;
图2是本申请实施例的原理示意图;2 is a schematic diagram of the principle of the embodiment of the present application;
图3是本申请获得飞行模拟数据的方法的一个实施例流程图;3 is a flow chart of one embodiment of a method for obtaining flight simulation data in the present application;
图4是本申请获得飞行模拟数据的方法的另一个实施例流程图;4 is a flow chart of another embodiment of a method for obtaining flight simulation data in the present application;
图5是本申请获得飞行模拟数据的装置的实施例框图;5 is a block diagram of an embodiment of an apparatus for obtaining flight simulation data of the present application;
图6是本申请计算设备的实施例框图。6 is a block diagram of an embodiment of a computing device of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。另外,在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application. Further, the features of the following embodiments and examples may be combined with each other without conflict.
飞行模拟器可以对飞行器的飞行过程进行高拟真度的仿真,通过仿真得到的飞行模拟数据,可以用来优化飞行器的传感器参数配置,以及优化各种飞行控制算法和导航控制算法等。飞行模拟器的功能性体现在能够针对复杂多变的环境提供更接近于真实场景的模拟,相关技术中的飞行模拟器通常只能模拟比较理想化的场景,因此难以对飞行器的实际飞行过程进行有效辅助。The flight simulator can simulate the flight of the aircraft with high fidelity. The flight simulation data obtained by the simulation can be used to optimize the sensor parameter configuration of the aircraft and optimize various flight control algorithms and navigation control algorithms. The functionality of the flight simulator is reflected in the ability to provide simulations that are closer to the real scene for complex and variable environments. The flight simulators in the related art can usually only simulate idealized scenes, so it is difficult to carry out the actual flight process of the aircraft. Effective assistance.
参见图1,为本申请实施例的应用场景示意图:FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application:
图1中,飞行模拟器作为一种APP(Application,应用),可以安装在终端设备中,例如,手机、平板电脑等,在实际应用中,当用户打开飞行模拟APP,即可进入飞行模拟控制界面,此时用户可以通过在飞行模拟控制界面上进行操作,向飞行器模型输入各种模拟指令,从而在终端设备上呈现飞行器模型的飞行模拟画面,以此可以获得各种飞行模拟数据。本申请实施例为了使飞行模拟器可以模拟更多真实场景,尤其是动态变化的场景,可以预先建立不同的动态环境模型,从而在模拟飞行器飞行的场景时,通过对多个场景的子模型进行合并处理和渲染,使得最终输出的飞行模拟数据可以有效对真实世界的各种可能场景进行模拟。 In Fig. 1, the flight simulator is an APP (Application), which can be installed in a terminal device, for example, a mobile phone, a tablet computer, etc. In practical applications, when the user opens the flight simulation APP, the flight simulation control can be entered. Interface, at this time, the user can input various simulation commands to the aircraft model by operating on the flight simulation control interface, thereby presenting a flight simulation image of the aircraft model on the terminal device, thereby obtaining various flight simulation data. In order to enable the flight simulator to simulate more real scenes, especially dynamically changing scenes, different dynamic environment models may be established in advance, so as to simulate sub-models of multiple scenes when simulating the scene of the aircraft flying. Merge processing and rendering, so that the final output of flight simulation data can effectively simulate various possible scenarios in the real world.
参见图2,为本申请获得飞行模拟数据的实施例的原理示意图:Referring to FIG. 2, a schematic diagram of an embodiment of obtaining flight simulation data according to the present application is shown:
图2所示的原理图中包括:预先创建的多个模型和处理系统。上述多个模型可以保存在存储器中,多个模型可以包括:表示环境中包含状态稳定且对象不会产生移动的静态环境模型;包含有状态可变,且对象可能发生移动的动态环境模型;以及用于对实际飞行器的外观和飞控进行模拟的飞行器模型。上述处理系统可以在模拟飞行器飞行的场景时,从存储器中调用飞行器模型,以及被选中的静态环境模型和动态环境模型等,通过对上述模型之间的交互进行合并处理和渲染,输出作为第一类数据的图像数据和深度数据,并且可以直接输出作为第二类数据的无需渲染处理的传感器类数据,上述两部分数据合称为飞行模拟数据。The schematic shown in Figure 2 includes a plurality of pre-created models and processing systems. The plurality of models may be stored in a memory, and the plurality of models may include: a static environment model indicating that the environment is stable in the environment and the object does not move; and a dynamic environment model including a state change and the object may move; An aircraft model used to simulate the appearance and flight control of an actual aircraft. The processing system can call the aircraft model from the memory, and the selected static environment model and the dynamic environment model, etc., by combining the processing and rendering of the interaction between the models, and outputting as the first Image data and depth data of the class data, and sensor type data without rendering processing as the second type of data can be directly output, and the above two pieces of data are collectively referred to as flight simulation data.
下面结合附图1和附图2对本申请实施例进行详细描述。The embodiments of the present application are described in detail below with reference to FIG. 1 and FIG.
参见图3,为本申请获得飞行模拟数据的方法的一个实施例流程图,包括下述步骤:Referring to FIG. 3, a flow chart of an embodiment of a method for obtaining flight simulation data according to the present application includes the following steps:
步骤301:获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,目标环境子模型中包括目标动态环境模型。Step 301: Acquire one or more target environment sub-models in the aircraft model to be simulated flight scenario, and the target environment sub-model includes the target dynamic environment model.
本申请实施例中,飞行模拟器可以在一个或多个环境子模型组成的飞行场景下对飞行器模型的飞行过程进行模拟。In the embodiment of the present application, the flight simulator may simulate the flight process of the aircraft model in a flight scenario composed of one or more environmental sub-models.
其中,飞行器模型可以包括:用于与目标环境子模型进行交互的动力模型,用于控制飞行器模型飞行姿态的控制模型,以及用于为控制模型提供视觉数据的视觉系统模型;环境子模型可以包括静态环境模型和动态环境模型;飞行场景可以包括:依据天气系统变化的飞行场景;依据光源类型变化的飞行场景;依据环境修饰变化的飞行场景;依据对象移动变化的飞行场景;依据干扰情况变化的飞行场景。Wherein, the aircraft model may include: a dynamic model for interacting with the target environment submodel, a control model for controlling the flight attitude of the aircraft model, and a visual system model for providing visual data for the control model; the environmental submodel may include The static environment model and the dynamic environment model; the flight scene may include: a flight scene that changes according to the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; Flight scene.
在一个可选的实现方式中,静态环境模型通常表示环境中包含状态稳定且不会产生移动的对象,静态环境模型可以包括一个或多个下述子模型:地形子模型、建筑物子模型。In an alternative implementation, the static environment model generally represents an object in the environment that contains state stability and does not create movement. The static environment model may include one or more of the following sub-models: a terrain sub-model, a building sub-model.
在一个例子中,地形子模型可以用于模拟生成对地超声波数据,超声波数据是由物理引擎从飞行器底部的超声波发射器发射出的多束射线与地表模型发生碰撞而生成的距离数据,超声波数据可以为飞行控制逻辑提供降落时的参考,也可以提供导航时的地形跟随功能等。以为飞行控制提供降落时的控制逻辑为例,通过超声波数据可以获得飞行器距离地面的高度,在飞行器降落时通过实时监测超声波数据,当飞行器接近地表时强制飞行器减速,控制飞行器的速度上限与飞行器距离地面的距离成正比;以提供导航时的地形跟随功能为例,通过记录初始开启该功能时飞行器的初始高度,实时比较飞行器当前距离地面的高度与初始高度,当高于初始高度,控制飞行器降低,当低于初始高度,控制飞行器升高。 In one example, the terrain submodel can be used to simulate the generation of ultrasonic data to the ground. The ultrasonic data is the distance data generated by the physics engine from the collision of multiple beams emitted by the ultrasonic transmitter at the bottom of the aircraft with the surface model. The flight control logic can be provided with a reference for landing, or a terrain following function for navigation. Taking flight control as the example of the control logic when landing, the height of the aircraft from the ground can be obtained by ultrasonic data. The ultrasonic data is monitored in real time when the aircraft is landing. When the aircraft approaches the surface, the aircraft is decelerated, and the upper limit of the aircraft and the distance of the aircraft are controlled. Taking the distance of the ground as a direct example; taking the terrain following function when providing navigation as an example, by recording the initial height of the aircraft when the function is initially turned on, the altitude and the initial height of the aircraft from the ground are compared in real time, and when the altitude is higher than the initial height, the control aircraft is lowered. When the altitude is lower than the initial height, the control aircraft is raised.
在另一个例子中,建筑物子模型可以用于模拟飞行器所拍摄图像中,图像数据和深度数据中的障碍物信息,通过识别出建筑物的距离、位置等信息,可以指定飞行器的避障策略、绕行策略等。In another example, the building sub-model can be used to simulate obstacle information in image data and depth data captured by the aircraft. By identifying the distance, location, etc. of the building, the obstacle avoidance strategy of the aircraft can be specified. , bypass strategy, etc.
动态环境模型是针对具有动态变化特性的环境因素所创建的模型,通常表示环境中包含有状态可变,且可能发生移动的对象,动态环境模型可以包括一个或多个下述子模型:天气系统子模型、光源子模型、环境修饰子模型、移动对象子模型、干扰子模型。A dynamic environment model is a model created for environmental factors with dynamically changing characteristics. It usually indicates that the environment contains objects that are state-variable and may move. The dynamic environment model may include one or more of the following sub-models: Weather System Submodel, light source submodel, environment modifier submodel, moving object submodel, and interference submodel.
在一个例子中,光源子模型可以用于模拟对飞行器所拍摄图像亮度的影响,在图像出现过曝光,或者局部过曝光时,飞行器的视觉系统可能失效,视觉系统可以包括感知功能模块和导航功能模块,其中感知功能模块可以用于通过机载相机拍摄的图像数据计算出飞行器的位置,或者通过超声波传感器感知一定范围内的物体,导航功能模块可以用于通过机载相机拍摄的图像数据规划飞行器的导航数据,导航数据可以包括飞行器的导航飞行路线数据和飞行行为数据,因此通过光源子模型可以测试飞行器在视觉系统失效后,是否能够保持安全飞行,或者是否能够在图像亮度恢复正常后,恢复视觉系统功能。同理的,环境修饰子模型中的地面积雪模型可以用于模拟积雪反光对图像造成过曝光的情况,在地面积雪环境中,由于拍摄图像为白色,因此飞行器的视觉系统难以从中提取足够的特征点,通过地面积雪模型同样可以测试飞行器的视觉系统功能。In one example, the sub-model of the light source can be used to simulate the effect on the brightness of the image captured by the aircraft. When the image is overexposed or partially overexposed, the vision system of the aircraft may fail. The vision system may include a sensing function module and a navigation function. a module, wherein the sensing function module can be used to calculate the position of the aircraft by image data captured by the onboard camera, or to perceive an object within a certain range by the ultrasonic sensor, and the navigation function module can be used to plan the aircraft for image data taken by the onboard camera. Navigation data, the navigation data may include the navigation flight path data and flight behavior data of the aircraft, so the light source sub-model can be used to test whether the aircraft can maintain safe flight after the vision system fails, or whether it can be restored after the image brightness returns to normal. Visual system function. Similarly, the snow model in the environmental modifier model can be used to simulate the overexposure of the image by snow reflection. In the snow environment, the image of the aircraft is difficult to extract because the image is white. With enough feature points, the visual system function of the aircraft can also be tested by the ground area snow model.
在另一个例子中,天气系统子模型中的雨雪子模型可以用于模拟对飞行器所拍摄图像的噪声影响,在飞行器拍摄的图像画面中,如果有雨雪,相当于在图像中加入了噪声,因此可以测试视觉算法的稳健性,以及过滤噪声的性能,进一步地,通过对恶劣天气的模拟,例如,暴雨或者暴雪等,可以测试得出视觉算法的界限,从而得到飞行器的安全飞行界限。In another example, the rain-snow sub-model in the weather system sub-model can be used to simulate the noise impact on the image captured by the aircraft. In the image picture taken by the aircraft, if there is rain or snow, it is equivalent to adding noise to the image. Therefore, it is possible to test the robustness of the visual algorithm and the performance of filtering noise. Further, by simulating the bad weather, for example, heavy rain or blizzard, the boundary of the visual algorithm can be tested to obtain the safe flight limit of the aircraft.
在另一个例子中,移动对象子模型可以用于模拟场景中的人物、动物、车辆等,相应的飞行器模型可以模拟生成主相机图像码流,并将该图像码流传输至导航算法模块进行高级功能的开发测试,例如对车辆进行追踪或者环绕,识别人的手势等。In another example, the moving object submodel can be used to simulate people, animals, vehicles, etc. in the scene, and the corresponding aircraft model can simulate generating a main camera image code stream and transmit the image code stream to the navigation algorithm module for advanced Functional development tests, such as tracking or wrapping vehicles, recognizing human gestures, etc.
上述例子中的动态环境模型均可以用于模拟生成视觉图像信息,以及对飞行器的视觉系统进行验证。其中,视觉图像通常为灰度图像,主相机图像码流通常为彩图码流。The dynamic environment models in the above examples can be used to simulate the generation of visual image information and to verify the visual system of the aircraft. Among them, the visual image is usually a grayscale image, and the main camera image code stream is usually a color image stream.
本步骤中,当要进入飞行模拟状态时,可以通过不同的方式,先获取飞行器待模拟飞行场景下的一个或多个环境子模型,上述一个或多个环境子模型称为目标环境子模型。In this step, when the flight simulation state is to be entered, one or more environment sub-models of the aircraft to be simulated flight scene may be acquired in different manners, and the one or more environment sub-models are referred to as the target environment sub-model.
通常一个或多个环境子模型可以映射为某一特定飞行场景,或者,不同的飞行场景可以对应一个或多个环境子模型。基于此,提供如下两种获取目标环境子模型的可选实现方式: Typically one or more environment submodels may be mapped to a particular flight scenario, or different flight scenarios may correspond to one or more environment submodels. Based on this, two alternative implementations for obtaining the target environment submodel are provided:
在一个可选的实现方式中:当进入飞行模拟状态时,可以在显示界面直接输出环境子模型列表,该环境子模型列表中包括所有预先设置的动态环境模型和静态环境模型,用户可以根据想要模拟的飞行场景,从环境子模型列表中选择一个或多个目标环境子模型,即上述目标环境子模型映射为一个目标飞行场景,其中上述一个或多个目标环境子模型中包括动态环境模型,进一步也可以包括静态环境模型。In an optional implementation manner, when entering the flight simulation state, the environment sub-model list may be directly outputted on the display interface, and the environment sub-model list includes all the preset dynamic environment models and static environment models, and the user may To simulate a flight scenario, select one or more target environment sub-models from the list of environment sub-models, that is, the target environment sub-model is mapped to a target flight scenario, wherein the one or more target environment sub-models include a dynamic environment model Further, a static environment model can also be included.
在另一个可选的实现方式中:可以预先保存所创建的飞行器模型和多个类型的环境子模型,以及保存不同飞行场景与不同环境子模型名称之间的对应关系,当进入飞行模拟状态时,可以在显示界面直接输出多个飞行场景供用户选择,并将用户选择的结果确定为飞行器模型待模拟的目标飞行场景,根据目标飞行场景查找上述对应关系,从而调用与目标飞行场景对应的一个或多个目标环境子模型。In another optional implementation manner, the created aircraft model and the plurality of types of environment sub-models may be pre-stored, and the correspondence between different flight scenes and different environment sub-model names may be saved when entering the flight simulation state. The plurality of flight scenes can be directly outputted on the display interface for the user to select, and the result selected by the user is determined as the target flight scene to be simulated by the aircraft model, and the corresponding relationship is searched according to the target flight scene, thereby calling one corresponding to the target flight scene. Or multiple target environment submodels.
步骤302:处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据。Step 302: Process interaction between each target environment sub-model and the aircraft model to obtain first type data and second type data.
本步骤中,在获得第一类数据时,可以先确定目标环境子模型中的目标动态环境模型中,动态对象在飞行场景中所在的目标位置,然后按照该目标位置,将动态对象叠加到目标环境子模型中的目标静态环境模型中的相应位置,从而获得作为第一类数据的合并模型。In this step, when obtaining the first type of data, the target position of the dynamic object in the flight scene in the target dynamic environment model in the target environment sub-model may be determined first, and then the dynamic object is superimposed to the target according to the target position. The corresponding position in the target static environment model in the environment submodel, thereby obtaining a merged model as the first type of data.
本步骤中,在获得第二类数据时,可以计算飞行器模型在合并模型中的飞行状态数据,获得第二类数据。其中,所述飞行状态数据可以包括至少一种下述数据:飞行器模型的位置数据,飞行器模型与遥控器的距离数据、飞行器模型的高度数据、飞行器模型的方向数据。相应的,第二类数据可以包括至少一种下述传感器类数据:根据位置数据获得的GPS数据,根据方向数据获得的指南针数据、根据高度数据获得的气压计数据、根据距离数据获得的遥控器信号强度数据、根据位置数据和方向数据获得的超声传感器数据、以及IMU数据等。In this step, when the second type of data is obtained, the flight state data of the aircraft model in the merged model can be calculated to obtain the second type of data. Wherein, the flight state data may include at least one of the following data: position data of the aircraft model, distance data of the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model. Correspondingly, the second type of data may include at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, and a remote controller obtained from the distance data Signal strength data, ultrasonic sensor data obtained from position data and direction data, and IMU data, and the like.
步骤303:对第一类数据进行渲染后输出,以及直接输出第二类数据。Step 303: Perform rendering on the first type of data, and directly output the second type of data.
本步骤中,在获得作为第一类数据的合并模型后,可以对合并模型进行渲染,渲染过程可以采用现有各种渲染算法,在此不再赘述。渲染后的第一类数据可以包括:图像数据和深度数据。In this step, after obtaining the merged model as the first type of data, the merged model may be rendered, and the rendering process may adopt various existing rendering algorithms, which are not described herein. The first type of data after rendering can include: image data and depth data.
由上述实施例可见,该实施例通过所建立的不同动态环境模型,在模拟飞行器飞行的场景时,通过对多个场景的子模型进行合并处理和渲染,最终输出的飞行模拟数据,可以有效对真实世界的各种可能场景进行模拟,因此能够向飞行器的开发过程提供更加真实和准确的仿真数据,从而可以为开发过程中的飞行器提供有效辅助。 It can be seen from the above embodiment that the embodiment uses the different dynamic environment models to simulate the flight scene of the aircraft, and combines and renders the sub-models of the multiple scenes, and finally outputs the flight simulation data, which can be effectively The real world's various possible scenarios are simulated, so that more realistic and accurate simulation data can be provided to the aircraft development process, which can provide effective assistance for the aircraft during development.
参见图4,为本申请获得飞行模拟数据的方法的另一个实施例流程图,该实施详细示出了获得飞行模拟数据以及根据该飞行模拟数据进行飞控调整的过程:Referring to FIG. 4, a flow chart of another embodiment of a method for obtaining flight simulation data according to the present application, illustrates in detail a process of obtaining flight simulation data and performing flight control adjustment according to the flight simulation data:
步骤401:预先保存所创建的飞行器模型和多个类型的环境子模型,以及保存不同飞行场景与不同环境子模型名称之间的对应关系,其中,多个类型的环境子模型包括动态环境模型和静态环境模型。Step 401: Pre-storing the created aircraft model and multiple types of environment sub-models, and preserving the correspondence between different flight scenarios and different environment sub-model names, wherein the plurality of types of environment sub-models include a dynamic environment model and Static environment model.
本实施例中,用于模拟实际飞行器的飞行器模型可以包括:用于与环境子模型进行交互的动力模型,用于控制飞行器模型飞行姿态的控制模型,以及用于为所述控制模型提供视觉数据的视觉系统模型。In this embodiment, the aircraft model for simulating the actual aircraft may include: a dynamic model for interacting with the environment submodel, a control model for controlling the flight attitude of the aircraft model, and for providing visual data for the control model Visual system model.
其中,环境子模型可以包括静态环境模型和动态环境模型。静态环境模型通常表示环境中包含状态稳定且不会产生移动的对象,静态环境模型可以包括一个或多个下述子模型:地形子模型,比如高山、平原等;建筑物子模型,比如楼房、商厦等;动态环境模型是针对具有动态变化特性的环境因素所创建的模型,通常表示环境中包含有状态可变,且可能发生移动的对象,动态环境模型可以包括一个或多个下述子模型:天气系统子模型,比如云、风、雨、雪等;光源子模型,比如直射光源、散射光源、点光源、平行光源等;环境修饰子模型,比如地面积雪,地面积水等;移动对象子模型,比如动物、人、交通工具等;干扰子模型,比如磁场干扰、GPS干扰、控制信号干扰等。The environment sub-model may include a static environment model and a dynamic environment model. The static environment model usually represents an object in the environment that contains stable state and does not move. The static environment model can include one or more of the following sub-models: terrain sub-models such as mountains, plains, etc.; building sub-models, such as buildings, Commercial buildings, etc.; dynamic environment models are models created for environmental factors with dynamically changing characteristics, usually indicating that the environment contains objects that are state-variable and may move. The dynamic environment model may include one or more of the following sub-models. : weather system sub-models, such as clouds, wind, rain, snow, etc.; light source sub-models, such as direct light source, scattered light source, point light source, parallel light source, etc.; environmental modifier sub-model, such as ground area snow, ground area water, etc.; Object submodels, such as animals, people, vehicles, etc.; interference submodels, such as magnetic field interference, GPS interference, control signal interference, etc.
上述动态环境模型的子模型可以通过相关技术中的算法和公式模型进行表征,下面结合几个例子对子模型的建立过程进行描述:The sub-model of the above dynamic environment model can be characterized by the algorithm and formula model in the related technology. The following describes the process of establishing the sub-model with several examples:
以建立风力模型为例,通常可以根据不同的地理区域计算出相应区域的平均风力大小,然后在这个风力的基础上,叠加一个间歇风,用以模拟相应区域的动态风,间歇风可以通过正弦信号y=sin(wt)进行表征,其中,w为间歇频率,t为时间,y为风力大小。Taking the wind model as an example, the average wind power of the corresponding area can usually be calculated according to different geographical regions, and then an intermittent wind is superimposed on the basis of the wind to simulate the dynamic wind of the corresponding area, and the intermittent wind can pass the sine The signal y = sin(wt) is characterized, where w is the intermittent frequency, t is the time, and y is the wind power.
以建立磁场干扰模型为例,可以在飞行器模型四周设置条形磁铁作为干扰磁场,然后通过叠加地磁磁场和条形磁铁磁场,从而实现对地磁信号的干扰。其中,条形磁铁的数学模型和地磁磁场的数学模型可以采用相关技术中的模型,例如,地磁磁场的数学模型可以采用世界磁场模型(World Magnetic Model)2015,条形磁铁的数学模型可以基于毕奥-萨伐尔定律建立一个由稳定电流产生的磁场,其可以通过公式表征为
Figure PCTCN2017099113-appb-000001
其中,I为源电流,L'为积分路径,dl'为源电流的微小线元素。
Taking the magnetic field interference model as an example, a strip magnet can be arranged around the aircraft model as the interference magnetic field, and then the magnetic field and the strip magnet magnetic field are superimposed to realize the interference to the geomagnetic signal. Among them, the mathematical model of the strip magnet and the mathematical model of the geomagnetic field can adopt the model in the related art. For example, the mathematical model of the geomagnetic field can adopt the World Magnetic Model 2015, and the mathematical model of the strip magnet can be based on O.-Savar's law establishes a magnetic field generated by a steady current, which can be characterized by a formula
Figure PCTCN2017099113-appb-000001
Where I is the source current, L' is the integral path, and dl' is the tiny line element of the source current.
以建立GPS干扰模型为例,GPS通信采用的标准为NMEA 0183标准,因此可以通过改 变GPGGA(GPS固定数据输出语句)中使用卫星的数量以及水平精确度来模拟GPS干扰。Taking the establishment of the GPS interference model as an example, the standard used for GPS communication is the NMEA 0183 standard, so it can be changed. The number of satellites used in the GPGGA (GPS fixed data output statement) and the horizontal accuracy are used to simulate GPS interference.
以建立控制信号干扰为例,可以通过阻断遥控器与飞行器模型之间的通信来实现干扰。Taking the establishment of control signal interference as an example, interference can be achieved by blocking communication between the remote control and the aircraft model.
其中,飞行场景可以包括:依据天气系统变化的飞行场景;依据光源类型变化的飞行场景;依据环境修饰变化的飞行场景;依据对象移动变化的飞行场景;依据干扰情况变化的飞行场景。由于不同的飞行场景可以对应一个或多个环境子模型,因此本实施例中可以预先创建不同飞行场景与不同环境子模型之间的对应关系,例如,The flight scene may include: a flight scene that changes according to the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; and a flight scene that changes according to the interference situation. Since different flight scenarios can correspond to one or more environment sub-models, the correspondence between different flight scenarios and different environment sub-models can be created in advance in this embodiment, for example,
上述飞行器模型和多个类型的环境子模型可以通过各种数学公式进行表征,各种模型和上述创建的对应关系可以保存在存储器中。The above aircraft model and multiple types of environment sub-models can be characterized by various mathematical formulas, and the corresponding relationships between the various models and the above-described creation can be saved in the memory.
步骤402:确定飞行器待模拟的目标飞行场景;Step 402: Determine a target flight scenario to be simulated by the aircraft;
当进入飞行模拟状态时,可以在显示界面直接输出多个飞行场景供用户选择,并将用户选择的结果确定为飞行器模型待模拟的目标飞行场景。在一个可选的实现方式中,用户的选择结果可以为多个飞行场景,例如,可以同时包括下雪天的飞行场景和地面包含积雪的飞行场景。When entering the flight simulation state, multiple flight scenarios can be directly output on the display interface for the user to select, and the result selected by the user is determined as the target flight scenario to be simulated by the aircraft model. In an alternative implementation, the user's selection result may be a plurality of flight scenes, for example, a flight scene that includes both snow and a ground scene containing snow.
步骤403:根据目标飞行场景查找不同飞行场景与不同环境子模型名称之间的对应关系,获得与该目标飞行场景对应的环境子模型名称。Step 403: Find a correspondence between different flight scenarios and different environment sub-model names according to the target flight scenario, and obtain an environment sub-model name corresponding to the target flight scenario.
步骤404:从所保存的多个类型的环境子模型中调用与该环境子模型名称对应的一个或多个目标环境子模型。Step 404: Invoke one or more target environment sub-models corresponding to the environment sub-model name from the saved multiple types of environment sub-models.
步骤405:处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据,分别执行步骤406和步骤410。Step 405: Process the interaction between each target environment sub-model and the aircraft model, obtain the first type of data and the second type of data, and perform steps 406 and 410 respectively.
本实施例中,可以利用现有的各种物理系统模型,实现对环境子模型和飞行器模型的交互进行模拟,包括:可以采用力学物理模型模拟对飞行器的碰撞和重力对飞行器的影响,可以采用电磁学模型模拟飞行控制信号的衰减,屏蔽,和电磁学干扰等,可以利用磁体模型模拟磁场对飞行器指南针的干扰,可以利用流体力学模型模拟风力、空气阻力、飞行器的螺旋桨动力等。下面通过几个具体可选实现方式对上述物理模型进行描述:In this embodiment, the interaction between the environment sub-model and the aircraft model can be simulated by using various existing physical system models, including: the mechanical physical model can be used to simulate the collision of the aircraft and the influence of gravity on the aircraft, which can be adopted. The electromagnetic model simulates the attenuation, shielding, and electromagnetic interference of the flight control signal. The magnet model can be used to simulate the interference of the magnetic field on the compass of the aircraft. The hydrodynamic model can be used to simulate the wind, air resistance, and propeller power of the aircraft. The above physical model is described below through several specific alternative implementations:
在一个可选实现方式中,环境模型和飞行器模型进行交互的物理模型可以包括:在不同机身运动速度以及螺旋桨转速下,飞行器和空气的相互作用力模型,该相互作用力模型用于在获得飞行器模型相对于空气的作用力后,通过将作用力与机身重力进行合成,获得飞行器的飞行状态信息,例如飞行器机身的运动加速度、角加速度等。 In an alternative implementation, the physical model interacting with the aircraft model and the aircraft model may include: an interaction force model of the aircraft and the air at different body motion speeds and propeller speeds, the interaction force model being used to obtain After the force of the aircraft model relative to the air, the flight state information of the aircraft, such as the motion acceleration and angular acceleration of the aircraft fuselage, is obtained by synthesizing the force with the gravity of the fuselage.
在另一个可选实现方式中,包含建筑物的静态环境模型和包含风力系统的动态环境模型进行交互时,由于建筑物高度和体积的不同,在建筑物的不同位置,风速值可能不同。因此在通过流体力学模型模拟风力时,可以预先创建不同位置的风速场,风速场可以为时间的函数,从而实现对风速变化和湍流的模拟。In another alternative implementation, when the static environment model containing the building interacts with the dynamic environment model containing the wind system, the wind speed values may be different at different locations of the building due to differences in building height and volume. Therefore, when simulating wind power through a hydrodynamic model, wind speed fields at different positions can be created in advance, and the wind speed field can be a function of time, thereby simulating wind speed variation and turbulence.
本步骤中,在获得第一类数据时,可以先确定目标环境子模型中的目标动态环境模型中,动态对象在飞行场景中所在的目标位置,然后按照该目标位置,将动态对象叠加到目标环境子模型中的目标静态环境模型中的相应位置,从而获得作为第一类数据的合并模型。例如,在一个飞行器模型模拟的飞行场景中,目标静态环境模型包括建筑物,目标动态环境模型包括行驶中的汽车(移动对象子模型)和飘落的雪花(天气系统子模型),则可以在目标静态环境和目标静态环境具有的同一背景环境中,先确定汽车和雪花的位置,然后按照该位置,将汽车和雪花叠加到包含建筑物的背景环境中的相应位置,从而获得由目标静态环境模型和目标动态环境模型组成的合并模型。In this step, when obtaining the first type of data, the target position of the dynamic object in the flight scene in the target dynamic environment model in the target environment sub-model may be determined first, and then the dynamic object is superimposed to the target according to the target position. The corresponding position in the target static environment model in the environment submodel, thereby obtaining a merged model as the first type of data. For example, in a flight scenario simulated by an aircraft model, the target static environment model includes a building, and the target dynamic environment model includes a moving vehicle (a moving object submodel) and a falling snow (a weather system submodel), which may be at the target. In the same background environment as the static environment and the target static environment, the position of the car and the snowflake is determined first, and then the car and the snowflake are superimposed to the corresponding position in the background environment of the building according to the position, thereby obtaining the target static environment model. A merged model of the target dynamic environment model.
本步骤中,在获得第二类数据时,可以计算飞行器模型在合并模型中的飞行状态数据,获得第二类数据。其中,所述飞行状态数据可以包括至少一种下述数据:飞行器模型的位置数据,飞行器模型与遥控器的距离数据、飞行器模型的高度数据、飞行器模型的方向数据。相应的,第二类数据可以包括至少一种下述传感器类数据:根据位置数据获得的GPS数据,根据方向数据获得的指南针数据、根据高度数据获得的气压计数据、根据距离数据获得的遥控器信号强度数据、根据位置数据和方向数据获得的超声传感器数据、以及IMU数据等。In this step, when the second type of data is obtained, the flight state data of the aircraft model in the merged model can be calculated to obtain the second type of data. Wherein, the flight state data may include at least one of the following data: position data of the aircraft model, distance data of the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model. Correspondingly, the second type of data may include at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, and a remote controller obtained from the distance data Signal strength data, ultrasonic sensor data obtained from position data and direction data, and IMU data, and the like.
步骤406:对第一类数据进行渲染后输出。Step 406: After the first type of data is rendered and output.
步骤407:将第一类数据输入飞行器模型的视觉系统模型。Step 407: Input the first type of data into the visual system model of the aircraft model.
步骤408:获得视觉系统模型对第一类数据进行感知和导航处理后,得到的视觉数据。Step 408: Obtain visual data obtained after the visual system model senses and navigates the first type of data.
步骤409:将视觉数据输入飞行器模型的控制模型,结束当前流程。Step 409: Input the visual data into the control model of the aircraft model to end the current process.
结合上述步骤407至步骤409,通常视觉系统可以包括感知功能模块和导航功能模块,可以将第一类数据输入上述感知功能模块和导航功能模块,从而获得感知功能模块依据第一类数据获得的飞行器的位置数据和周围物体的位置数据,以及获得导航功能模块依据第一类数据获得的飞行器的导航数据,导航数据可以包括飞行器的导航飞行路线数据和飞行行为数据,然后将上述位置数据和导航数据输入控制模型,从而使控制模型可以利用这些数据进行飞行控制。In combination with the foregoing steps 407 to 409, the visual system may include a sensing function module and a navigation function module, and the first type of data may be input into the sensing function module and the navigation function module, thereby obtaining an aircraft obtained by the sensing function module according to the first type of data. Location data and location data of surrounding objects, and obtaining navigation data of the aircraft obtained by the navigation function module according to the first type of data, the navigation data may include navigation flight path data and flight behavior data of the aircraft, and then the above location data and navigation data The control model is entered so that the control model can use this data for flight control.
步骤410:将第二类数据输入飞行器模型的控制模型。 Step 410: Input the second type of data into the control model of the aircraft model.
步骤411:获得控制模型依据第二类数据对飞行器进行虚拟飞行控制后,输出的飞行控制数据。Step 411: Obtain flight control data that is output after the control model performs virtual flight control on the aircraft according to the second type of data.
步骤412:根据飞行控制数据调整飞行器的飞行控制逻辑,结束当前流程。Step 412: Adjust the flight control logic of the aircraft according to the flight control data, and end the current process.
结合上述步骤410至步骤412,在一个可选的调整飞行控制逻辑的例子中,假设飞行器正在飞行的控制模式是定点模式,如果此时飞行器因为磁场干扰导致GPS信号丢失,则应该自动切换到姿态模式,应用本申请实施例可以通过飞行模拟器模拟上述场景,从而检测飞行模拟器是否会切换到姿态模式。In combination with the above steps 410 to 412, in an example of an optional adjustment flight control logic, it is assumed that the control mode in which the aircraft is flying is a fixed point mode. If the aircraft loses the GPS signal due to magnetic field interference, the aircraft should automatically switch to the attitude. Mode, Application The embodiment of the present application can simulate the above scenario by a flight simulator to detect whether the flight simulator will switch to the attitude mode.
在另一个可选的调整飞行控制逻辑的例子中,假设飞行器遇到强烈的地磁罗盘干扰,则此时通过导航控制系统计算出的飞行器状态的原始值会出现错误,应用本申请实施例可以通过飞行模拟器模拟出飞行器在上述场景下状态的真实值,通过计算真实值与原始值的差值,为导航控制系统中导航算法的开发和改进提供依据,即可以获知导航算法在地磁罗盘干扰到达何种程度时可能导致失效。In another example of the optional adjustment of the flight control logic, it is assumed that the aircraft encounters a strong geomagnetic compass interference, and the original value of the aircraft state calculated by the navigation control system may be incorrect at this time, and the embodiment of the present application may be adopted. The flight simulator simulates the true value of the state of the aircraft in the above scenario. By calculating the difference between the real value and the original value, it provides a basis for the development and improvement of the navigation algorithm in the navigation control system, that is, the navigation algorithm can be informed that the geomagnetic compass arrives in the interference. To what extent may result in failure.
与前述获得飞行模拟数据的方法实施例相对应,本申请还提供了获得飞行模拟数据的装置及设备的实施例。Corresponding to the foregoing method embodiments for obtaining flight simulation data, the present application also provides an embodiment of an apparatus and apparatus for obtaining flight simulation data.
参见图5,为本申请获得飞行模拟数据的装置的实施例框图:Referring to FIG. 5, a block diagram of an embodiment of an apparatus for obtaining flight simulation data according to the present application is as follows:
该装置包括:获取单元510、处理单元520和输出单元530。The apparatus includes an acquisition unit 510, a processing unit 520, and an output unit 530.
其中,获取单元510,用于获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;The acquiring unit 510 is configured to acquire one or more target environment sub-models in the aircraft model to be simulated flight scenario, where the target environment sub-model includes a target dynamic environment model, where the dynamic environment model is for the dynamic change characteristic a model created by environmental factors;
处理单元520,用于处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;The processing unit 520 is configured to process interaction between each target environment sub-model and the aircraft model to obtain first type data and second type data;
输出单元530,用于对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。The output unit 530 is configured to perform post-rendering output on the first type of data, and directly output the second type of data.
在一个可选的实现方式中,获取单元510可以包括:In an optional implementation manner, the obtaining unit 510 may include:
列表输出子单元,用于输出环境子模型列表,所述环境子模型列表中包括动态环境模型和静态环境模型;a list output subunit, configured to output an environment submodel list, where the environment submodel list includes a dynamic environment model and a static environment model;
目标获得子单元,用于获得用户从所述环境子模型列表中选择的一个或多个目标环境子模型。The target obtaining subunit is configured to obtain one or more target environment submodels selected by the user from the list of environment submodels.
在另一个可选的实现方式中,获取单元510可以包括: In another optional implementation manner, the obtaining unit 510 may include:
目标确定子单元,用于确定飞行器待模拟的目标飞行场景;a target determining subunit for determining a target flight scene to be simulated by the aircraft;
目标调用子单元,用于调用与所述目标飞行场景对应的一个或多个目标环境子模型。The target invocation subunit is configured to invoke one or more target environment submodels corresponding to the target flight scene.
基于上述实现方式,该装置还可以包括:Based on the foregoing implementation manner, the apparatus may further include:
保存单元,用于预先保存所创建的飞行器模型和多个类型的环境子模型,以及保存不同飞行场景与不同环境子模型名称之间的对应关系,其中,所述多个类型的环境子模型包括动态环境模型和静态环境模型。a saving unit, configured to pre-save the created aircraft model and the plurality of types of environment sub-models, and save a correspondence between different flight scenarios and different environment sub-model names, wherein the plurality of types of environment sub-models include Dynamic environment model and static environment model.
相应的,所述目标调用子单元,具体用于根据所述目标飞行场景查找所述对应关系,获得与所述目标飞行场景对应的环境子模型名称,并从所保存的多个类型的环境子模型中调用与所述环境子模型名称对应的一个或多个目标环境子模型。Correspondingly, the target calling subunit is specifically configured to search the corresponding relationship according to the target flight scenario, obtain an environment submodel name corresponding to the target flight scenario, and obtain from the saved multiple types of environment sub-categories One or more target environment sub-models corresponding to the environment sub-model name are called in the model.
在另一个可选的实现方式中:In another alternative implementation:
所述飞行场景包括:依据天气系统变化的飞行场景;依据光源类型变化的飞行场景;依据环境修饰变化的飞行场景;依据对象移动变化的飞行场景;依据干扰情况变化的飞行场景;The flight scene includes: a flight scene according to a change of the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; and a flight scene that changes according to the interference condition;
所述环境子模型中的静态环境模型包括一个或多个下述子模型:地形子模型、建筑物子模型;The static environment model in the environment sub-model includes one or more of the following sub-models: a terrain sub-model, a building sub-model;
所述环境子模型中的动态环境模型包括一个或多个下述子模型:天气系统子模型、光源子模型、环境修饰子模型、移动对象子模型、干扰子模型。The dynamic environment model in the environment sub-model includes one or more of the following sub-models: a weather system sub-model, a light source sub-model, an environment modifier sub-model, a moving object sub-model, and an interference sub-model.
其中,所述天气系统子模型包括风力子模型,所述风力子模型通过不同地理位置的风速场与风速数值的对应关系进行表征;The weather system sub-model includes a wind sub-model, and the wind sub-model is characterized by a corresponding relationship between wind speed fields and wind speed values of different geographical locations;
所述干扰子模型通过设置的电磁学模型进行模拟,所述干扰子模型包括:磁场干扰子模型、GPS干扰子模型、遥控器控制信号干扰子模型。The interference sub-model is simulated by a set electromagnetic model including: a magnetic field interference sub-model, a GPS interference sub-model, and a remote control control signal interference sub-model.
在另一个可选的实现方式中,所述处理单元520可以包括:In another optional implementation, the processing unit 520 can include:
位置确定子单元,用于确定所述目标动态环境模型中动态对象在所述飞行场景中所在的目标位置;a location determining subunit, configured to determine a target location of the dynamic object in the target dynamic environment model in the flight scenario;
对象叠加子单元,用于按照所述目标位置,将所述动态对象叠加到所述目标环境子模型中的目标静态环境模型中的相应位置,获得作为所述第一类数据的合并模型;以及,An object superposition subunit, configured to superimpose the dynamic object to a corresponding position in a target static environment model in the target environment submodel according to the target location, to obtain a merge model as the first type of data; ,
数据计算子单元,用于通过计算所述飞行器模型在所述合并模型中的飞行状态数据, 获得第二类数据。a data calculation subunit for calculating flight state data in the merged model of the aircraft model, Get the second type of data.
其中,对所述合并模型进行渲染后的第一类数据包括:图像数据和深度数据;The first type of data after the rendering of the merged model includes: image data and depth data;
所述飞行状态数据包括至少一种下述数据:飞行器模型的位置数据,飞行器模型与遥控器的距离数据、飞行器模型的高度数据、飞行器模型的方向数据;The flight state data includes at least one of the following: position data of the aircraft model, distance data between the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model;
所述第二类数据包括至少一种下述传感器类数据:根据所述位置数据获得的GPS数据,根据所述方向数据获得的指南针数据、根据所述高度数据获得的气压计数据、根据所述距离数据获得的遥控器信号强度数据、根据所述位置数据和方向数据获得的超声传感器数据、以及IMU数据。The second type of data includes at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, according to the Remote control signal strength data obtained from the distance data, ultrasonic sensor data obtained from the position data and direction data, and IMU data.
在另一个可选的实现方式中,所述飞行器模型包括:用于与所述目标环境子模型进行交互的动力模型,用于控制飞行器模型飞行姿态的控制模型,以及用于为所述控制模型提供视觉数据的视觉系统模型。In another optional implementation, the aircraft model includes: a dynamic model for interacting with the target environment submodel, a control model for controlling an aircraft model flight attitude, and for using the control model A visual system model that provides visual data.
相应的,在一个例子中,所述装置还可以包括:Correspondingly, in an example, the device may further include:
第一输入单元,用于将所述第一类数据输入所述视觉系统模型;a first input unit, configured to input the first type of data into the vision system model;
第一获得单元,用于获得所述视觉系统模型对所述第一类数据进行感知和导航处理后,得到的视觉数据;a first obtaining unit, configured to obtain visual data obtained after the visual system model senses and navigates the first type of data;
所述第一输入单元,还用于将所述视觉数据输入所述控制模型。The first input unit is further configured to input the visual data into the control model.
相应的,在另一个例子中,所述装置还可以包括:Correspondingly, in another example, the apparatus may further include:
第二输入单元,用于将所述第二类数据输入所述控制模型;a second input unit, configured to input the second type of data into the control model;
第二获得单元,用于获得所述控制模型依据所述第二类数据对飞行器进行虚拟飞行控制后,输出的飞行控制数据;a second obtaining unit, configured to obtain flight control data that is output after the control model performs virtual flight control on the aircraft according to the second type of data;
调整单元,用于根据所述飞行控制数据调整飞行器的飞行控制逻辑。An adjustment unit for adjusting flight control logic of the aircraft based on the flight control data.
参见图6,为本申请计算设备的一个实施例示意图,该计算设备可以包括:通过内部总线610连接的存储器620、处理器630和外部接口640。Referring to FIG. 6 , it is a schematic diagram of an embodiment of a computing device of the present application. The computing device may include a memory 620 connected through an internal bus 610 , a processor 630 , and an external interface 640 .
其中,所述存储器620,用于存储获得飞行模拟数据的控制逻辑对应的机器可读指令;The memory 620 is configured to store machine readable instructions corresponding to control logic for obtaining flight simulation data;
所述处理器630,用于读取所述存储器620上的所述机器可读指令,并执行所述指令以实现如下操作:The processor 630 is configured to read the machine readable instructions on the memory 620 and execute the instructions to:
获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模 型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;Obtaining one or more target environment sub-models of the aircraft model to be simulated flight scene, the target environment sub-model The model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamically changing characteristics;
处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;Processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data;
对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。The first type of data is rendered and output, and the second type of data is directly output.
在一个可选的实现方式中,所述处理器630在执行获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型时,具体用于输出环境子模型列表,所述环境子模型列表中包括动态环境模型和静态环境模型;获得用户从所述环境子模型列表中选择的一个或多个目标环境子模型。In an optional implementation manner, the processor 630 is specifically configured to output an environment sub-model list, where the environment sub-model list is selected when performing one or more target environment sub-models under the aircraft model to be simulated flight scene. The dynamic environment model and the static environment model are included; one or more target environment sub-models selected by the user from the list of environment sub-models are obtained.
在另一个可选的实现方式中,所述处理器630在执行获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型时,具体用于确定飞行器待模拟的目标飞行场景;调用与所述目标飞行场景对应的一个或多个目标环境子模型。In another optional implementation manner, the processor 630 is specifically configured to determine a target flight scenario to be simulated by the aircraft when performing one or more target environment sub-models for acquiring an aircraft model to be simulated flight scene; One or more target environment sub-models corresponding to the target flight scene.
在另一个可选的实现方式中,所述存储器620,还用于预先保存所创建的飞行器模型和多个类型的环境子模型,以及保存不同飞行场景与不同环境子模型名称之间的对应关系,其中,所述多个类型的环境子模型包括动态环境模型和静态环境模型。In another optional implementation, the memory 620 is further configured to pre-save the created aircraft model and the plurality of types of environment sub-models, and save the correspondence between different flight scenarios and different environment sub-model names. The plurality of types of environment sub-models include a dynamic environment model and a static environment model.
相应的,所述处理器630在执行调用与所述飞行场景对应的一个或多个目标环境子模型时,具体用于根据所述目标飞行场景查找所述对应关系,获得与所述目标飞行场景对应的环境子模型名称;从所保存的多个类型的环境子模型中调用与所述环境子模型名称对应的一个或多个目标环境子模型。Correspondingly, when the processor 630 performs one or more target environment sub-models corresponding to the flight scene, the processor 630 is specifically configured to search the corresponding relationship according to the target flight scene to obtain the target flight scene. Corresponding environment sub-model name; one or more target environment sub-models corresponding to the environment sub-model name are called from the saved plurality of types of environment sub-models.
在另一个可选的实现方式中:In another alternative implementation:
所述飞行场景包括:依据天气系统变化的飞行场景;依据光源类型变化的飞行场景;依据环境修饰变化的飞行场景;依据对象移动变化的飞行场景;依据干扰情况变化的飞行场景;The flight scene includes: a flight scene according to a change of the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; and a flight scene that changes according to the interference condition;
所述环境子模型中的静态环境模型包括一个或多个下述子模型:地形子模型、建筑物子模型;The static environment model in the environment sub-model includes one or more of the following sub-models: a terrain sub-model, a building sub-model;
所述环境子模型中的动态环境模型包括一个或多个下述子模型:天气系统子模型、光源子模型、环境修饰子模型、移动对象子模型、干扰子模型。The dynamic environment model in the environment sub-model includes one or more of the following sub-models: a weather system sub-model, a light source sub-model, an environment modifier sub-model, a moving object sub-model, and an interference sub-model.
在另一个可选的实现方式中:In another alternative implementation:
所述天气系统子模型包括风力子模型,所述风力子模型通过不同地理位置的风速场与 风速数值的对应关系进行表征;The weather system sub-model includes a wind sub-model that passes wind speed fields of different geographic locations and Characterizing the correspondence of wind speed values;
所述干扰子模型通过设置的电磁学模型进行模拟,所述干扰子模型包括:磁场干扰子模型、GPS干扰子模型、遥控器控制信号干扰子模型。The interference sub-model is simulated by a set electromagnetic model including: a magnetic field interference sub-model, a GPS interference sub-model, and a remote control control signal interference sub-model.
在另一个可选的实现方式中,所述处理器630在执行处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据时,具体用于确定所述目标动态环境模型中动态对象在所述飞行场景中所在的目标位置;按照所述目标位置,将所述动态对象叠加到所述目标环境子模型中的目标静态环境模型中的相应位置,获得作为所述第一类数据的合并模型;以及,通过计算所述飞行器模型在所述合并模型中的飞行状态数据,获得第二类数据。In another optional implementation manner, the processor 630 is configured to process the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data, specifically for determining the a target location of the dynamic object in the flight scene in the target dynamic environment model; according to the target location, the dynamic object is superimposed to a corresponding position in the target static environment model in the target environment submodel, and obtained as a merged model of the first type of data; and, by calculating flight state data of the aircraft model in the merged model, obtaining a second type of data.
在另一个可选的实现方式中:In another alternative implementation:
对所述合并模型进行渲染后的第一类数据包括:图像数据和深度数据;The first type of data after rendering the merged model includes: image data and depth data;
所述飞行状态数据包括至少一种下述数据:飞行器模型的位置数据,飞行器模型与遥控器的距离数据、飞行器模型的高度数据、飞行器模型的方向数据;The flight state data includes at least one of the following: position data of the aircraft model, distance data between the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model;
所述第二类数据包括至少一种下述传感器类数据:根据所述位置数据获得的GPS数据,根据所述方向数据获得的指南针数据、根据所述高度数据获得的气压计数据、根据所述距离数据获得的遥控器信号强度数据、根据所述位置数据和方向数据获得的超声传感器数据、以及IMU数据。The second type of data includes at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, according to the Remote control signal strength data obtained from the distance data, ultrasonic sensor data obtained from the position data and direction data, and IMU data.
在另一个可选的实现方式中,所述飞行器模型包括:用于与所述目标环境子模型进行交互的动力模型,用于控制飞行器模型飞行姿态的控制模型,以及用于为所述控制模型提供视觉数据的视觉系统模型。In another optional implementation, the aircraft model includes: a dynamic model for interacting with the target environment submodel, a control model for controlling an aircraft model flight attitude, and for using the control model A visual system model that provides visual data.
在另一个可选的实现方式中,所述处理器630还用于将所述第一类数据输入所述视觉系统模型;获得所述视觉系统模型对所述第一类数据进行感知和导航处理后,得到的视觉数据;将所述视觉数据输入所述控制模型。In another optional implementation, the processor 630 is further configured to input the first type of data into the visual system model, and obtain the visual system model to perform sensing and navigation processing on the first type of data. Thereafter, the obtained visual data; the visual data is input to the control model.
在另一个可选的实现方式中,所述处理器630还用于将所述第二类数据输入所述控制模型;获得所述控制模型依据所述第二类数据对飞行器进行虚拟飞行控制后,输出的飞行控制数据;根据所述飞行控制数据调整飞行器的飞行控制逻辑。In another optional implementation manner, the processor 630 is further configured to input the second type of data into the control model; and obtain the control model to perform virtual flight control on the aircraft according to the second type of data. And outputting flight control data; adjusting flight control logic of the aircraft based on the flight control data.
另外,本申请实施例示出的获得飞行模拟数据的流程还可以被包括在计算机可读存储介质中,该存储介质可以与执行指令的处理设备连接,该存储介质上存储有获得飞行模拟数据的控制逻辑对应的机器可读指令,这些指令能够被处理设备执行,上述机器可读指令用于 实现如下操作:In addition, the flow of obtaining flight simulation data shown in the embodiment of the present application may also be included in a computer readable storage medium, and the storage medium may be connected to a processing device that executes instructions for storing control for obtaining flight simulation data. Logic-corresponding machine readable instructions executable by a processing device, the machine readable instructions being Implement the following operations:
获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;Obtaining one or more target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;Processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data;
对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。The first type of data is rendered and output, and the second type of data is directly output.
在一个可选的实现方式中,所述计算机指令被执行获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型时,具体进行如下处理:In an optional implementation manner, when the computer instruction is executed to acquire one or more target environment sub-models in the flight model to be simulated, the following processing is specifically performed:
输出环境子模型列表,所述环境子模型列表中包括动态环境模型和静态环境模型;Outputting a list of environment sub-models, the dynamic sub-model list including a dynamic environment model and a static environment model;
获得用户从所述环境子模型列表中选择的一个或多个目标环境子模型。Obtaining one or more target environment sub-models selected by the user from the list of environment sub-models.
在另一个可选的实现方式中,所述计算机指令被执行获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型时,具体进行如下处理:In another optional implementation manner, when the computer instruction is executed to acquire one or more target environment sub-models in an aircraft model to be simulated flight scenario, the following processing is specifically performed:
确定飞行器待模拟的目标飞行场景;Determining a target flight scene to be simulated by the aircraft;
调用与所述目标飞行场景对应的一个或多个目标环境子模型。One or more target environment sub-models corresponding to the target flight scene are invoked.
在另一个可选的实现方式中,所述计算机指令被执行时还进行如下处理:In another optional implementation, the computer instructions are further processed as follows when executed:
预先保存所创建的飞行器模型和多个类型的环境子模型,以及保存不同飞行场景与不同环境子模型名称之间的对应关系,其中,所述多个类型的环境子模型包括动态环境模型和静态环境模型。Pre-storing the created aircraft model and multiple types of environment sub-models, and preserving correspondence between different flight scenarios and different environment sub-model names, wherein the plurality of types of environment sub-models include dynamic environment models and static Environmental model.
在另一个可选的实现方式中,所述计算机指令被执行调用与所述飞行场景对应的一个或多个目标环境子模型时,具体进行如下处理:In another optional implementation manner, when the computer instruction is executed to invoke one or more target environment sub-models corresponding to the flight scenario, the following processing is specifically performed:
根据所述目标飞行场景查找所述对应关系,获得与所述目标飞行场景对应的环境子模型名称;Finding the corresponding relationship according to the target flight scenario, and obtaining an environment sub-model name corresponding to the target flight scenario;
从所保存的多个类型的环境子模型中调用与所述环境子模型名称对应的一个或多个目标环境子模型。One or more target environment sub-models corresponding to the environment sub-model name are called from the saved plurality of types of environment sub-models.
在另一个可选的实现方式中,所述飞行场景包括:依据天气系统变化的飞行场景;依据光源类型变化的飞行场景;依据环境修饰变化的飞行场景;依据对象移动变化的飞行场景;依据干扰情况变化的飞行场景; In another optional implementation manner, the flight scene includes: a flight scene that changes according to a weather system; a flight scene that changes according to a type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; a flight scene with changing conditions;
所述环境子模型中的静态环境模型包括一个或多个下述子模型:地形子模型、建筑物子模型;The static environment model in the environment sub-model includes one or more of the following sub-models: a terrain sub-model, a building sub-model;
所述环境子模型中的动态环境模型包括一个或多个下述子模型:天气系统子模型、光源子模型、环境修饰子模型、移动对象子模型、干扰子模型。The dynamic environment model in the environment sub-model includes one or more of the following sub-models: a weather system sub-model, a light source sub-model, an environment modifier sub-model, a moving object sub-model, and an interference sub-model.
在另一个可选的实现方式中,所述天气系统子模型包括风力子模型,所述风力子模型通过不同地理位置的风速场与风速数值的对应关系进行表征;In another optional implementation manner, the weather system sub-model includes a wind sub-model, and the wind sub-model is characterized by a corresponding relationship between wind speed fields and wind speed values of different geographic locations;
所述干扰子模型通过设置的电磁学模型进行模拟,所述干扰子模型包括:磁场干扰子模型、GPS干扰子模型、遥控器控制信号干扰子模型。The interference sub-model is simulated by a set electromagnetic model including: a magnetic field interference sub-model, a GPS interference sub-model, and a remote control control signal interference sub-model.
在另一个可选的实现方式中,所述计算机指令被执行处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据时,具体进行如下处理:In another optional implementation manner, the computer instruction is executed to process the interaction between each target environment sub-model and the aircraft model, and when the first type of data and the second type of data are obtained, the following processing is specifically performed:
确定所述目标动态环境模型中动态对象在所述飞行场景中所在的目标位置;Determining a target location of the dynamic object in the target dynamic environment model in the flight scenario;
按照所述目标位置,将所述动态对象叠加到所述目标环境子模型中的目标静态环境模型中的相应位置,获得作为所述第一类数据的合并模型;以及,And superimposing the dynamic object on a corresponding position in the target static environment model in the target environment sub-model according to the target location, obtaining a merge model as the first type of data; and
通过计算所述飞行器模型在所述合并模型中的飞行状态数据,获得第二类数据。A second type of data is obtained by calculating flight state data of the aircraft model in the merged model.
在另一个可选的实现方式中,对所述合并模型进行渲染后的第一类数据包括:图像数据和深度数据;In another optional implementation manner, the first type of data after the rendering of the merged model includes: image data and depth data;
所述飞行状态数据包括至少一种下述数据:飞行器模型的位置数据,飞行器模型与遥控器的距离数据、飞行器模型的高度数据、飞行器模型的方向数据;The flight state data includes at least one of the following: position data of the aircraft model, distance data between the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model;
所述第二类数据包括至少一种下述传感器类数据:根据所述位置数据获得的GPS数据,根据所述方向数据获得的指南针数据、根据所述高度数据获得的气压计数据、根据所述距离数据获得的遥控器信号强度数据、根据所述位置数据和方向数据获得的超声传感器数据、以及IMU数据。The second type of data includes at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, according to the Remote control signal strength data obtained from the distance data, ultrasonic sensor data obtained from the position data and direction data, and IMU data.
在另一个可选的实现方式中,所述飞行器模型包括:用于与所述目标环境子模型进行交互的动力模型,用于控制飞行器模型飞行姿态的控制模型,以及用于为所述控制模型提供视觉数据的视觉系统模型。In another optional implementation, the aircraft model includes: a dynamic model for interacting with the target environment submodel, a control model for controlling an aircraft model flight attitude, and for using the control model A visual system model that provides visual data.
在另一个可选的实现方式中,所述计算机指令被执行时还进行如下处理:In another optional implementation, the computer instructions are further processed as follows when executed:
将所述第一类数据输入所述视觉系统模型; Importing the first type of data into the vision system model;
获得所述视觉系统模型对所述第一类数据进行感知和导航处理后,得到的视觉数据;Obtaining visual data obtained after the visual system model senses and navigates the first type of data;
将所述视觉数据输入所述控制模型。The visual data is input to the control model.
在另一个可选的实现方式中,所述计算机指令被执行时还进行如下处理:In another optional implementation, the computer instructions are further processed as follows when executed:
将所述第二类数据输入所述控制模型;Inputting the second type of data into the control model;
获得所述控制模型依据所述第二类数据对飞行器进行虚拟飞行控制后,输出的飞行控制数据;Obtaining flight control data that is output after the control model performs virtual flight control on the aircraft according to the second type of data;
根据所述飞行控制数据调整飞行器的飞行控制逻辑。The flight control logic of the aircraft is adjusted based on the flight control data.
对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。For the device embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or order between them. The terms "comprising," "comprising," or "include" or "include" are intended to include a non-exclusive inclusion, such that a process, method, article, or device that includes a plurality of elements includes not only those elements but also other items not specifically listed Elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本说明书中描述的主题及功能操作的实施例可以在以下中实现:数字电子电路、有形体现的计算机软件或固件、包括本说明书中公开的结构及其结构性等同物的计算机硬件、或者它们中的一个或多个的组合。本说明书中描述的主题的实施例可以实现为一个或多个计算机程序,即编码在有形非暂时性程序载体上以被数据处理装置执行或控制数据处理装置的操作的计算机程序指令中的一个或多个模块。可替代地或附加地,程序指令可以被编码在人工生成的传播信号上,例如机器生成的电、光或电磁信号,该信号被生成以将信息编码并传输到合适的接收机装置以由数据处理装置执行。计算机存储介质可以是机器可读存储设备、机器可读存储基板、随机或串行存取存储器设备、或它们中的一个或多个的组合。Embodiments of the subject matter and functional operations described in this specification can be implemented in the following: digital electronic circuits, tangible embodied computer software or firmware, computer hardware including the structures disclosed in the specification and their structural equivalents, or One or more combinations. Embodiments of the subject matter described in this specification can be implemented as one or more computer programs, i.e., one of computer program instructions encoded on a tangible, non-transitory program carrier to be executed by a data processing device or to control operation of a data processing device or Multiple modules. Alternatively or additionally, the program instructions may be encoded on an artificially generated propagating signal, such as a machine-generated electrical, optical or electromagnetic signal that is generated to encode and transmit the information to a suitable receiver device for data The processing device executes. The computer storage medium can be a machine readable storage device, a machine readable storage substrate, a random or serial access memory device, or a combination of one or more of them.
本说明书中描述的处理及逻辑流程可以由执行一个或多个计算机程序的一个或多个 可编程计算机执行,以通过根据输入数据进行操作并生成输出来执行相应的功能。所述处理及逻辑流程还可以由专用逻辑电路—例如FPGA(现场可编程门阵列)或ASIC(专用集成电路)来执行,并且装置也可以实现为专用逻辑电路。The processes and logic flows described in this specification can be performed by one or more of executing one or more computer programs The programmable computer executes to perform the corresponding function by operating according to the input data and generating an output. The processing and logic flow may also be performed by dedicated logic circuitry, such as an FPGA (Field Programmable Gate Array) or an ASIC (Application Specific Integrated Circuit), and the apparatus may also be implemented as dedicated logic circuitry.
适合用于执行计算机程序的计算机包括,例如通用和/或专用微处理器,或任何其他类型的中央处理单元。通常,中央处理单元将从只读存储器和/或随机存取存储器接收指令和数据。计算机的基本组件包括用于实施或执行指令的中央处理单元以及用于存储指令和数据的一个或多个存储器设备。通常,计算机还将包括用于存储数据的一个或多个大容量存储设备,例如磁盘、磁光盘或光盘等,或者计算机将可操作地与此大容量存储设备耦接以从其接收数据或向其传送数据,抑或两种情况兼而有之。然而,计算机不是必须具有这样的设备。此外,计算机可以嵌入在另一设备中,例如移动电话、个人数字助理(PDA)、移动音频或视频播放器、游戏操纵台、全球定位系统(GPS)接收机、或例如通用串行总线(USB)闪存驱动器的便携式存储设备,仅举几例。Computers suitable for the execution of a computer program include, for example, a general purpose and/or special purpose microprocessor, or any other type of central processing unit. Typically, the central processing unit will receive instructions and data from a read only memory and/or a random access memory. The basic components of a computer include a central processing unit for implementing or executing instructions and one or more memory devices for storing instructions and data. Typically, the computer will also include one or more mass storage devices for storing data, such as a magnetic disk, magneto-optical disk or optical disk, or the like, or the computer will be operatively coupled to the mass storage device for receiving data or It transmits data, or both. However, the computer does not have to have such a device. In addition, the computer can be embedded in another device, such as a mobile phone, a personal digital assistant (PDA), a mobile audio or video player, a game console, a global positioning system (GPS) receiver, or, for example, a universal serial bus (USB) ) Portable storage devices for flash drives, to name a few.
适合于存储计算机程序指令和数据的计算机可读介质包括所有形式的非易失性存储器、媒介和存储器设备,例如包括半导体存储器设备(例如EPROM、EEPROM和闪存设备)、磁盘(例如内部硬盘或可移动盘)、磁光盘以及CD ROM和DVD-ROM盘。处理器和存储器可由专用逻辑电路补充或并入专用逻辑电路中。Computer readable media suitable for storing computer program instructions and data include all forms of nonvolatile memory, media and memory devices including, for example, semiconductor memory devices (eg, EPROM, EEPROM, and flash memory devices), magnetic disks (eg, internal hard drives or Mobile disk), magneto-optical disks, and CD ROM and DVD-ROM disks. The processor and memory may be supplemented by, or incorporated in, special purpose logic circuitry.
虽然本说明书包含许多具体实施细节,但是这些不应被解释为限制任何发明的范围或所要求保护的范围,而是主要用于描述特定发明的具体实施例的特征。本说明书内在多个实施例中描述的某些特征也可以在单个实施例中被组合实施。另一方面,在单个实施例中描述的各种特征也可以在多个实施例中分开实施或以任何合适的子组合来实施。此外,虽然特征可以如上所述在某些组合中起作用并且甚至最初如此要求保护,但是来自所要求保护的组合中的一个或多个特征在一些情况下可以从该组合中去除,并且所要求保护的组合可以指向子组合或子组合的变型。The description contains many specific implementation details, which are not intended to limit the scope of the invention or the scope of the claimed invention, but are mainly used to describe the features of the specific embodiments of the invention. Certain features that are described in the various embodiments in this specification can also be implemented in combination in a single embodiment. In another aspect, the various features described in a single embodiment can also be implemented separately in various embodiments or in any suitable sub-combination. Moreover, although features may function in certain combinations as described above and even initially claimed, one or more features from the claimed combination may be removed from the combination in some cases and are required The combination of protections can point to a variant of a sub-combination or sub-combination.
类似地,虽然在附图中以特定顺序描绘了操作,但是这不应被理解为要求这些操作以所示的特定顺序执行或顺次执行、或者要求所有例示的操作被执行,以实现期望的结果。在某些情况下,多任务和并行处理可能是有利的。此外,上述实施例中的各种系统模块和组件的分离不应被理解为在所有实施例中均需要这样的分离,并且应当理解,所描述的程序组件和系统通常可以一起集成在单个软件产品中,或者封装成多个软件产品。Similarly, although the operations are depicted in a particular order in the drawings, this should not be construed as requiring that the operations are performed in the particular order shown or in the sequence, or that all illustrated operations are performed to achieve the desired. result. In some cases, multitasking and parallel processing may be advantageous. Moreover, the separation of various system modules and components in the above-described embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that the described program components and systems can generally be integrated together in a single software product. Medium, or packaged into multiple software products.
由此,主题的特定实施例已被描述。其他实施例在所附权利要求书的范围以内。在某些情况下,权利要求书中记载的动作可以以不同的顺序执行并且仍实现期望的结果。此外, 附图中描绘的处理并非必需所示的特定顺序或顺次顺序,以实现期望的结果。在某些实现中,多任务和并行处理可能是有利的。Thus, specific embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve the desired results. In addition, The processes depicted in the figures are not necessarily shown in a particular order or in order to achieve a desired result. In some implementations, multitasking and parallel processing may be advantageous.
以上对本申请实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。 The method and apparatus provided in the embodiments of the present application are described in detail. The principles and implementation manners of the application are described in the specific examples. The description of the above embodiments is only used to help understand the method of the present application and At the same time, there will be changes in the specific embodiments and application scopes according to the idea of the present application, and the contents of the present specification should not be construed as limiting the present application. .

Claims (26)

  1. 一种获得飞行模拟数据的方法,其特征在于,所述方法包括:A method for obtaining flight simulation data, the method comprising:
    获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;Obtaining one or more target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
    处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;Processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data;
    对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。The first type of data is rendered and output, and the second type of data is directly output.
  2. 根据权利要求1所述的方法,其特征在于,所述获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,包括:The method according to claim 1, wherein the acquiring one or more target environment sub-models of the aircraft model to be simulated in the flight scene comprises:
    输出环境子模型列表,所述环境子模型列表中包括动态环境模型和静态环境模型;Outputting a list of environment sub-models, the dynamic sub-model list including a dynamic environment model and a static environment model;
    获得用户从所述环境子模型列表中选择的一个或多个目标环境子模型。Obtaining one or more target environment sub-models selected by the user from the list of environment sub-models.
  3. 根据权利要求1所述的方法,其特征在于,所述获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,包括:The method according to claim 1, wherein the acquiring one or more target environment sub-models of the aircraft model to be simulated in the flight scene comprises:
    确定飞行器待模拟的目标飞行场景;Determining a target flight scene to be simulated by the aircraft;
    调用与所述目标飞行场景对应的一个或多个目标环境子模型。One or more target environment sub-models corresponding to the target flight scene are invoked.
  4. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method of claim 3, wherein the method further comprises:
    预先保存所创建的飞行器模型和多个类型的环境子模型,以及保存不同飞行场景与不同环境子模型名称之间的对应关系,其中,所述多个类型的环境子模型包括动态环境模型和静态环境模型。Pre-storing the created aircraft model and multiple types of environment sub-models, and preserving correspondence between different flight scenarios and different environment sub-model names, wherein the plurality of types of environment sub-models include dynamic environment models and static Environmental model.
  5. 根据权利要求4所述的方法,其特征在于,所述调用与所述飞行场景对应的一个或多个目标环境子模型,包括:The method of claim 4, wherein the invoking one or more target environment sub-models corresponding to the flight scenario comprises:
    根据所述目标飞行场景查找所述对应关系,获得与所述目标飞行场景对应的环境子模型名称;Finding the corresponding relationship according to the target flight scenario, and obtaining an environment sub-model name corresponding to the target flight scenario;
    从所保存的多个类型的环境子模型中调用与所述环境子模型名称对应的一个或多个目标环境子模型。One or more target environment sub-models corresponding to the environment sub-model name are called from the saved plurality of types of environment sub-models.
  6. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述飞行场景包括:依据天气系统变化的飞行场景;依据光源类型变化的飞行场景;依据环境修饰变化的飞行场景;依据对象移动变化的飞行场景;依据干扰情况变化的飞行场景;The flight scene includes: a flight scene according to a change of the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; and a flight scene that changes according to the interference condition;
    所述环境子模型中的静态环境模型包括一个或多个下述子模型:地形子模型、建筑物子模型; The static environment model in the environment sub-model includes one or more of the following sub-models: a terrain sub-model, a building sub-model;
    所述环境子模型中的动态环境模型包括一个或多个下述子模型:天气系统子模型、光源子模型、环境修饰子模型、移动对象子模型、干扰子模型。The dynamic environment model in the environment sub-model includes one or more of the following sub-models: a weather system sub-model, a light source sub-model, an environment modifier sub-model, a moving object sub-model, and an interference sub-model.
  7. 根据权利要求6所述的方法,其特征在于,The method of claim 6 wherein:
    所述天气系统子模型包括风力子模型,所述风力子模型通过不同地理位置的风速场与风速数值的对应关系进行表征;The weather system sub-model includes a wind sub-model, and the wind sub-model is characterized by a corresponding relationship between wind speed fields and wind speed values of different geographical locations;
    所述干扰子模型通过设置的电磁学模型进行模拟,所述干扰子模型包括:磁场干扰子模型、GPS干扰子模型、遥控器控制信号干扰子模型。The interference sub-model is simulated by a set electromagnetic model including: a magnetic field interference sub-model, a GPS interference sub-model, and a remote control control signal interference sub-model.
  8. 根据权利要求1所述的方法,其特征在于,所述处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据,包括:The method according to claim 1, wherein said processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data comprises:
    确定所述目标动态环境模型中动态对象在所述飞行场景中所在的目标位置;Determining a target location of the dynamic object in the target dynamic environment model in the flight scenario;
    按照所述目标位置,将所述动态对象叠加到所述目标环境子模型中的目标静态环境模型中的相应位置,获得作为所述第一类数据的合并模型;以及,And superimposing the dynamic object on a corresponding position in the target static environment model in the target environment sub-model according to the target location, obtaining a merge model as the first type of data; and
    通过计算所述飞行器模型在所述合并模型中的飞行状态数据,获得第二类数据。A second type of data is obtained by calculating flight state data of the aircraft model in the merged model.
  9. 根据权利要求8所述的方法,其特征在于,The method of claim 8 wherein:
    对所述合并模型进行渲染后的第一类数据包括:图像数据和深度数据;The first type of data after rendering the merged model includes: image data and depth data;
    所述飞行状态数据包括至少一种下述数据:飞行器模型的位置数据,飞行器模型与遥控器的距离数据、飞行器模型的高度数据、飞行器模型的方向数据;The flight state data includes at least one of the following: position data of the aircraft model, distance data between the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model;
    所述第二类数据包括至少一种下述传感器类数据:根据所述位置数据获得的GPS数据,根据所述方向数据获得的指南针数据、根据所述高度数据获得的气压计数据、根据所述距离数据获得的遥控器信号强度数据、根据所述位置数据和方向数据获得的超声传感器数据、以及IMU数据。The second type of data includes at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, according to the Remote control signal strength data obtained from the distance data, ultrasonic sensor data obtained from the position data and direction data, and IMU data.
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述飞行器模型包括:用于与所述目标环境子模型进行交互的动力模型,用于控制飞行器模型飞行姿态的控制模型,以及用于为所述控制模型提供视觉数据的视觉系统模型。The method according to any one of claims 1 to 9, wherein the aircraft model comprises: a dynamic model for interacting with the target environment submodel, and a control model for controlling an aircraft model flight attitude, And a vision system model for providing visual data to the control model.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    将所述第一类数据输入所述视觉系统模型;Importing the first type of data into the vision system model;
    获得所述视觉系统模型对所述第一类数据进行感知和导航处理后,得到的视觉数据;Obtaining visual data obtained after the visual system model senses and navigates the first type of data;
    将所述视觉数据输入所述控制模型。The visual data is input to the control model.
  12. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    将所述第二类数据输入所述控制模型; Inputting the second type of data into the control model;
    获得所述控制模型依据所述第二类数据对飞行器进行虚拟飞行控制后,输出的飞行控制数据;Obtaining flight control data that is output after the control model performs virtual flight control on the aircraft according to the second type of data;
    根据所述飞行控制数据调整飞行器的飞行控制逻辑。The flight control logic of the aircraft is adjusted based on the flight control data.
  13. 一种获得飞行模拟数据的装置,其特征在于,包括:An apparatus for obtaining flight simulation data, comprising:
    获取单元,用于获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;An acquiring unit, configured to acquire one or more target environment sub-models in an aircraft model to be simulated flight scenario, where the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is for an environmental factor having dynamic changing characteristics Created model;
    处理单元,用于处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;a processing unit, configured to process interaction between each target environment sub-model and the aircraft model to obtain first type data and second type data;
    输出单元,用于对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。And an output unit, configured to output the first type of data after being rendered, and directly output the second type of data.
  14. 根据权利要求13所述的装置,其特征在于,所述获取单元包括:The device according to claim 13, wherein the obtaining unit comprises:
    列表输出子单元,用于输出环境子模型列表,所述环境子模型列表中包括动态环境模型和静态环境模型;a list output subunit, configured to output an environment submodel list, where the environment submodel list includes a dynamic environment model and a static environment model;
    目标获得子单元,用于获得用户从所述环境子模型列表中选择的一个或多个目标环境子模型。The target obtaining subunit is configured to obtain one or more target environment submodels selected by the user from the list of environment submodels.
  15. 根据权利要求13所述的装置,其特征在于,所述获取单元包括:The device according to claim 13, wherein the obtaining unit comprises:
    目标确定子单元,用于确定飞行器待模拟的目标飞行场景;a target determining subunit for determining a target flight scene to be simulated by the aircraft;
    目标调用子单元,用于调用与所述目标飞行场景对应的一个或多个目标环境子模型。The target invocation subunit is configured to invoke one or more target environment submodels corresponding to the target flight scene.
  16. 根据权利要求15所述的装置,其特征在于,所述装置还包括:The device according to claim 15, wherein the device further comprises:
    保存单元,用于预先保存所创建的飞行器模型和多个类型的环境子模型,以及保存不同飞行场景与不同环境子模型名称之间的对应关系,其中,所述多个类型的环境子模型包括动态环境模型和静态环境模型。a saving unit, configured to pre-save the created aircraft model and the plurality of types of environment sub-models, and save a correspondence between different flight scenarios and different environment sub-model names, wherein the plurality of types of environment sub-models include Dynamic environment model and static environment model.
  17. 根据权利要求16所述的装置,其特征在于,所述目标调用子单元,具体用于根据所述目标飞行场景查找所述对应关系,获得与所述目标飞行场景对应的环境子模型名称,并从所保存的多个类型的环境子模型中调用与所述环境子模型名称对应的一个或多个目标环境子模型。The apparatus according to claim 16, wherein the target calling subunit is specifically configured to search for the correspondence according to the target flight scenario, obtain an environment submodel name corresponding to the target flight scenario, and One or more target environment sub-models corresponding to the environment sub-model name are called from the saved plurality of types of environment sub-models.
  18. 根据权利要求13所述的装置,其特征在于,The device of claim 13 wherein:
    所述飞行场景包括:依据天气系统变化的飞行场景;依据光源类型变化的飞行场景;依据环境修饰变化的飞行场景;依据对象移动变化的飞行场景;依据干扰情况变化的飞行场景;The flight scene includes: a flight scene according to a change of the weather system; a flight scene that changes according to the type of the light source; a flight scene that changes according to the environment modification; a flight scene that changes according to the movement of the object; and a flight scene that changes according to the interference condition;
    所述环境子模型中的静态环境模型包括一个或多个下述子模型:地形子模型、建筑物子 模型;The static environment model in the environment submodel includes one or more of the following submodels: a terrain submodel, a building sub model;
    所述环境子模型中的动态环境模型包括一个或多个下述子模型:天气系统子模型、光源子模型、环境修饰子模型、移动对象子模型、干扰子模型。The dynamic environment model in the environment sub-model includes one or more of the following sub-models: a weather system sub-model, a light source sub-model, an environment modifier sub-model, a moving object sub-model, and an interference sub-model.
  19. 根据权利要求18所述的装置,其特征在于,The device of claim 18, wherein
    所述天气系统子模型包括风力子模型,所述风力子模型通过不同地理位置的风速场与风速数值的对应关系进行表征;The weather system sub-model includes a wind sub-model, and the wind sub-model is characterized by a corresponding relationship between wind speed fields and wind speed values of different geographical locations;
    所述干扰子模型通过设置的电磁学模型进行模拟,所述干扰子模型包括:磁场干扰子模型、GPS干扰子模型、遥控器控制信号干扰子模型。The interference sub-model is simulated by a set electromagnetic model including: a magnetic field interference sub-model, a GPS interference sub-model, and a remote control control signal interference sub-model.
  20. 根据权利要求13所述的装置,其特征在于,所述处理单元包括:The apparatus according to claim 13, wherein said processing unit comprises:
    位置确定子单元,用于确定所述目标动态环境模型中动态对象在所述飞行场景中所在的目标位置;a location determining subunit, configured to determine a target location of the dynamic object in the target dynamic environment model in the flight scenario;
    对象叠加子单元,用于按照所述目标位置,将所述动态对象叠加到所述目标环境子模型中的目标静态环境模型中的相应位置,获得作为所述第一类数据的合并模型;以及,An object superposition subunit, configured to superimpose the dynamic object to a corresponding position in a target static environment model in the target environment submodel according to the target location, to obtain a merge model as the first type of data; ,
    数据计算子单元,用于通过计算所述飞行器模型在所述合并模型中的飞行状态数据,获得第二类数据。a data calculation subunit for obtaining second type of data by calculating flight state data of the aircraft model in the merged model.
  21. 根据权利要求20所述的装置,其特征在于,The device of claim 20 wherein:
    对所述合并模型进行渲染后的第一类数据包括:图像数据和深度数据;The first type of data after rendering the merged model includes: image data and depth data;
    所述飞行状态数据包括至少一种下述数据:飞行器模型的位置数据,飞行器模型与遥控器的距离数据、飞行器模型的高度数据、飞行器模型的方向数据;The flight state data includes at least one of the following: position data of the aircraft model, distance data between the aircraft model and the remote controller, altitude data of the aircraft model, and direction data of the aircraft model;
    所述第二类数据包括至少一种下述传感器类数据:根据所述位置数据获得的GPS数据,根据所述方向数据获得的指南针数据、根据所述高度数据获得的气压计数据、根据所述距离数据获得的遥控器信号强度数据、根据所述位置数据和方向数据获得的超声传感器数据、以及IMU数据。The second type of data includes at least one of the following sensor type data: GPS data obtained from the position data, compass data obtained from the direction data, barometer data obtained from the height data, according to the Remote control signal strength data obtained from the distance data, ultrasonic sensor data obtained from the position data and direction data, and IMU data.
  22. 根据权利要求13至21任一所述的装置,其特征在于,所述飞行器模型包括:用于与所述目标环境子模型进行交互的动力模型,用于控制飞行器模型飞行姿态的控制模型,以及用于为所述控制模型提供视觉数据的视觉系统模型。The apparatus according to any one of claims 13 to 21, wherein said aircraft model comprises: a dynamic model for interacting with said target environment submodel, a control model for controlling flight attitude of the aircraft model, and A vision system model for providing visual data to the control model.
  23. 根据权利要求22所述的装置,其特征在于,所述装置还包括:The device of claim 22, wherein the device further comprises:
    第一输入单元,用于将所述第一类数据输入所述视觉系统模型;a first input unit, configured to input the first type of data into the vision system model;
    第一获得单元,用于获得所述视觉系统模型对所述第一类数据进行感知和导航处理后,得到的视觉数据; a first obtaining unit, configured to obtain visual data obtained after the visual system model senses and navigates the first type of data;
    所述第一输入单元,还用于将所述视觉数据输入所述控制模型。The first input unit is further configured to input the visual data into the control model.
  24. 根据权利要求22所述的装置,其特征在于,所述装置还包括:The device of claim 22, wherein the device further comprises:
    第二输入单元,用于将所述第二类数据输入所述控制模型;a second input unit, configured to input the second type of data into the control model;
    第二获得单元,用于获得所述控制模型依据所述第二类数据对飞行器进行虚拟飞行控制后,输出的飞行控制数据;a second obtaining unit, configured to obtain flight control data that is output after the control model performs virtual flight control on the aircraft according to the second type of data;
    调整单元,用于根据所述飞行控制数据调整飞行器的飞行控制逻辑。An adjustment unit for adjusting flight control logic of the aircraft based on the flight control data.
  25. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现如下操作:A computer readable storage medium having stored thereon a computer program, wherein the program is executed by a processor to:
    获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;Obtaining one or more target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
    处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;Processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data;
    对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。The first type of data is rendered and output, and the second type of data is directly output.
  26. 一种计算设备,其特征在于,包括通过内部总线连接的存储器、处理器和外部接口,所述存储器,用于存储获得飞行模拟数据的控制逻辑对应的机器可读指令;A computing device, comprising: a memory, a processor and an external interface connected by an internal bus, the memory for storing machine readable instructions corresponding to control logic for obtaining flight simulation data;
    所述处理器,用于读取所述存储器上的所述机器可读指令,并执行所述指令以实现如下操作:The processor is configured to read the machine readable instructions on the memory and execute the instructions to:
    获取飞行器模型待模拟飞行场景下的一个或多个目标环境子模型,所述目标环境子模型中包括目标动态环境模型,其中动态环境模型为针对具有动态变化特性的环境因素所创建的模型;Obtaining one or more target environment sub-models of the aircraft model to be simulated flight scene, wherein the target environment sub-model includes a target dynamic environment model, wherein the dynamic environment model is a model created for environmental factors having dynamic change characteristics;
    处理每个目标环境子模型与飞行器模型之间的交互,获得第一类数据和第二类数据;Processing the interaction between each target environment sub-model and the aircraft model to obtain the first type of data and the second type of data;
    对所述第一类数据进行渲染后输出,以及直接输出所述第二类数据。 The first type of data is rendered and output, and the second type of data is directly output.
PCT/CN2017/099113 2017-08-25 2017-08-25 Method and apparatus for obtaining flight simulation data, storage medium and device WO2019037102A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/099113 WO2019037102A1 (en) 2017-08-25 2017-08-25 Method and apparatus for obtaining flight simulation data, storage medium and device
CN201780004499.5A CN108701164A (en) 2017-08-25 2017-08-25 Obtain method, apparatus, storage medium and the equipment of flight simulation data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/099113 WO2019037102A1 (en) 2017-08-25 2017-08-25 Method and apparatus for obtaining flight simulation data, storage medium and device

Publications (1)

Publication Number Publication Date
WO2019037102A1 true WO2019037102A1 (en) 2019-02-28

Family

ID=63844084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/099113 WO2019037102A1 (en) 2017-08-25 2017-08-25 Method and apparatus for obtaining flight simulation data, storage medium and device

Country Status (2)

Country Link
CN (1) CN108701164A (en)
WO (1) WO2019037102A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110299030B (en) * 2019-06-28 2021-11-19 汉王科技股份有限公司 Handheld terminal, aircraft, airspace measurement method and control method of aircraft
CN111460184B (en) * 2020-03-05 2023-04-11 哈尔滨工业大学 Dynamic simulation device for remote sensing satellite load data
CN111862314B (en) * 2020-07-23 2022-05-13 苏州浪潮智能科技有限公司 Automatic driving simulation rendering method, device, equipment and readable medium
CN112199828B (en) * 2020-09-25 2022-09-13 中国直升机设计研究所 Helicopter simulator control system data packet development method
CN112286075B (en) * 2020-10-28 2021-06-15 北京和德宇航技术有限公司 Method, device and equipment for switching model flight scenes and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201870A (en) * 2007-12-20 2008-06-18 四川川大智胜软件股份有限公司 Method for dynamic simulation of air traffic flight posture
US20130124177A1 (en) * 2009-06-13 2013-05-16 Eric T. Falangas Method of modeling dynamic characteristics of a flight vehicle
CN104240282A (en) * 2014-06-09 2014-12-24 中航远景(北京)科技股份有限公司 View generating system
CN104267614A (en) * 2014-09-15 2015-01-07 南京航空航天大学 Unmanned aerial vehicle real-time simulation system and developing method thereof
CN105653350A (en) * 2015-12-30 2016-06-08 南京乐飞航空技术有限公司 Meteorological radar simulation rendering method used for flight simulator
US9583020B1 (en) * 2012-11-30 2017-02-28 Rockwell Collins, Inc. Simulator system for simulating weather

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8019447B2 (en) * 2007-09-14 2011-09-13 The Boeing Company Method and system to control operation of a device using an integrated simulation with a time shift option
US8229718B2 (en) * 2008-12-23 2012-07-24 Microsoft Corporation Use of scientific models in environmental simulation
CN103093047B (en) * 2013-01-12 2015-06-17 天津大学 Typical aircraft visual simulation system
WO2016049924A1 (en) * 2014-09-30 2016-04-07 SZ DJI Technology Co., Ltd. Systems and methods for flight simulation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101201870A (en) * 2007-12-20 2008-06-18 四川川大智胜软件股份有限公司 Method for dynamic simulation of air traffic flight posture
US20130124177A1 (en) * 2009-06-13 2013-05-16 Eric T. Falangas Method of modeling dynamic characteristics of a flight vehicle
US9583020B1 (en) * 2012-11-30 2017-02-28 Rockwell Collins, Inc. Simulator system for simulating weather
CN104240282A (en) * 2014-06-09 2014-12-24 中航远景(北京)科技股份有限公司 View generating system
CN104267614A (en) * 2014-09-15 2015-01-07 南京航空航天大学 Unmanned aerial vehicle real-time simulation system and developing method thereof
CN105653350A (en) * 2015-12-30 2016-06-08 南京乐飞航空技术有限公司 Meteorological radar simulation rendering method used for flight simulator

Also Published As

Publication number Publication date
CN108701164A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
KR102236957B1 (en) System and method for developing, testing and deploying digital reality applications into the real world via a virtual world
WO2019037102A1 (en) Method and apparatus for obtaining flight simulation data, storage medium and device
US10643364B1 (en) Ground plane detection for placement of augmented reality objects
US10708704B2 (en) Spatial audio for three-dimensional data sets
US9223408B2 (en) System and method for transitioning between interface modes in virtual and augmented reality applications
TWI494898B (en) Extracting and mapping three dimensional features from geo-referenced images
US11367257B2 (en) Information processing apparatus, information processing method, and storage medium
US10347001B2 (en) Localizing and mapping platform
CN112699765A (en) Method and device for evaluating visual positioning algorithm, electronic equipment and storage medium
CN111175713A (en) Method and system for radar simulation and object classification
CN112836698A (en) Positioning method, positioning device, storage medium and electronic equipment
KR102095135B1 (en) Method of positioning indoor and apparatuses performing the same
CN109269495B (en) Dynamic star map generation method and device
US11546721B2 (en) Location-based application activation
CN110366711A (en) Information processing unit, flight control instructions method and recording medium
EP3754616A1 (en) Location-based application stream activation
Hartmann et al. Landmark initialization for unscented Kalman filter sensor fusion for monocular camera localization
CN115357500A (en) Test method, device, equipment and medium for automatic driving system
KR101821992B1 (en) Method and apparatus for computing 3d position of target using unmanned aerial vehicles
CN114663615A (en) Electronic map display method and device and electronic equipment
KR102173286B1 (en) Electronic device, method, and computer readable medium for correction of spacing coordinate information in mixed reality
CN112100798A (en) System and method for deploying virtual copies of real-world elements into persistent virtual world systems
Im et al. A Script Hook-based Ultra-Low Cost Driving Simulator for Development of Self-Driving Algorithms
CN112325905B (en) Method, device and medium for identifying measurement error of IMU
US20220264255A1 (en) Network unilateral communication location electronic underpinning system

Legal Events

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

Ref document number: 17922442

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17922442

Country of ref document: EP

Kind code of ref document: A1