Method, device and computer equipment for determining rigid body posture of dual light ball interactive pen

By setting virtual points on the infrared reflective ball of the dual-photosphere interactive pen and using the singular value decomposition method, the problem of low accuracy in solving the rigid body posture of the dual-photosphere interactive pen is solved, and higher posture determination accuracy and posture fusion are achieved. Effect.

CN113375662BActive Publication Date: 2024-10-11SHENZHEN REALIS MULTIMEDIA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110520992.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-28
Publication Date
2024-10-11
Estimated Expiration
2041-01-28

AI Technical Summary

Technical Problem

The accuracy of solving the rigid body posture of the dual-photosphere interactive pen is low, which makes it difficult to determine the posture. It is difficult to directly solve the rotation posture with the existing technology.

Method used

By setting virtual points on the infrared reflective ball of the dual-photosphere interactive pen, and using the singular value decomposition method combined with inertial sensor data, the rotation posture and position posture of the dual-photosphere interactive pen are calculated, thereby improving the accuracy of attitude determination.

Benefits of technology

It effectively improves the rigid body attitude determination accuracy of the dual photosphere interactive pen, ensures the integration of the inertial sensor rotation attitude and the rigid body attitude, and solves the instability problem in attitude solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113375662B_ABST
    Figure CN113375662B_ABST
Patent Text Reader

Abstract

The present invention relates to a method, device, computer equipment and storage medium for determining the rigid body posture of a dual-light ball interactive pen. The method comprises: at the initial moment, setting a virtual point on the normal vector of a first infrared reflective ball and a second infrared reflective ball, and setting the position of the virtual point to a first coordinate position point; when the dual-light ball interactive pen rotates, calculating the second coordinate position point of the virtual point at the current moment according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the previous moment; according to the coordinate position point and the second coordinate position point of the first infrared reflective ball and the second infrared reflective ball at the current moment, combined with the coordinate position point and the first coordinate position point of the first infrared reflective ball and the second infrared reflective ball at the initial moment, using the singular value decomposition method to solve the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the current moment. The above method solves the problem of solving the rigid body posture of the dual-light ball interactive pen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interactive pen gesture processing, and in particular to a method, device, computer equipment and storage medium for determining the rigid body gesture of a dual-light ball interactive pen. Background Art

[0002] The interactive pen with dual photosphere inertial sensors is a holographic 3D desktop interactive pen with an infrared reflective ball embedded in the pen head and pen tail respectively, and an inertial sensor as the core chip installed inside the pen body. In the optical motion capture system, in order to achieve the rigid body posture, it is necessary to align the rotation posture of the inertial sensor to the rotation posture of the rigid body.

[0003] To solve the conversion relationship between the rotational posture of the inertial sensor and the rotational posture of the rigid body, the usual practice is to first collect multiple frames of rotational posture data corresponding to the inertial sensor IMU and the rigid body, and then solve the equations satisfied by the rotational posture of the inertial sensor IMU and the rotational posture of the rigid body to solve the conversion relationship between the rotational postures of the two. However, it is not feasible to directly solve the rotational posture with the dual light ball, because only one axis of the dual light ball is stable, and the other two axes are unstable. Therefore, the currently solved rigid body posture accuracy of the dual light ball interactive pen is low, which is not conducive to the posture identification of the dual light ball interactive pen. Therefore, the problem of solving the rigid body posture of the dual light ball interactive pen continues to be solved. Summary of the invention

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method, device, computer equipment and storage medium for determining the rigid body posture of a dual light ball interactive pen, which can solve the problem of solving the rigid body posture of the dual light ball interactive pen and improve the accuracy of the rigid body posture of the dual light ball interactive pen.

[0005] In order to solve at least one of the above technical problems, an embodiment of the present invention provides a method for determining a rigid body posture of a dual light ball interactive pen, wherein the tip of the dual light ball interactive pen is provided with a first infrared reflective ball, the tail of the dual light ball interactive pen is provided with a second infrared reflective ball, and the body of the dual light ball interactive pen is equipped with an inertial sensor, and the method comprises:

