CN116204063A - Qt and offline 3D map-based simulation system vision real-time display device and method - Google Patents

Qt and offline 3D map-based simulation system vision real-time display device and method Download PDF

Info

Publication number
CN116204063A
CN116204063A CN202211528636.4A CN202211528636A CN116204063A CN 116204063 A CN116204063 A CN 116204063A CN 202211528636 A CN202211528636 A CN 202211528636A CN 116204063 A CN116204063 A CN 116204063A
Authority
CN
China
Prior art keywords
module
offline
map
webpage
aircraft
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211528636.4A
Other languages
Chinese (zh)
Inventor
崔俊根
张军
霍明磊
李世海
胡海燕
刘新宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Aerospace Feiteng Equipment Technology Co ltd
Original Assignee
Beijing Aerospace Feiteng Equipment Technology Co ltd
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 Beijing Aerospace Feiteng Equipment Technology Co ltd filed Critical Beijing Aerospace Feiteng Equipment Technology Co ltd
Priority to CN202211528636.4A priority Critical patent/CN116204063A/en
Publication of CN116204063A publication Critical patent/CN116204063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/05Geographic models
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • Human Computer Interaction (AREA)
  • Remote Sensing (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a real-time simulation system view display device and a real-time simulation system view display method based on Qt and an offline 3D map, wherein a data processing module in the device is used for storing an offline map webpage and an aircraft model, and responding to an offline map webpage and an aircraft model request sent by an interface display module; the interface display module is used for displaying an offline map webpage and aircraft model motions; the shared memory reading module is used for reading and storing the aircraft data stored in the shared memory area of the semi-physical real-time simulation system; and the webpage communication module is used for reading the aircraft data stored in the shared memory reading module and sending the aircraft data to an offline map webpage so as to drive the aircraft model to move in the offline map. The invention realizes the simulation view display by establishing the website and the offline map in a three-dimensional map mode, solves the problem of interaction between the semi-physical simulation system and the webpage information by utilizing Qt, and provides a feasibility scheme for the semi-physical simulation view display.

Description

Qt and offline 3D map-based simulation system vision real-time display device and method
Technical Field
The invention belongs to the technical field of visual simulation, and particularly relates to a simulation system visual real-time display device and method based on Qt (application development framework) and an offline 3D map.
Background
With the rapid development of computer technology, the application field of computer simulation technology is becoming wider and wider. In addition to displaying trajectory information, the current real-time simulation system also needs to display the flight state of the aircraft more intuitively and in real time based on the three-dimensional view of the map. Both *** earth and *** map can provide map development environments, but map environments require networking, which makes many specific environments unusable, which cannot be connected to the internet.
Disclosure of Invention
In order to overcome the defects in the prior art, the inventor performs intensive research and provides a simulation system view real-time display device and method based on Qt and an offline 3D map, which are realized by establishing a website and an offline map to enable the simulation view to be displayed in a three-dimensional map mode, and the Qt is utilized to solve the function of interaction between a semi-physical real-time simulation system and webpage information, so that the problem that the offline map is required to be displayed in real-time in semi-physical simulation is solved, and the flight effect of an aircraft can be displayed more intuitively by matching with the semi-physical simulation system.
The technical scheme provided by the invention is as follows:
in a first aspect, a real-time simulation system view display device based on Qt and an offline 3D map includes a data processing module, an interface display module, a shared memory reading module, and a web page communication module:
the data processing module is used for storing the offline map webpage and the aircraft model, and responding to the offline map webpage and the aircraft model request sent by the interface display module;
the interface display module comprises a webpage display module and a display control module, and the display control module is used for sending a request for calling and replacing an offline map webpage and an aircraft model to the data processing module; the webpage display module has similar functions to a webpage browser and is used for displaying an offline map webpage and aircraft model motions;
the shared memory reading module is used for reading and storing the aircraft data stored in the shared memory area of the semi-physical real-time simulation system, wherein the aircraft data comprises position and attitude information and various flag bits, the various flag bits comprise missile insertion and separation flag bits, engine shutdown flag bits, engine separation flag bits, missile hit flag bits and missile self-destruction flag bits, and the current aircraft model action is indicated through the various flag bits;
and the webpage communication module is used for reading the aircraft data stored in the shared memory reading module and sending the read aircraft data to an offline map webpage so as to drive the aircraft model to move in the offline map.
In a second aspect, a real-time display method for a view of a simulation system based on Qt and an offline 3D map includes:
building a Web server, building an offline map webpage, and storing the offline map webpage and the aircraft model in the Web server;
setting a shared memory area in a semi-physical real-time simulation system, and storing output data into the shared memory area in real time according to an interface determined by a protocol;
the method comprises the steps of taking an offline map webpage by using an interface display module, importing an aircraft model on the offline map webpage, reading position and posture information of the aircraft from a shared memory area by using a shared memory reading module, outputting the information to the offline map webpage by using a webpage communication module, and driving the aircraft model to move in an offline map.
In a third aspect, a real-time simulation system view display device based on Qt and an offline 3D map includes:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the Qt and offline 3D map-based simulation system view real-time display method of any of claims 6 to 9.
According to the simulation system view real-time display device and method based on the Qt and the offline 3D map, provided by the invention, the simulation system view real-time display device and method have the following beneficial effects:
according to the simulation system view real-time display device and method based on the Qt and the offline 3D map, the simulation view is displayed in a three-dimensional map mode by establishing the website and the offline map, and the function of interaction between the semi-physical real-time simulation system and webpage information is achieved by utilizing the Qt, so that the problem that the offline map real-time view display is needed in the semi-physical simulation is solved, the flight effect of an aircraft can be displayed more intuitively by matching with the semi-physical simulation system, and a new feasible scheme is provided for the semi-physical simulation view display.
Drawings
FIG. 1 is an implementation of the present invention;
FIG. 2 is a diagram of simulated data interaction logic of the present invention;
FIG. 3 is a main program operation logic diagram of the display device of the present invention;
FIG. 4 is a logic diagram of the offline map web page program operation of the display device of the present invention;
FIG. 5 shows the display device of the present invention in an unopened condition of the aircraft;
FIG. 6 shows the state of the transmitting frame before the display device is transmitted;
FIG. 7 shows an off-track condition of an aircraft of the display device of the present invention;
FIG. 8 is a view of the display device of the present invention with the aircraft engine separated;
FIG. 9 shows the flight status of the aircraft of the display device of the present invention;
fig. 10 is a view of the display device of the present invention showing a fall condition of engine debris;
FIG. 11 shows the landing status of the aircraft of the display device of the present invention;
fig. 12 shows the explosive self-destruction state of the aircraft of the display device according to the invention.
Detailed Description
The features and advantages of the present invention will become more apparent and clear from the following detailed description of the invention.
The word "exemplary" is used herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. Although various aspects of the embodiments are illustrated in the accompanying drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The current real-time display of the three-dimensional view of the flight state of the aircraft based on the map is required to be realized in a networking environment, so that the invention determines to build an offline map, and realizes the three-dimensional view simulation based on the offline map in a webpage form so as to simultaneously ensure the normal operation of simulation operation and the requirement of not connecting with the Internet. The three-dimensional view display operates in an html webpage mode, so that how to send the position and posture information output by the semi-physical real-time simulation system into the webpage and continuously update the position and posture information to drive the aircraft model to move is still another problem. Therefore, the invention solves the function of interaction between the semi-physical real-time simulation system and the webpage information by utilizing Qt. The specific scheme is described below.
According to a first aspect of the present invention, there is provided a real-time simulation system view display device based on Qt and an offline 3D map, as shown in fig. 1, including a data processing module, an interface display module, a shared memory reading module, and a web page communication module:
the data processing module comprises a Web server, wherein the Web server is built by Apache software and is used for storing an offline map webpage and an aircraft model, and responding to the offline map webpage and the aircraft model request sent by the interface display module; the method is characterized in that an offline map webpage is written in an html form, and a plurality of models can be loaded on the offline map and driven to move at the same time, so that various requirements of semi-physical simulation demonstration are ensured;
the interface display module comprises a webpage display module and a display control module, and the display control module is used for sending a request for calling and replacing an offline map webpage and an aircraft model to the data processing module; the webpage display module has similar functions to a webpage browser and is used for displaying an offline map webpage and aircraft model motions;
the shared memory reading module is used for reading and storing the aircraft data output by the semi-physical real-time simulation system, wherein the aircraft data comprises position and attitude information and various zone bits, so that information interaction between the semi-physical real-time simulation system and the real-time display device is completed; each zone bit comprises a missile disconnecting and disconnecting zone bit, an engine shutdown zone bit, an engine disconnecting zone bit, a missile hit zone bit, a missile self-destruction zone bit and a program exit zone bit, and the action of the current aircraft model is indicated through each zone bit;
the webpage communication module is used for sending the read aircraft data to an offline map webpage so as to drive the aircraft model to move in the offline map.
FIG. 2 is a semi-physical simulation data interaction logic diagram. The shared memory area is an independent open memory block, is opened up by a semi-physical real-time simulation system, and stores output data into the shared memory area in real time according to an interface determined by a protocol. When the shared memory reading module in the visual real-time display device operates, the shared memory space is opened, data are read and stored in the memory, then the array is transmitted to the webpage of the offline map through the webpage communication module, and the aircraft model in the offline map is driven to fly according to the determined flight state.
In the invention, the interface display module and the shared memory reading module are generated by Qt compiling. The webpage communication module adopts QWEbCHannel functions in Qt, so that data communication among the interface display module, the shared memory module and the offline map webpage is realized. And outputting the position and posture information of the aircraft to an html webpage file by using QWEbCHannel operation, so that the aircraft is driven to move in real time, and the problem that the html file needs to update model data is solved.
In the invention, the interface display module further comprises a parameter display module, and the parameter display module displays the position and posture parameters of the aircraft model.
In the invention, the shared memory reading module comprises a data reading module and a first timer module, wherein the data reading module is driven by the first timer module to read the aircraft data in the shared memory area of the semi-physical real-time simulation system at fixed time. For example, the driving data reading module of the first timer module reads the aircraft data in the shared memory area of the semi-physical real-time simulation system once every 1 ms.
Fig. 3 is a logic diagram of the operation of the visual real-time display device. After the operation, the program is initialized and starts to call an offline map webpage in a web server, then a first timer module operates, a data reading module firstly reads shared memory area data and stores the shared memory area data into a memory space, then a program exit mark in the shared memory module is judged, and if a semi-physical real-time simulation system sends the program exit mark, the program exits operation; if not, the read aircraft data are put into an array, and the aircraft data are output to an offline map webpage by a webpage communication module.
In the invention, the webpage communication module comprises a data transmission module and a second timer module, wherein the data transmission module is driven by the second timer module to read the aircraft data stored in the shared memory reading module at regular time and output the aircraft data to the offline map webpage. For example, the drive data transmission module of the second timer module outputs aircraft data to the offline map web page every 5 ms.
Fig. 4 is a logic diagram of html web page program. Firstly, an offline map is created, an array and various numerical values are initialized, an aircraft model is imported, a second timer module is started to operate, the data transmission module can continuously update the states of the aircraft, such as the effects of engine falling, aircraft explosion and the like, and simultaneously, the position and the posture of the aircraft are also continuously updated, so that the effect of the aircraft moving in the offline map is achieved.
Fig. 5 to 12 show three-dimensional view display states of the display device in cooperation with a semi-physical simulation experiment. After the device operates, a display control module in the interface display module requests an offline map webpage and an aircraft model, the webpage display module displays the offline map, and the initial display state is shown in fig. 5. When the semi-physical real-time simulation system transmits a ready-to-launch instruction and a launch angle, the ready-to-launch instruction and the launch angle are transmitted to an offline map webpage through the shared memory reading module and the webpage communication module, and the launching frame model starts to move as shown in fig. 6. When the transmitting command is transmitted, the transmitting command is transmitted to an offline map webpage through the shared memory reading module and the webpage communication module, the aircraft model is transmitted, and according to the current state sent by the semi-physical simulation system, the current aircraft model is selected and the example special effect of engine tail flame is added, as shown in fig. 7. After the engine separation instruction is obtained, the engine separation instruction is transmitted to an offline map webpage through the shared memory reading module and the webpage communication module, the engine model is separated from the aircraft model, and semi-physical simulation data are continuously acquired to respectively drive the engine model and the aircraft model to move in the map at the same time, as shown in fig. 8 and 9. Engine model crash as shown in fig. 10 and aircraft model landing status as shown in fig. 11. If the aircraft model flies out of the preset track during simulation, the semi-physical real-time simulation system sends a self-destruction instruction, and the webpage communication module displays the self-destruction of the aircraft model after reading the self-destruction instruction state mark in the shared memory module, as shown in fig. 12.
According to a second aspect of the present invention, there is also provided a real-time display method of a simulation system view based on Qt and an offline 3D map, including:
building a Web server, building an offline map webpage, and storing the offline map webpage and the aircraft model in the Web server;
setting a shared memory area in a semi-physical real-time simulation system, and storing output data into the shared memory area in real time according to an interface determined by a protocol;
the method comprises the steps of taking an offline map webpage by using an interface display module, importing an aircraft model on the offline map webpage, reading position and posture information of the aircraft from a shared memory area by using a shared memory reading module, outputting the information to the offline map webpage by using a webpage communication module, and driving the aircraft model to move in an offline map.
According to a third aspect of the present invention, a simulation system view real-time display device based on Qt and an offline 3D map, includes:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for real-time display of a view of a simulation system based on Qt and an offline 3D map according to the second aspect.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Those skilled in the art will appreciate that in one or more of the examples described above, the functions described in the present invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media can be any available media that can be accessed by a general purpose or special purpose computer, including: a U-disk, a removable hard disk, a Read-only memory (ROM), a random access memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The invention has been described in detail in connection with the specific embodiments and exemplary examples thereof, but such description is not to be construed as limiting the invention. It will be understood by those skilled in the art that various equivalent substitutions, modifications or improvements may be made to the technical solution of the present invention and its embodiments without departing from the spirit and scope of the present invention, and these fall within the scope of the present invention. The scope of the invention is defined by the appended claims.
What is not described in detail in the present specification is a well known technology to those skilled in the art.

Claims (10)

1. The simulation system view real-time display device based on the Qt and the offline 3D map is characterized by comprising a data processing module, an interface display module, a shared memory reading module and a webpage communication module:
the data processing module is used for storing the offline map webpage and the aircraft model, and responding to the offline map webpage and the aircraft model request sent by the interface display module;
the interface display module is used for sending a request for calling and replacing the offline map webpage and the aircraft model to the data processing module and displaying the offline map webpage and the aircraft model to move;
the shared memory reading module is used for reading and storing the aircraft data stored in the shared memory area of the semi-physical real-time simulation system, wherein the aircraft data comprises position and attitude information and various flag bits, the various flag bits comprise missile insertion and separation flag bits, engine shutdown flag bits, engine separation flag bits, missile hit flag bits and missile self-destruction flag bits, and the current aircraft model action is indicated through the various flag bits;
and the webpage communication module is used for reading the aircraft data stored in the shared memory reading module and sending the read aircraft data to an offline map webpage so as to drive the aircraft model to move in the offline map.
2. The simulation system view real-time display device based on the Qt and the offline 3D map according to claim 1, wherein the interface display module and the shared memory module adopt Qt compiling, and the web page communication module adopts qebchannel functions in Qt to implement data communication among the interface display module, the shared memory module and the offline map web page.
3. The Qt and offline 3D map-based simulation system view real-time display device of claim 1, wherein the interface display module is further configured to display real-time position and attitude parameters of an aircraft model.
4. The visual real-time display device of a simulation system based on a Qt and an offline 3D map according to claim 1, wherein the shared memory reading module comprises a data reading module and a first timer module, and the data reading module reads the aircraft data in the shared memory area of the semi-physical real-time simulation system at fixed time under the driving of the first timer module.
5. The visual real-time display device of a simulation system based on Qt and an offline 3D map according to claim 1, wherein the web page communication module comprises a data transmission module and a second timer module, and the data transmission module reads the aircraft data stored in the shared memory reading module at regular time under the driving of the second timer module and outputs the aircraft data to the offline map web page.
6. A simulation system view real-time display method based on Qt and offline 3D map is characterized by comprising the following steps:
building a Web server, building an offline map webpage, and storing the offline map webpage and the aircraft model in the Web server;
setting a shared memory area in a semi-physical real-time simulation system, and storing output data into the shared memory area in real time according to an interface determined by a protocol;
the method comprises the steps of taking an offline map webpage by using an interface display module, importing an aircraft model on the offline map webpage, reading position and posture information of the aircraft from a shared memory area by using a shared memory reading module, outputting the information to the offline map webpage by using a webpage communication module, and driving the aircraft model to move in an offline map.
7. The method for real-time display of a view of a simulation system based on Qt and an offline 3D map according to claim 6, wherein the web page communication module uses qebchannel function in Qt to implement data communication among the interface display module, the shared memory module and the offline map web page.
8. The method for displaying view of a simulation system based on Qt and offline 3D maps according to claim 6, wherein the shared memory reading module reads the aircraft data in the shared memory area of the semi-physical real-time simulation system at regular time.
9. The method for real-time display of a view of a simulation system based on Qt and an offline 3D map according to claim 6, wherein the web page communication module reads the aircraft data stored in the shared memory reading module at regular time and outputs the aircraft data to an offline map web page.
10. A simulation system view real-time display device based on Qt and offline 3D map is characterized by comprising:
one or more processors;
storage means for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the Qt and offline 3D map-based simulation system view real-time display method of any of claims 6 to 9.
CN202211528636.4A 2022-11-30 2022-11-30 Qt and offline 3D map-based simulation system vision real-time display device and method Pending CN116204063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211528636.4A CN116204063A (en) 2022-11-30 2022-11-30 Qt and offline 3D map-based simulation system vision real-time display device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211528636.4A CN116204063A (en) 2022-11-30 2022-11-30 Qt and offline 3D map-based simulation system vision real-time display device and method

Publications (1)

Publication Number Publication Date
CN116204063A true CN116204063A (en) 2023-06-02

Family

ID=86506630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211528636.4A Pending CN116204063A (en) 2022-11-30 2022-11-30 Qt and offline 3D map-based simulation system vision real-time display device and method

Country Status (1)

Country Link
CN (1) CN116204063A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116736740A (en) * 2023-08-09 2023-09-12 东方空间技术(山东)有限公司 Simulation system and method for multiple aircrafts

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116736740A (en) * 2023-08-09 2023-09-12 东方空间技术(山东)有限公司 Simulation system and method for multiple aircrafts

Similar Documents

Publication Publication Date Title
US6771288B2 (en) Methods and apparatus for updating information in a display containing fixed and variable information
CN103268257B (en) The method of the hardware resource of hardware resource access system and access electronic installation thereof
CN111555913A (en) Simulation method, system, electronic device and storage medium for simulating real network environment based on virtualization
AU2008318930B2 (en) Unmanned vehicle simulation system
CN116204063A (en) Qt and offline 3D map-based simulation system vision real-time display device and method
US20160057220A1 (en) System for cloud computing using web components
KR101785595B1 (en) Caching pagelets of structured documents
US20200379486A1 (en) Autonomous Behavior Generation for Aircraft
JP6552775B1 (en) Hybrid rendering HMI terminal device
CN112131499A (en) Image annotation method and device, electronic equipment and storage medium
JP2001209407A (en) Simulator for executing plc program
CN105426076A (en) Information processing method and electronic equipment
WO2021035702A1 (en) Application program testing method, device and storage medium
CN105389096B (en) Data interactive method based on browser and device
CN109635266A (en) Three-dimensional visualization edit methods, device and three-dimension visible sysem
CN116483737B (en) Data processing method and device, electronic equipment and storage medium
CN109799771B (en) Control system, method and device of industrial robot
CN112669419A (en) Method for rendering, central processing unit, image processor, system, and storage medium
CN105677456A (en) Process information writing method and user device
CN115292044A (en) Data processing method and device, electronic equipment and storage medium
CN113660123B (en) Virtual switch upgrading method, device, electronic equipment and storage medium
CN113986178A (en) Universal display driving device and method for display screen of DCS platform of nuclear power plant
US10861238B2 (en) Experiential representation of data in mixed reality
CN111228818B (en) Communication interaction method and device, storage medium, processor and electronic device
CN111796846B (en) Information updating method, device, terminal equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination