Inertial navigation system based on Unity3D and QT page element interaction
Through the inertial navigation demonstration system combining Unity3D and QT, TCP network communication is used to realize real-time interaction and display of inertial navigation data, solving the problem of high cost of physical equipment in inertial navigation teaching, providing an intuitive inertial navigation teaching experience, and promoting Popularization and development of inertial navigation technology.
Patent Information
- Application Number
- CN202410726687.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-20
AI Technical Summary
The high cost and limited quantity of physical equipment in existing inertial navigation teaching makes it difficult for students to deeply understand the working principle and motion status of the inertial navigation system.
Use Unity3D and QT to develop an inertial navigation guidance system based on page element interaction. Real-time display and interactive operation of inertial navigation data are realized through the QT interface module and Unity3D interface module. TCP network communication is used for data interaction to build an intuitive three-dimensional Inertial navigation models and motion scenarios.
It provides an intuitive and easy-to-operate inertial navigation teaching experience, reduces teaching costs, improves students' practical ability and learning interest, and promotes the popularization and development of inertial navigation technology.
Smart Images

Figure CN118672575A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of inertial navigation and computer graphical user interface, and in particular to an inertial navigation demonstration system based on the interaction between Unity3D and QT page elements. Background Art
[0002] Inertial navigation system (INS) plays an important role in modern navigation technology, and its accuracy and stability are crucial to many application fields. However, in the actual teaching and research process, physical INS equipment is expensive and limited in quantity, resulting in extremely limited opportunities for everyone to contact and understand it. Therefore, developing an economical, practical, easy-to-understand and easy-to-operate INS demonstration system is of great significance to improving students' practical ability and promoting the popularization of INS technology.
[0003] Traditional inertial navigation demonstration systems are usually presented in the form of text and diagrams, which lack intuitiveness and interactivity, making it difficult for students to deeply understand and master the working principles of inertial navigation systems. In recent years, with the development of computer graphics and human-computer interaction technology, three-dimensional graphics and interactive interfaces have been widely used in various fields. Unity3D, as a powerful three-dimensional game engine, has rich scene modeling, animation rendering and interactive functions; while QT, as an excellent cross-platform application development framework, has powerful interface design and event processing capabilities. Therefore, combining Unity3D with QT to develop an inertial navigation demonstration system based on the interaction between Unity3D and QT page elements is expected to provide a new solution for inertial navigation teaching.
[0004] By building a 3D inertial navigation model and motion scene with Unity3D, the working principle and motion state of the inertial navigation system can be intuitively demonstrated; at the same time, by designing the user interface with QT, the real-time display and interactive operation of the inertial navigation data can be realized. Students can observe the changes in inertial navigation data in different scenarios through the operation interface, and deeply understand the operating mechanism and performance characteristics of the inertial navigation system. In addition, the inertial navigation demonstration system based on Unity3D and QT is also scalable and customizable, and can be flexibly adjusted and optimized according to teaching needs.
[0005] In summary, the inertial navigation demonstration system combining Unity3D and QT can overcome the limitations of traditional demonstration methods and provide an intuitive and interactive inertial navigation teaching experience, which is of great significance for promoting the popularization and development of inertial navigation technology. Summary of the invention
[0006] The invention provides an inertial navigation demonstration system based on the interaction between Unity3D and QT page elements, aiming to solve the problems of high cost and limited quantity of physical equipment in current inertial navigation teaching.
[0007] The present invention is achieved through the following technical solutions.
[0008] An inertial navigation demonstration system based on the interaction between Unity3D and QT page elements includes a QT interface module and a Unity3D interface module; it is implemented in the following ways:
[0009] Step 1: Build the QT interface;
[0010] First, create a new QT project using QT Creator or other integrated development environment;
[0011] Then, design the user interface according to teaching requirements, including the menu bar, toolbar, status bar, and the main operation area and inertial navigation data display area;
[0012] Step 2: Write a C++ program to handle interface events and data interactions, and write code to receive and parse the inertial navigation data sent by the Unity3D client and update the display content on the interface;
[0013] Step 3: Use Unity3D to build scenes and models;
[0014] In Unity3D, first create a new project and set appropriate scene parameters; then, use Unity3D's modeling tools or import external model .fbx files to build a 3D model of the inertial navigation system;
[0015] Step 4: Add animation and scripts to the model;
[0016] To simulate the motion state and performance characteristics of the inertial navigation system, and set the relevant parameters of TCP network communication in Unity3D;
[0017] Step 5: Establish communication between QT and Unity3D through TCP network.
[0018] First, in the QT server, create a TCP server object and listen to the specified port number. When the Unity3D client connects, the QT server accepts the connection and creates a new connection object.
[0019] Secondly, use C# to write network communication code in Unity3D client, use Socket class in Unity3D to create a TCP client object, and connect to the port that QT server listens to. Once the connection is established successfully, Unity3D client sends data to QT server or receives data from QT server.
[0020] When the user performs an operation on the QT interface, the QT server sends the corresponding control command to the Unity3D client. After receiving the command, the Unity3D client parses and performs the corresponding operation, such as adjusting the position and posture of the model or triggering animation, etc. At the same time, the Unity3D client collects inertial navigation data in real time and sends it to the QT server in the protocol format. After receiving the data, the QT server updates the display content on the interface.
[0021] Beneficial effects of the present invention:
[0022] 1. The present invention realizes the control of the inertial navigation system model in the Unity3D scene through the interface software written by QT, and realizes the data interaction between the QT interface and Unity3D through TCP network communication;
[0023] 2. The present invention uses QT C++ to write a server program as the interface software of the inertial navigation demonstration system. The interface software provides a wealth of operation options and inertial navigation data display area. Users can perform various operations through the interface, such as sending control commands, adjusting viewing angles, switching scenes, etc. At the same time, the interface software is also responsible for receiving the inertial navigation data sent by the Unity3D client and displaying it in real time on the interface;
[0024] 3. Through the inertial navigation demonstration system of the present invention, users can intuitively observe and understand the working principle and motion state of the inertial navigation system, and control the inertial navigation system model in the Unity3D scene by operating the QT interface. At the same time, the application of TCP network communication makes data transmission more stable and reliable, and improves the real-time and interactivity of the system;
[0025] 4. The present invention creates an intuitive and easy-to-operate inertial navigation demonstration system, which enables students to gain an in-depth understanding of the working principle and performance characteristics of the inertial navigation system through a virtual environment, thereby improving their practical ability and learning interest. At the same time, the present invention is also committed to reducing teaching costs, allowing more students to have the opportunity to contact and learn inertial navigation technology, and promoting the popularization and development of inertial navigation technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic diagram of an inertial navigation demonstration system based on the interaction between Unity3D and QT page elements of the present invention;
[0027] Figure 2 The present invention is a flowchart of an inertial navigation demonstration system based on the interaction between Unity3D and QT page elements. DETAILED DESCRIPTION
[0028] The exemplary embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the embodiments shown and described in the accompanying drawings are only exemplary and are intended to illustrate the principles and spirit of the present invention, rather than to limit the scope of the present invention.
[0029] like Figure 1 , 2 As shown, an inertial navigation demonstration system based on the interaction between Unity3D and QT page elements of the present invention includes a QT interface module and a Unity3D interface module; it is specifically implemented in the following manner:
[0030] Step 1: Build the QT interface;
[0031] First, create a new QT project using QT Creator or other integrated development environment;
[0032] Then, design the user interface according to teaching requirements, including the menu bar, toolbar, status bar, and the main operation area and inertial navigation data display area;
[0033] In this embodiment, in the operation area, controls such as buttons, sliders, and text boxes are added to send control commands and adjust the parameters of the inertial navigation system model. For example, buttons can be added to control the rotation, translation, and scaling of the model, and sliders can be added to adjust the movement speed and direction of the model.
[0034] In this embodiment, in the inertial navigation data display area, controls such as tables and charts are used to display the inertial navigation data sent by the Unity3D client in real time. The inertial navigation data includes information such as the position, speed, acceleration, and attitude angle of the carrier.
[0035] Step 2: Write a C++ program to handle interface events and data interaction;
[0036] For example, when a user clicks a button, you need to write a slot function to respond to this event and send the corresponding control command to the Unity3D client. At the same time, you also need to write code to receive and parse the inertial navigation data sent by the Unity3D client and update the display content on the interface.
[0037] Step 3: Use Unity3D to build scenes and models;
[0038] In Unity3D, first create a new project and set appropriate scene parameters; then, use Unity3D's modeling tools or import external model .fbx files to build a 3D model of the inertial navigation system;
[0039] In this embodiment, the three-dimensional model includes a carrier, a sensor, and an algorithm module; during specific implementation, corresponding materials and textures can be set as needed to improve the visual effect.
[0040] Step 4: Add animation and scripts to the model;
[0041] To simulate the motion state and performance characteristics of the inertial navigation system; for example, you can write a C# script to control the movement, rotation and scaling of the model, as well as simulate the data output and algorithm processing of the sensor. At the same time, set the relevant parameters of TCP network communication in Unity3D. In this embodiment, the parameters include IP address, port number, etc., so as to communicate and exchange data with the QT server.
[0042] Step 5: Establish communication between QT and Unity3D through TCP network;
[0043] First, in the QT server, create a TCP server object and listen to the specified port number. When the Unity3D client connects, the QT server accepts the connection and creates a new connection object.
[0044] Secondly, use C# to write network communication code in Unity3D client, use Socket class in Unity3D to create a TCP client object, and connect to the port that QT server listens to. Once the connection is established successfully, Unity3D client sends data to QT server or receives data from QT server.
[0045] In specific implementation, in order to realize the sending of control commands and the receiving of inertial navigation data, some specific protocols and formats can be defined. For example, JSON or XML format can be used to encapsulate control commands and inertial navigation data so as to be parsed and processed between QT and Unity3D.
[0046] When the user performs an operation on the QT interface, the QT server sends the corresponding control command to the Unity3D client. After receiving the command, the Unity3D client parses and performs the corresponding operation, such as adjusting the position and posture of the model or triggering animation, etc. At the same time, the Unity3D client collects inertial navigation data in real time and sends it to the QT server in the protocol format. After receiving the data, the QT server updates the display content on the interface.
[0047] It can be seen that through the above steps, a stable TCP network communication connection is established between QT and Unity3D, realizing real-time interaction and data transmission between interface operations and three-dimensional scene models. This method provides users with an intuitive and interactive inertial navigation demonstration system, which helps to deepen the understanding and study of the working principle and performance characteristics of the inertial navigation system.
[0048] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0049] It is obvious to those skilled in the art that the embodiments of the present invention are not limited to the details of the above exemplary embodiments, and that the embodiments of the present invention can be implemented in other specific forms without departing from the spirit or basic features of the embodiments of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the embodiments of the present invention is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the embodiments of the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units, modules or devices stated in the system, device or terminal claims can also be implemented by the same unit, module or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0050] Finally, it should be noted that the above implementation modes are only used to illustrate the technical solutions of the embodiments of the present invention and are not intended to limit them. Although the embodiments of the present invention have been described in detail with reference to the above preferred implementation modes, those skilled in the art should understand that the technical solutions of the embodiments of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An inertial navigation demonstration system based on the interaction between Unity3D and QT page elements, including QT interface module and Unity3D interface module; It is characterized in that This is accomplished by: Step 1: Build the QT interface; First, create a new QT project using QT Creator or other integrated development environment; Then, design the user interface according to teaching requirements, including the menu bar, toolbar, status bar, and the main operation area and inertial navigation data display area; Step 2: Write a C++ program to handle interface events and data interactions; write code to receive and parse the inertial navigation data sent by the Unity3D client and update the display content on the interface; Step 3: Use Unity3D to build scenes and models; In Unity3D, first create a new project and set appropriate scene parameters; then, use Unity3D's modeling tools or import external model .fbx files to build a 3D model of the inertial navigation system; Step 4: Add animation and scripts to the model; To simulate the motion state and performance characteristics of the inertial navigation system, and set the relevant parameters of TCP network communication in Unity3D; Step 5: Establish communication between QT and Unity3D through TCP network.
2. An inertial navigation demonstration system based on the interaction between Unity3D and QT page elements as claimed in claim 1, It is characterized in that Step 5 is as follows: First, in the QT server, create a TCP server object and listen to the specified port number. When the Unity3D client connects, the QT server accepts the connection and creates a new connection object. Secondly, use C# to write network communication code in Unity3D client, use Socket class in Unity3D to create a TCP client object, and connect to the port that QT server listens to. Once the connection is established successfully, Unity3D client sends data to QT server or receives data from QT server. When the user performs an operation on the QT interface, the QT server sends the corresponding control command to the Unity3D client. After receiving the command, the Unity3D client parses and performs the corresponding operation, such as adjusting the position and posture of the model or triggering animation, etc. At the same time, the Unity3D client collects inertial navigation data in real time and sends it to the QT server in the protocol format. After receiving the data, the QT server updates the display content on the interface.
3. An inertial navigation demonstration system based on the interaction between Unity3D and QT page elements as described in claim 1 or 2, It is characterized in that In the operation area, buttons, sliders, and text box controls are added to send control commands and adjust parameters of the inertial navigation system model.
4. An inertial navigation demonstration system based on the interaction between Unity3D and QT page elements as described in claim 1 or 2, It is characterized in that In the inertial navigation data display area, controls such as tables and charts are used to display the inertial navigation data sent by the Unity3D client in real time.
5. An inertial navigation demonstration system based on the interaction between Unity3D and QT page elements as claimed in claim 4, It is characterized in that The inertial navigation data includes information such as the position, velocity, acceleration and attitude angle of the carrier.
6. An inertial navigation demonstration system based on the interaction between Unity3D and QT page elements as described in claim 1, 2, 3 or 4, It is characterized in that The three-dimensional model includes a carrier, a sensor, and an algorithm module.