[0006] At the initial moment, a virtual point is set on the normal vectors of the first infrared reflective ball and the second infrared reflective ball, and the position of the virtual point is set as a first coordinate position point;

[0007] When the dual-light ball interactive pen rotates, the second coordinate position point of the virtual point at the current moment is calculated according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the previous moment;

[0008] According to the coordinate position points of the first infrared reflective ball, the second infrared reflective ball and the second coordinate position points at the current moment, combined with the coordinate position points of the first infrared reflective ball, the second infrared reflective ball and the first coordinate position points at the initial moment, the singular value decomposition method is used to solve the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the current moment.

[0009] In one embodiment, the method further comprises:

[0010] At the initial moment, the plane where the first infrared reflective ball and the second infrared reflective ball are located is taken as the xoy plane of the coordinate system.

[0011] Determine the midpoint position of the first infrared reflective ball and the second infrared reflective ball in the xoy plane, set a z-axis at the midpoint position, and the normal vector is on the z-axis;

[0012] Obtaining a coordinate system at an initial moment according to the xoy plane and the z axis;

[0013] Taking the coordinate system as a reference, determining the position of the virtual point at an initial moment and setting it as a first coordinate position point;

[0014] With the coordinate system as a reference, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at each moment when the dual-light ball interactive pen rotates are determined.

[0015] In one embodiment, the step of calculating the second coordinate position point of the virtual point at the current moment according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the previous moment, includes:

[0016] Obtaining a coordinate vector of the first coordinate position point at the initial moment and performing a product process with a rotation matrix of the rotation posture of the rigid body of the dual-light ball interactive pen at the previous moment to obtain a first vector;

[0017] Accumulate the first vector and the translation vector of the position and posture of the rigid body of the dual-light ball interactive pen at the previous moment to obtain a second vector;

[0018] Determine a second coordinate position point of the virtual point at the current moment according to the second vector.

[0019] In one embodiment, the method further comprises:

[0020] With the coordinate system as a reference, the rotation matrix of the rotation posture of the rigid body of the dual-light ball interactive pen and the translation vector of the position posture at each moment when the dual-light ball interactive pen rotates are determined.

[0021] In one embodiment, the method further comprises:

[0022] At the initial moment, a singular value decomposition method is used to obtain a random rotation posture and a random position posture, and the random rotation posture is used as the initial rotation posture of the dual-light ball interactive pen, and the random position posture is used as the initial position posture of the dual-light ball interactive pen.

[0023] In one embodiment, the method further comprises:

[0024] At the initial moment, the actual rotation posture and actual position posture of the rigid body of the dual light ball interactive pen are read, and the actual rotation posture is used as the initial rotation posture of the dual light ball interactive pen, and the actual position posture is used as the initial position posture of the dual light ball interactive pen.

[0025] In one of the embodiments, at the initial moment, the first coordinate position of the virtual point is (0, 0, 1).

[0026] A rigid body posture determination device for a dual light ball interactive pen, wherein the tip of the dual light ball interactive pen is provided with a first infrared reflective ball, the tail of the dual light ball interactive pen is provided with a second infrared reflective ball, and the body of the dual light ball interactive pen is equipped with an inertial sensor, the device comprising:

[0027] A setting module, used for setting a virtual point on the normal vector of the first infrared reflective ball and the second infrared reflective ball at an initial moment, and setting the position of the virtual point to a first coordinate position point;

[0028] A calculation module, used for calculating, when the dual-light ball interactive pen rotates, the second coordinate position point of the virtual point at the current moment according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the previous moment;

[0029] A solution module is used to use the singular value decomposition method to solve the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the current moment based on the coordinate position points of the first infrared reflective ball, the second infrared reflective ball and the second coordinate position points at the current moment, combined with the coordinate position points of the first infrared reflective ball, the second infrared reflective ball and the first coordinate position points at the initial moment.

[0030] In addition, an embodiment of the present invention further provides a computer device, which includes: a memory, a processor, and an application stored in the memory and executable on the processor, and the processor implements the steps of any of the above-mentioned method embodiments when executing the application.

[0031] In addition, an embodiment of the present invention further provides a computer-readable storage medium on which an application is stored. When the application is executed by a processor, the steps of the method in any of the above embodiments are implemented.

[0032] In the embodiment of the present invention, by implementing the above method, the original two-point rigid body is equivalent to a three-point rigid body by setting virtual points, so that the rigid body rotation posture data required for aligning the rotation posture of the inertial sensor to the rigid body rotation posture can be solved. The rotation posture of the two-point rigid body solved by the method of the embodiment of the present invention can be well integrated with the rotation posture of the inertial sensor in principle. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a flow chart of a method for determining a rigid body posture of a dual-light ball interactive pen in an embodiment of the present invention;

[0034] Figure 2 is a state schematic diagram of a dual light ball interactive pen in an embodiment of the present invention;

[0035] Figure 3 is a schematic diagram of state changes of a dual light ball interactive pen in an embodiment of the present invention;

[0036] Figure 4 It is a structural schematic diagram of a rigid body posture determination device of a dual light ball interactive pen in an embodiment of the present invention;

[0037] Figure 5 It is a schematic diagram of the structural composition of a computer device in an embodiment of the present invention. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] The embodiment of the present invention provides a method for determining the rigid body posture of a dual light ball interactive pen. The tip of the dual light ball interactive pen is provided with a first infrared reflective ball, the tail of the dual light ball interactive pen is provided with a second infrared reflective ball, and the body of the dual light ball interactive pen is equipped with an inertial sensor. Figure 1 As shown, the method for determining the rigid body posture of the dual light ball interactive pen includes the following steps:

[0040] S102, at an initial moment, setting a virtual point on the normal vectors of the first infrared reflective ball and the second infrared reflective ball, and setting the position of the virtual point as a first coordinate position point.

[0041] Preferably, at the initial moment, the first coordinate position point of the virtual point is (0, 0, 1).

[0042] Specifically, at the initial moment, Figure 2 As shown, a suitable virtual point, namely the third point C, is added to the suitable normal vector of the double photosphere rigid body, and the two points of the double photosphere itself are denoted as point A and point B to achieve the purpose of a three-point rigid body.

[0043] In one embodiment, before S102, it also includes: at the initial moment, taking the plane in which the first infrared reflective ball and the second infrared reflective ball are located as the xoy plane of the coordinate system, determining the midpoint position of the first infrared reflective ball and the second infrared reflective ball in the xoy plane, setting the z axis at the midpoint position, and the normal vector is on the z axis; obtaining the coordinate system at the initial moment according to the xoy plane and the z axis; with reference to the coordinate system, determining the position of the virtual point at the initial moment to be set as the first coordinate position point; with reference to the coordinate system, determining the rotation posture and position posture of the rigid body of the dual light ball interactive pen at each moment when the dual light ball interactive pen rotates.

[0044] S104, when the dual light ball interactive pen rotates, a second coordinate position point of the virtual point at the current moment is calculated according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual light ball interactive pen at the previous moment.

[0045] In one embodiment, the second coordinate position point of the virtual point at the current moment is calculated based on the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the previous moment, including: obtaining the coordinate vector of the first coordinate position point at the initial moment and multiplying it with the rotation matrix of the rotation posture of the rigid body of the dual-light ball interactive pen at the previous moment to obtain a first vector; accumulating the first vector and the translation vector of the position posture of the rigid body of the dual-light ball interactive pen at the previous moment to obtain a second vector; and determining the second coordinate position point of the virtual point at the current moment according to the second vector.

[0046] Specifically, Figure 3 As shown, each subsequent moment is based on the coordinates P of the third point C at the initial moment C,o , the rotation and translation R of the rigid body at the last moment k-1 and T k-1 , through the formula P Ck =P C,0 *R k-1 +T k-1 Transform to get the approximate coordinate position P of the third point C in the current frame Ck .

[0047] Preferably, the method further comprises: using the coordinate system as a reference, determining a rotation matrix of a rotation posture of a rigid body of the dual-light-ball interactive pen and a translation vector of a position posture at each moment when the dual-light-ball interactive pen rotates.

[0048] Specifically, combined Figure 2 and Figure 3 As shown, the rotational posture and positional posture of the rigid body of the dual light ball interactive pen need to be determined by the coordinate system. The reference coordinate system can be determined by point A, point B and point C, and then the rotational posture and positional posture of the rigid body of the dual light ball interactive pen at each moment can be determined in the coordinate system. Therefore, the posture data of the rigid body required for the IMU rotational posture to be aligned to the rigid body rotational posture can be solved.

[0049] S106, based on the coordinate position points of the first infrared reflective ball, the coordinate position points of the second infrared reflective ball and the second coordinate position points at the current moment, combined with the coordinate position points of the first infrared reflective ball, the coordinate position points of the second infrared reflective ball and the first coordinate position points at the initial moment, the singular value decomposition method is used to solve the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the current moment.

[0050] Specifically, Figure 3 As shown, the position information of the three points A, B, and C in the frame at the current moment and the position information of the three points A, B, and C at the initial moment are combined, and the singular value decomposition method SVD is used to decompose and solve the rotation posture R at the current moment. k and position and posture T k By repeating this cycle, we can solve the approximate stable posture R of the double photosphere rigid body at each moment. m , T m ,like Figure 3 As shown. The rotational posture and position posture at each moment obtained in this way must be stable.

[0051] In one embodiment, the method further includes: at the initial moment, using a singular value decomposition method to obtain a random rotation posture and a random position posture, using the random rotation posture as the initial rotation posture of the dual-light ball interactive pen, and using the random position posture as the initial position posture of the dual-light ball interactive pen.

[0052] In one embodiment, the method further includes: at the initial moment, reading the actual rotation posture and actual position posture of the rigid body of the dual light ball interactive pen, using the actual rotation posture as the initial rotation posture of the dual light ball interactive pen, and using the actual position posture as the initial position posture of the dual light ball interactive pen.

[0053] At the initial moment, the singular value decomposition method SVD is usually used to obtain a random initial rotation posture R0, and then the corresponding position posture T0 is calculated. If the actual desired initial posture is known to be R e0 , T e0 , then a more reasonable approach is to directly initialize the initial rotation posture and position posture to R0 = R e0 、T0=T e0 For example, at the initial moment, the initial rotation posture and position posture of the interactive pen of the dual-photosphere IMU (inertial sensor) can usually be set to E and O, where E is the calibration unit rotation matrix and O represents the translation vector.

[0054] By implementing the above method, the original two-point rigid body is equivalent to a three-point rigid body by setting virtual points, so that the rigid body rotation posture data required to align the rotation posture of the inertial sensor to the rigid body rotation posture can be solved. The rotation posture of the two-point rigid body solved by the method of the embodiment of the present invention can be well integrated with the rotation posture of the inertial sensor in principle. In addition, by implementing the above method, the problem of solving the rigid body posture of the dual light ball interactive pen can be solved and the accuracy of the rigid body posture of the dual light ball interactive pen can be improved.

[0055] In one embodiment, the present invention further provides a rigid body posture determination device for a dual light ball interactive pen, wherein the tip of the dual light ball interactive pen is provided with a first infrared reflective ball, the tail of the dual light ball interactive pen is provided with a second infrared reflective ball, and the body of the dual light ball interactive pen is equipped with an inertial sensor. Figure 4 As shown, the device comprises:

[0056] A setting module 12 is used to set a virtual point on the normal vector of the first infrared reflective ball and the second infrared reflective ball at an initial moment, and set the position of the virtual point to a first coordinate position point;

[0057] The calculation module 14 is used to calculate the second coordinate position point of the virtual point at the current moment according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual light ball interactive pen at the previous moment when the dual light ball interactive pen rotates;

[0058] The solution module 16 is used to use the singular value decomposition method to solve the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the current moment based on the coordinate position points of the first infrared reflective ball, the second infrared reflective ball and the second coordinate position points at the current moment, combined with the coordinate position points of the first infrared reflective ball, the second infrared reflective ball and the first coordinate position points at the initial moment.

[0059] The specific definition of a rigid body posture determination device for a dual light ball interactive pen can be found in the definition of a rigid body posture determination method for a dual light ball interactive pen mentioned above, which will not be repeated here. Each module in the above-mentioned rigid body posture determination device for a dual light ball interactive pen can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0060] An embodiment of the present invention provides a computer-readable storage medium, on which an application is stored. When the program is executed by a processor, a method for determining the rigid body posture of a dual-light ball interactive pen in any of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.

[0061] An embodiment of the present invention further provides a computer application program, which runs on a computer and is used to execute a rigid body posture determination method of a dual-light ball interactive pen according to any one of the above embodiments.

[0062] also, Figure 5 It is a schematic diagram of the structural composition of a computer device in an embodiment of the present invention.

[0063] The embodiment of the present invention also provides a computer device, such as Figure 5 The computer device includes a processor 502, a memory 503, an input unit 504, a display unit 505 and other devices. Those skilled in the art will understand that Figure 5The device structure device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 503 can be used to store the application 501 and various functional modules, and the processor 502 runs the application 501 stored in the memory 503, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memories. The memory disclosed in the present invention is only used as an example and not as a limitation.

[0064] The input unit 504 is used to receive the input of the signal and the keyword input by the user. The input unit 504 may include a touch panel and other input devices. The touch panel can collect the user's touch operation on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a playback control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 505 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 505 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 502 is the control center of the terminal device, which uses various interfaces and lines to connect the various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 503, and calling the data stored in the memory.

[0065] As an embodiment, the computer device includes: one or more processors 502, a memory 503, and one or more applications 501, wherein the one or more applications 501 are stored in the memory 503 and are configured to be executed by the one or more processors 502, and the one or more applications 501 are configured to execute a rigid body posture determination method of a dual-light ball interactive pen in any of the above-mentioned embodiments.

[0066] In addition, the above is a detailed introduction to the rigid body posture determination method, device, computer equipment and storage medium of a dual-light ball interactive pen provided in an embodiment of the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for determining the rigid body posture of a dual-light ball interactive pen, characterized in that: The tip of the double light ball interactive pen is provided with a first infrared reflective ball, the tail of the double light ball interactive pen is provided with a second infrared reflective ball, and the body of the double light ball interactive pen is equipped with an inertial sensor. The method comprises: At the initial moment, a virtual point is set on the normal vector of the first infrared reflective ball and the second infrared reflective ball, and the position of the virtual point is set as the first coordinate position point; a virtual point is added to the normal vector of the double light ball rigid body, that is, the third point C, and the two points of the double light ball itself are recorded as point A and point B, so as to achieve the purpose of a three-point rigid body; at the initial moment, the first coordinate position point of the virtual point is (0, 0, 1); When the dual-light ball interactive pen rotates, the second coordinate position point of the virtual point at the current moment is calculated according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the previous moment; wherein the calculation formula is: P Ck =P C,0 *R k-1 +T k-1 , P C,0 is the first coordinate position point of the virtual point at the initial moment, R k-1 is the rotation posture of the rigid body of the dual light ball interactive pen at the last moment, T k-1 is the position and posture of the rigid body of the dual light ball interactive pen at the previous moment. At each subsequent moment, the second coordinate position point P of the virtual point at the current moment is obtained according to the formula transformation. Ck ; According to the coordinate position point of the first infrared reflective ball, the coordinate position point of the second infrared reflective ball and the second coordinate position point at the current moment, the coordinate position point of the first infrared reflective ball, the coordinate position point of the second infrared reflective ball and the first coordinate position point at the initial moment are combined, and the singular value decomposition method is used to solve the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the current moment; Including: combining the position information of the three points A, B, and C at the current moment with the position information of the three points A, B, and C at the initial moment, using the singular value decomposition method SVD to decompose and solve the rotation posture R at the current moment k and position and posture T k , repeating the cycle, solving the approximate stable posture R of the double photosphere rigid body at each moment m 、T m .

2. The method according to claim 1, characterized in that The method further comprises: At the initial moment, the plane where the first infrared reflective ball and the second infrared reflective ball are located is taken as the xoy plane of the coordinate system. Determine the midpoint position of the first infrared reflective ball and the second infrared reflective ball in the xoy plane, set a z-axis at the midpoint position, and the normal vector is on the z-axis; Obtaining a coordinate system at an initial moment according to the xoy plane and the z axis; Taking the coordinate system as a reference, determining the position of the virtual point at an initial moment and setting it as a first coordinate position point; With the coordinate system as a reference, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at each moment when the dual-light ball interactive pen rotates are determined.

3. The method according to claim 2, characterized in that The step of calculating the second coordinate position point of the virtual point at the current moment according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the previous moment, comprises: Obtaining a coordinate vector of the first coordinate position point at the initial moment and performing a product process with a rotation matrix of the rotation posture of the rigid body of the dual-light ball interactive pen at the previous moment to obtain a first vector; Accumulate the first vector and the translation vector of the position and posture of the rigid body of the dual-light ball interactive pen at the previous moment to obtain a second vector; Determine a second coordinate position point of the virtual point at the current moment according to the second vector.

4. The method according to claim 3, characterized in that The method further comprises: With the coordinate system as a reference, the rotation matrix of the rotation posture of the rigid body of the dual-light ball interactive pen and the translation vector of the position posture at each moment when the dual-light ball interactive pen rotates are determined.

5. The method according to claim 1, characterized in that The method further comprises: At the initial moment, a singular value decomposition method is used to obtain a random rotation posture and a random position posture, and the random rotation posture is used as the initial rotation posture of the dual-light ball interactive pen, and the random position posture is used as the initial position posture of the dual-light ball interactive pen.

6. The method according to claim 1, characterized in that The method further comprises: At the initial moment, the actual rotation posture and actual position posture of the rigid body of the dual light ball interactive pen are read, and the actual rotation posture is used as the initial rotation posture of the dual light ball interactive pen, and the actual position posture is used as the initial position posture of the dual light ball interactive pen.

7. A rigid body posture determination device for a dual light ball interactive pen, characterized in that: The tip of the double light ball interactive pen is provided with a first infrared reflective ball, the tail of the double light ball interactive pen is provided with a second infrared reflective ball, and the body of the double light ball interactive pen is equipped with an inertial sensor. The device comprises: A setting module is used for setting a virtual point on the normal vector of the first infrared reflective ball and the second infrared reflective ball at the initial moment, and setting the position of the virtual point as a first coordinate position point; adding a virtual point, i.e., a third point C, to the normal vector of the double light ball rigid body, and recording the two points of the double light ball itself as point A and point B, so as to achieve the purpose of a three-point rigid body; at the initial moment, the first coordinate position point of the virtual point is (0, 0, 1); A calculation module is used to calculate the second coordinate position point of the virtual point at the current moment according to the first coordinate position point at the initial moment, the rotation posture and position posture of the rigid body of the double light ball interactive pen at the previous moment when the double light ball interactive pen rotates; wherein the calculation formula is: P Ck =P C,0 *R k-1 +T k-1 , P C,0 is the first coordinate position point of the virtual point at the initial moment, R k-1 is the rotation posture of the rigid body of the dual light ball interactive pen at the last moment, T k-1 is the position and posture of the rigid body of the dual light ball interactive pen at the previous moment. At each subsequent moment, the second coordinate position point P of the virtual point at the current moment is obtained according to the formula transformation. Ck ; A solution module, for obtaining the rotation posture and position posture of the rigid body of the dual-light ball interactive pen at the current moment by using a singular value decomposition method according to the coordinate position point of the first infrared reflective ball, the second coordinate position point of the second infrared reflective ball and the second coordinate position point at the current moment, in combination with the coordinate position point of the first infrared reflective ball, the second coordinate position point of the second infrared reflective ball and the first coordinate position point at the initial moment; Including: combining the position information of the three points A, B, and C at the current moment with the position information of the three points A, B, and C at the initial moment, using the singular value decomposition method SVD to decompose and solve the rotation posture R at the current moment k and position and posture T k , repeating the cycle, solving the approximate stable posture R of the double photosphere rigid body at each moment m 、T m .

8. A computer device comprising a memory, a processor, and an application program stored in the memory and executable on the processor, characterized in that: When the processor executes the application, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having an application program stored thereon, characterized in that: When the application is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.