Directional determination method and related equipment
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-08-13
- Publication Date
- 2026-04-17
Smart Images

Figure CN121890110A_ABST
Abstract
Description
Pointing determination method and related equipment
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on September 8, 2023, with application number 202311163707.X and application name “Direction determination method and related equipment”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The embodiments of the present application relate to the field of communications, and in particular to a direction determination method and related equipment. Background Art
[0003] Ultra-Wide Band (UWB) technology is a wireless carrier communication technology that transmits data using nanosecond-scale, narrow, non-sinusoidal pulses rather than sinusoidal carrier waves. Therefore, it occupies a very wide spectrum. UWB technology offers advantages such as low system complexity, low transmitted signal power spectral density, insensitivity to channel fading, low interception capability, and high positioning accuracy. It is particularly suitable for high-speed wireless access in dense multipath environments, such as indoor locations.
[0004] Referring to Figure 1A, Figure 1A is a schematic diagram of a display system provided in an embodiment of the present application; the display system includes a display screen 101 and a remote control 102. The display screen 101 is provided with a UWB antenna assembly (not shown), and the remote control 102 is provided with a UWB antenna (not shown). The remote control 102 exchanges signals with the UWB antenna assembly of the display screen 101 through the UWB antenna, and can calculate the posture and position of the remote control 102 relative to the display screen 101, thereby calculating the specific position of the current pointing display screen and displaying the cursor at the corresponding position. However, in some cases, it is impossible to distinguish whether the remote control 102 is facing the pointing display screen 101 or facing away from the pointing display screen 101, resulting in the cursor being displayed in both cases of facing the pointing display screen 101 and facing away from the pointing display screen 101.
[0005] Summary of the Invention
[0006] The present application provides a pointing determination method and related devices, which can determine whether a remote control device is pointing to a controlled device.
[0007] In a first aspect, a method for determining a direction is provided. This method can be performed by a direction determination device, or by a chip within the direction determination device. The direction determination device can be a remote control device or a controlled device, without limitation. The remote control device is used to control the controlled device.
[0008] The above-mentioned pointing determination method includes: obtaining a first posture parameter of the remote control device. The first posture parameter is used to indicate a first posture change trend of the remote control device relative to the controlled device within a first time period. Obtaining a second posture parameter of the remote control device. The second posture parameter is used to indicate a second posture change trend of the remote control device within the first time period compared to a first moment. The first moment is earlier than the first time period. When the first posture change trend and the second posture change trend are the same or similar, determining that the remote control device is pointing to the controlled device.
[0009] The first posture parameter may be understood as indicating an absolute posture change trend of the remote control device, and the second posture parameter may be understood as indicating a relative posture change trend of the remote control device.
[0010] As can be seen, in this solution, the remote control device's first and second posture parameters are used to determine whether the remote control device is pointing toward the controlled device. If the first and second posture change trends are determined to be identical or similar, the remote control device can be determined to be pointing toward the controlled device. This pointing refers to the remote control device's head facing the controlled device, i.e., the remote control device is pointing directly toward the controlled device.
[0011] In a possible implementation of the first aspect, after determining that the remote control device is pointing toward the controlled device, the pointing determination method further includes: controlling the controlled device to perform the first operation based on a third posture parameter of the remote control device, where the third posture parameter indicates the posture of the remote control device relative to the controlled device at a current moment. The third posture parameter can be understood as indicating the absolute posture of the remote control device at a current moment.
[0012] The first operation may be any operation, such as controlling the controlled device to display a cursor corresponding to the remote control device, muting the controlled device, playing music, turning the controlled device on or off, or displaying a dragged interface on the controlled device. The display position of the cursor is a projection position of the remote control device on the controlled device determined based on the third posture parameter.
[0013] In a possible implementation of the first aspect, the parameters used to characterize the similarity between the first posture change trend and the second posture change trend include at least one of the following: a first parameter used to characterize the magnitude of the correlation between the first posture parameter and the second posture parameter; a second parameter used to characterize the magnitude of the difference fluctuation between the first posture parameter and the second posture parameter; and a maximum value V2 of the difference between the first posture parameter and the second posture parameter.
[0014] The first parameter may be at least one of the following: convolution, linear correlation coefficient, chi-square test value, or sum of products R of the first posture parameter and the second posture parameter. The second parameter may be at least one of the following: variance V1 or standard deviation of the first posture parameter and the second posture parameter.
[0015] For example, the sum of products R is calculated as: R = ∑(dI(i) * dU(i)), where dI(i) = I(i) - I(1), i∈(2,n), and dU(i) = U(i) - U(1), i∈(2,n). Assuming that the attitude parameters of the remote control device are collected at an acquisition frequency p, one frame of data can be obtained for each acquisition. Therefore, 2n frames of data can be obtained, which are the first attitude parameter U(n) and the second attitude parameter I(n), respectively, where n is greater than or equal to two. The specific value of n can be set according to actual conditions.
[0016] Exemplarily, the variance V1 is calculated as: V1 = var(dI(i) - dU(i)), i∈(2, n). var represents the variance.
[0017] For example, the maximum difference value V2 is calculated as: V2=max(dI(i)-dU(i)), i∈(2,n). max indicates finding the maximum value.
[0018] In one possible implementation of the first aspect, the first posture parameter includes at least one of the following: a quaternion, an azimuth angle, or a pitch angle, and the second posture parameter includes a parameter of the same type as the first posture parameter. A quaternion is a combination of a real number and three complex numbers, and is used to represent the posture of the device.
[0019] In a possible implementation of the first aspect, obtaining the first attitude parameter of the remote control device specifically includes obtaining a first direction finding signal received by a direction finding unit of the remote control device within a first time period. The direction finding unit includes at least one of the following: a star flash direction finding unit, an ultra-wideband direction finding unit, a Bluetooth direction finding unit, a wireless fidelity Wi-Fi direction finding unit, a millimeter wave radar direction finding unit, or an ultrasonic direction finding unit. The first direction finding signal is transmitted by a direction finding base station. The first attitude parameter is determined based on the first direction finding signal.
[0020] In this solution, the first posture parameter can be determined based on the first direction-finding signal received by the direction-finding unit of the remote control device in the first time period.
[0021] In a possible implementation of the first aspect, the acquiring the first posture parameter of the remote control device specifically includes: receiving the first posture parameter sent by the controlled device.
[0022] In this solution, the first attitude parameter of the remote control device can also be directly obtained through the controlled device, wherein the controlled device obtains the first attitude parameter based on the first direction-finding signal.
[0023] In a possible implementation of the first aspect, the acquiring the second attitude parameter of the remote control device specifically includes: acquiring the second attitude parameter through an inertial direction finding unit of the remote control device.
[0024] In a second aspect, the present application provides a pointing determination device, the pointing determination device comprising an acquisition module and a determination module, wherein:
[0025] The acquisition module is configured to acquire a first posture parameter of the remote control device, wherein the first posture parameter is used to indicate a first posture change trend of the remote control device relative to the controlled device within a first time period.
[0026] The acquisition module is further configured to acquire a second posture parameter of the remote control device. The second posture parameter is configured to indicate a change trend of the second posture of the remote control device within a first time period compared to a first moment. The first moment is earlier than the first time period.
[0027] The determination module is configured to determine that the remote control device is pointing to the controlled device when the first posture change trend and the second posture change trend are the same or similar.
[0028] In this solution, the pointing determination device uses the first posture parameter and the second posture parameter of the remote control device to determine whether the remote control device is pointing to the controlled device. When it is determined that the first posture change trend and the second posture change trend are the same or similar, it can be determined that the remote control device is pointing to the controlled device.
[0029] In a possible implementation of the second aspect, the orientation determination device further includes a control module.
[0030] The control module is configured to control the controlled device to perform a first operation based on a third posture parameter of the remote control device after determining that the remote control device is pointing to the controlled device. The third posture parameter is used to indicate the posture of the remote control device relative to the controlled device at a current moment.
[0031] In a possible implementation of the second aspect, the parameters used to characterize the similarity between the first posture change trend and the second posture change trend include at least one of the following: a first parameter used to characterize the magnitude of the correlation between the first posture parameter and the second posture parameter; a second parameter used to characterize the magnitude of the difference fluctuation between the first posture parameter and the second posture parameter; and the maximum value of the difference between the first posture parameter and the second posture parameter.
[0032] In a possible implementation of the second aspect, the first posture parameter includes at least one of the following: a quaternion, an azimuth angle, or a pitch angle, and the second posture parameter includes a parameter of the same type as the first posture parameter.
[0033] In one possible implementation of the second aspect, the acquisition module, in acquiring the first attitude parameter of the remote control device, is specifically configured to: acquire a first direction-finding signal received by a direction-finding unit of the remote control device within a first time period. The direction-finding unit includes at least one of the following: a star flash direction-finding unit, an ultra-wideband direction-finding unit, a Bluetooth direction-finding unit, a wireless fidelity (Wi-Fi) direction-finding unit, a millimeter-wave radar direction-finding unit, or an ultrasonic direction-finding unit. The first direction-finding signal is transmitted by a direction-finding base station. The first attitude parameter is determined based on the first direction-finding signal.
[0034] In a possible implementation of the second aspect, the acquisition module, in acquiring the first posture parameter of the remote control device, is specifically configured to: receive the first posture parameter sent by the controlled device.
[0035] In a possible implementation of the second aspect, the acquisition module is specifically configured to acquire the second posture parameter of the remote control device by using an inertial direction finding unit of the remote control device.
[0036] In a third aspect, the present application also provides a pointing determination device, comprising a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program code, and the processor is used to call the program code to execute the pointing determination method as described in the first aspect.
[0037] In a fourth aspect, the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the pointing determination method as described in the first aspect.
[0038] In a fifth aspect, the present application further provides a computer program product comprising instructions, which, when run on a computer, enables the computer to execute the pointing determination method described in the first aspect.
[0039] In a sixth aspect, the present application further provides a chip, comprising a processor and a data interface, wherein the processor reads instructions stored in a memory through the data interface and executes the direction determination method described in the first aspect.
[0040] Optionally, as an implementation method, the chip may further include a memory, in which instructions are stored, and the processor is used to execute the instructions stored in the memory. When the instructions are executed, the processor is used to execute the pointing determination method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The following is an introduction to the drawings used in the embodiments of this application.
[0042] FIG1A is a schematic diagram of a display system provided in an embodiment of the present application;
[0043] FIG1B is a schematic diagram of a remote control provided in an embodiment of the present application;
[0044] FIG2 is a schematic diagram of a communication system provided in an embodiment of the present application;
[0045] FIG3 is a flow chart of a method for determining a direction provided by an embodiment of the present application;
[0046] FIG4A is a schematic diagram of a first posture parameter and a second posture parameter provided in an embodiment of the present application;
[0047] FIG4B is a schematic diagram of another first posture parameter and a second posture parameter provided in an embodiment of the present application;
[0048] FIG4C is a schematic diagram of a cursor display provided by an embodiment of the present application;
[0049] FIG4D is a schematic diagram of a remote control device provided in an embodiment of the present application;
[0050] FIG4E is a schematic diagram of a direction-finding base station coordinate system provided in an embodiment of the present application;
[0051] FIG4F is a schematic diagram of a remote control device coordinate system provided in an embodiment of the present application;
[0052] FIG4G is a schematic diagram of a direction finding unit provided in an embodiment of the present application;
[0053] FIG4H is a schematic diagram of another direction-finding unit provided in an embodiment of the present application;
[0054] FIG4I is a schematic diagram of another direction finding unit provided in an embodiment of the present application;
[0055] FIG4J is a schematic diagram of another direction finding unit provided in an embodiment of the present application;
[0056] FIG4K is a waveform diagram of an azimuth angle provided in an embodiment of the present application;
[0057] FIG4L is a schematic diagram of a determination control device provided in an embodiment of the present application;
[0058] FIG5 is a schematic structural diagram of a direction determination device provided in an embodiment of the present application;
[0059] FIG6 is a schematic structural diagram of another direction determination device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] The technical solution in this application will be described below with reference to the accompanying drawings.
[0061] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0062] The "at least one" mentioned in the embodiments of this application refers to one or more, and "plurality" refers to two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, (a and b), (a and c), (b and c), or (a and b and c), where a, b, c can be single or multiple. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can be represented by: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the related objects before and after are in an "or" relationship. The serial numbers of the steps in the embodiments of this application (such as step S1, step S21, etc.) are only for distinguishing different steps and do not limit the order of execution between the steps.
[0063] Furthermore, unless otherwise specified, ordinal numbers such as "first" and "second" in the embodiments of this application are used to distinguish multiple objects and are not used to limit the order, timing, priority, or importance of multiple objects. For example, the first device and the second device are only for ease of description and do not indicate differences in structure, importance, etc. between the first and second devices. In some embodiments, the first device and the second device can also be the same device.
[0064] In the above embodiments, the term "when" can be interpreted to mean "if...", "after...", "in response to determining...", or "in response to detecting...", depending on the context. The above are merely optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the concepts and principles of the present application shall be included in the scope of protection of the present application.
[0065] Referring to the display system shown in FIG1A , in some cases, it is impossible to distinguish whether the remote control 102 is facing the display screen 101 or facing away from the display screen 101, resulting in the cursor being displayed both when facing the display screen 101 and when facing away from the display screen 101. For example, referring to FIG1B , FIG1B is a schematic diagram of a remote control provided in an embodiment of the present application; the UWB antenna 103 of the remote control 102 has no longitudinal degree of freedom, i.e., the two UWB antennas are arranged horizontally, resulting in the remote control 102 being unable to distinguish whether the UWB signal is coming from the front or the back. Thus, when the remote control 102 is facing the display screen 101, the remote control 102 can receive the UWB signal A incident from the front and thus display the cursor. However, when the remote control 102 is facing away from the display screen 101, the remote control 102 can also receive the UWB signal B incident from the back and thus display the cursor, resulting in the cursor being displayed incorrectly.
[0066] Therefore, an embodiment of the present application provides a pointing determination method, which can determine whether the remote control device is pointing at the controlled device. The above-mentioned pointing means that the head of the remote control device is facing the controlled device, that is, the remote control device is facing the controlled device. The pointing determination method of the embodiment of the present application can be used to distinguish whether the remote control device is facing the controlled device or facing away from the controlled device.
[0067] Referring to Figure 2, Figure 2 is a schematic diagram of a communication system provided in an embodiment of the present application. The direction determination method in the embodiment of the present application can be applied to the communication system 200. The communication system 200 includes a remote control device 201 and a controlled device 202. The remote control device 201 is used to control the controlled device 202. The remote control device 201 and the controlled device 202 can perform wireless transmission, for example: the wireless transmission includes Bluetooth, infrared, mobile network, wireless local area network (WLAN), NearLink, ultra-wideband UWB, wireless fidelity (WiFi), millimeter wave radar or ultrasonic transmission.
[0068] Exemplarily, the remote control device 201 includes a device with a remote control function, such as a remote controller, a vehicle key, a mobile phone, or a watch.
[0069] Exemplarily, the controlled devices 202 include vehicles, computers, drones, televisions, display screens, projectors, speakers, sweeping robots, home appliances such as lamps or air conditioners, and remote-controlled toys.
[0070] The pointing determination method of the embodiments of the present application can be executed by a pointing determination device, or by a chip within the pointing determination device. The pointing determination device can be a remote control device, a controlled device, or other device, without limitation. The following description uses the pointing determination method of the embodiments of the present application as an example.
[0071] Referring to FIG. 3 , FIG. 3 is a flowchart of a direction determination method provided in an embodiment of the present application. The direction determination method 300 includes the following steps:
[0072] 301. The pointing determination device obtains a first posture parameter of the remote control device.
[0073] Specifically, the first posture parameter is used to indicate a first posture change trend of the remote control device relative to the controlled device within a first time period. The first posture parameter can be understood as indicating an absolute posture change trend of the remote control device. Furthermore, the first posture parameter is composed of multiple absolute posture parameters within the first time period.
[0074] 302. The pointing determination device obtains a second posture parameter of the remote control device.
[0075] Specifically, the second posture parameter is used to indicate a change trend of the second posture of the remote control device in the first time period compared to the first moment. The second posture parameter can be understood as indicating a change trend of the relative posture of the remote control device. Further, the second posture parameter is composed of multiple relative postures in the first time period.
[0076] The first moment is earlier than the first time period. For example, the first moment may be the moment when the remote control device is initialized or other moments earlier than the first time period.
[0077] 303. When the first posture change trend and the second posture change trend are the same or similar, the pointing determination device determines that the remote control device is pointing to the controlled device.
[0078] In the pointing determination method of the present embodiment, the remote control device's first and second posture parameters are used to determine whether the remote control device is pointing toward the controlled device. If the first and second posture change trends are determined to be identical or similar, the remote control device can be determined to be pointing toward the controlled device. In other words, the pointing determination device can distinguish the pointing direction of the remote control device, including pointing directly toward the controlled device and pointing away from the controlled device.
[0079] For example, the first posture change trend and the second posture change trend being the same can be understood as the similarity between the posture change trend indicated by the first posture parameter and the posture change trend indicated by the second posture parameter reaching 100% within the first time period. The first posture change trend and the second posture change trend being similar can be understood as the similarity between the posture change trend indicated by the first posture parameter and the posture change trend indicated by the second posture parameter exceeding a first threshold value within the first time period. The specific value of the first threshold value can be set according to actual conditions and is not particularly limited. For example, referring to FIG4A , FIG4A is a schematic diagram of a first posture parameter and a second posture parameter provided in an embodiment of the present application, wherein the first posture parameter and the second posture parameter are respectively represented as a broken line graph, and a curve 401 corresponding to the first posture parameter and a curve 402 corresponding to the second posture parameter can be obtained. It can be seen that the change trends of curves 401 and 402 in FIG4A are similar. In addition, referring to FIG4B , FIG4B is a schematic diagram of another first posture parameter and a second posture parameter provided in an embodiment of the present application; the change trends of curves 401 and 402 in FIG4B are neither the same nor similar.
[0080] In one possible implementation, referring to FIG3 , after the direction determination device determines that the remote control device is pointing to the controlled device, the direction determination method 300 further includes the following steps:
[0081] 304. The pointing determination device controls the controlled device to perform a first operation based on the third posture parameter of the remote control device.
[0082] Specifically, the third posture parameter is used to indicate the posture of the remote control device relative to the controlled device at the current moment. The third posture parameter can be understood as indicating the absolute posture of the remote control device at the current moment.
[0083] Among them, the above-mentioned first operation can be any operation, for example, controlling the controlled device to display the cursor corresponding to the remote control device, controlling the controlled device to mute, controlling the controlled device to play music, controlling the controlled device to turn on or off, or controlling the controlled device to display the dragged interface, etc.
[0084] The display position of the cursor is the projection position of the remote control device on the controlled device, determined based on the third posture parameter. Specifically, exemplarily, when the direction-finding base station is set on the controlled device, the third posture parameter of the remote control device is equivalent to a vector. This vector is projected onto the controlled device (the size and resolution of the display screen of the controlled device are known), and the projection position of the remote control device on the controlled device can be determined through projection conversion. As another example, when the direction-finding base station is not set on the controlled device, it is necessary to obtain the position of the controlled device. Based on this position and the third posture parameter of the remote control device, the projection position of the remote control device on the controlled device can be determined. To achieve the effect of displaying the cursor only when the remote control device is pointing at the controlled device, refer to Figure 4C, which is a cursor display schematic provided in an embodiment of the present application; wherein, the controlled device 406 is taken as an example of a display screen. When the remote control device is in a first posture 403, the remote control device is facing the controlled device 406, and the cursor is displayed on the controlled device 406. When the remote control device is in a second posture 404, the remote control device is facing away from the controlled device 406, and the cursor is not displayed on the controlled device 406. When the remote control device is in the third posture 405 , the remote control device is not pointing to the controlled device 406 (the direction of the remote control device deviates from the controlled device 406 ), and the controlled device 406 does not display a cursor.
[0085] Exemplarily, when the remote control device points to the controlled device, the remote control device operates in the pointing mode, and the cursor is displayed only when the remote control device points to the controlled device. For the effect of the pointing mode, refer to FIG. 4C .
[0086] For example, when the remote control device is not pointing at the controlled device, the remote control device operates in the air mouse mode. In the air mouse mode, the remote control device has no pointing effect, and the cursor is displayed no matter which direction it points to, so there is no need to distinguish between positive and negative directions.
[0087] Exemplarily, when the third posture parameter satisfies the preset condition, the pointing determination device controls the controlled device to perform the first operation. The first operation, for example, controls the controlled device to mute, controls the controlled device to play music, controls the controlled device to turn on or off, or controls the controlled device to display a dragged interface. Exemplarily, the preset condition is that the third posture parameter falls within the first range, and the first range can be set according to actual conditions. For example, when the third posture parameter is the absolute azimuth angle, the preset condition is that the absolute azimuth angle falls within the azimuth angle range. For another example, when the third posture parameter is the absolute azimuth angle and the absolute pitch angle, the preset condition is that the absolute azimuth angle falls within the azimuth angle range, and the absolute pitch angle falls within the pitch angle range. For details, please refer to the relevant records in Figure 4L below.
[0088] In a possible implementation, the first posture parameter includes at least one of the following: a quaternion, an azimuth angle, or a pitch angle, and the second posture parameter includes a parameter of the same type as the first posture parameter.
[0089] Among them, quaternion is composed of a real number and three complex numbers, which are used to represent the posture of the device. Specifically, quaternion is a simple hypercomplex number. Complex number is composed of real number plus imaginary unit i, where i 2 =-1. Similarly, quaternions are composed of real numbers plus three imaginary units i, j and k, and they have the following relationship: i 2 =j 2 =k 2 =-1,i 0 =j 0 =k 0 = 1. Each quaternion is a linear combination of 1, i, j, and k. Quaternions can generally be expressed as a+bi+cj+dk, where a, b, c, and d are real numbers. The geometric meanings of i, j, and k can be understood as rotations. An i rotation represents a rotation from the positive Z axis to the positive Y axis in the plane where the Z and Y axes intersect. A j rotation represents a rotation from the positive X axis to the positive Z axis in the plane where the X and Z axes intersect. A k rotation represents a rotation from the positive Y axis to the positive X axis in the plane where the Y and X axes intersect. -i, -j, and -k represent the opposite rotations of i, j, and k, respectively.
[0090] Exemplarily, when the first posture parameter is a quaternion, the second posture parameter is a quaternion. In this case, the first posture parameter is an absolute quaternion, and the second posture parameter is a relative quaternion.
[0091] For example, when the first attitude parameter is an azimuth angle, the second attitude parameter is an azimuth angle. In this case, the first attitude parameter is an absolute azimuth angle, and the second attitude parameter is a relative azimuth angle.
[0092] Exemplarily, when the first attitude parameter is the pitch angle, the second attitude parameter is the pitch angle. In this case, the first attitude parameter is the absolute pitch angle, and the second attitude parameter is the relative pitch angle.
[0093] Exemplarily, when the first posture parameter is a quaternion and an azimuth, the second posture parameter is a quaternion and an azimuth. In this case, the first posture parameter is an absolute quaternion and an absolute azimuth, and the second posture parameter is a relative quaternion and a relative azimuth.
[0094] Exemplarily, when the first attitude parameter is a quaternion and a pitch angle, the second attitude parameter is a quaternion and a pitch angle. In this case, the first attitude parameter is an absolute quaternion and an absolute pitch angle, and the second attitude parameter is a relative quaternion and a relative pitch angle.
[0095] Exemplarily, when the first attitude parameter is the azimuth and pitch angle, the second attitude parameter is the azimuth and pitch angle. In this case, the first attitude parameter is the absolute azimuth and absolute pitch angle, and the second attitude parameter is the relative azimuth and relative pitch angle.
[0096] For example, when the first attitude parameter is a quaternion, an azimuth, and a pitch angle, the second attitude parameter is a quaternion, an azimuth, and a pitch angle. In this case, the first attitude parameter is an absolute quaternion, an absolute azimuth, and an absolute pitch angle, and the second attitude parameter is a relative quaternion, a relative azimuth, and a relative pitch angle.
[0097] For example, the absolute azimuth angle refers to the horizontal angle of the remote control device relative to the controlled device. The relative azimuth angle refers to the change in the horizontal angle of the remote control device during a first time period compared to a first moment. The absolute pitch angle refers to the vertical angle of the remote control device relative to the controlled device. The relative pitch angle refers to the change in the vertical angle of the remote control device during a first time period compared to a first moment.
[0098] In one possible implementation, step 301 specifically includes:
[0099] 311. The direction determination device obtains a first direction finding signal received by a direction finding unit of the remote control device within a first time period.
[0100] For example, referring to FIG4D , FIG4D is a schematic diagram of a remote control device provided in an embodiment of the present application. Remote control device 407 includes a direction-finding unit 408. Direction-finding unit 408 includes at least one of the following: a star flash direction-finding unit, an ultra-wideband (UWB) direction-finding unit, a Bluetooth direction-finding unit, a wireless fidelity (WiFi) direction-finding unit, a millimeter-wave radar direction-finding unit, or an ultrasonic direction-finding unit. The first direction-finding signal is transmitted by the controlled device. Remote control device 407 receives the first direction-finding signal transmitted by the direction-finding base station through direction-finding unit 408. Accordingly, when direction-finding unit 408 is a UWB direction-finding unit, the direction-finding base station is a UWB base station, and the first direction-finding signal is a UWB signal; when direction-finding unit 408 is a Bluetooth direction-finding unit, the direction-finding base station is a Bluetooth base station, and the first direction-finding signal is a Bluetooth signal, and so on.
[0101] The direction finding base station may be arranged on a fixed object such as a wall or a partition, or the direction finding base station may be arranged on other intelligent devices, for example, the direction finding base station may be arranged on a controlled device.
[0102] 312. The direction determination device determines a first posture parameter based on the first direction finding signal.
[0103] In the embodiment of the present application, the direction determination device may determine the first posture parameter based on the first direction finding signal received by the direction finding unit 408 within the first time period.
[0104] The following explains the definitions of azimuth and elevation angles:
[0105] First, establish a direction-finding base station coordinate system. Referring to Figure 4E, Figure 4E is a schematic diagram of a direction-finding base station coordinate system provided in an embodiment of the present application; illustratively, the direction-finding base station 410 adopts a three-antenna structure, and Figure 4E shows two feasible three-antenna distributions, one is an L-shaped antenna structure, and the other is a triangular antenna structure. When installing the direction-finding base station, the arrow 411 in Figure 4E needs to be perpendicular to the horizontal plane and pointed upward for installation. For example, the direction-finding base station 410 can be installed on a wall or partition, etc., or can be integrated on other smart devices (such as controlled devices), such as the top of a large screen, etc.
[0106] After the direction-finding base station 410 is installed, the direction-finding base station coordinate system (abbreviated as e-system) can be established. The e-system uses the center of antenna 0 (antenna 0 in FIG. 4E ) in the direction-finding base station 410 as the coordinate system center O. The X-axis X e Parallel to the bottom edge of the base station and pointing to the left, e is the Y axis Y e Pointing to the direction of the front of the base station, e is the Z axis Z e Perpendicular to X e OY e Flat and upward, with X e Axis and Y e The axis satisfies the right-hand rule.
[0107] Next, a remote control device coordinate system is established. Referring to FIG4F, FIG4F is a schematic diagram of a remote control device coordinate system provided by an embodiment of the present application; the origin of the remote control device coordinate system (abbreviated as p system) is located at the center O of the remote control device 412, and the X-axis X of the p system is p Along the horizontal axis of the remote control device 412, p is the Y axis Y p Along the longitudinal axis of the remote control device 412, p is the Z axis Z p X perpendicular to the p system p OY p The plane faces outward and the coordinate axes of the remote control device conform to the right-hand rule.
[0108] Therefore, the attitude angle is determined by the rotation relationship between the p system and the e system, which is determined by the azimuth angle (also called heading angle) ψ, the pitch angle And the roll angle θ are composed of three Euler angles. Among them, for example, the pitch angle is Y in the p system p Axis and X in the e-system e OY e The angle between the two planes is positive when the remote control device is tilted upward. p Axis X in e-system e OY e Projection on the surface and Y e The angle between the axes is positive when the head of the remote control device is yawed to the right. The roll angle θ is the Z p Axis and contains Yp The angle between the plumb planes of the axes is positive when the remote control device tilts to the right.
[0109] Exemplarily, when direction-finding unit 408 is a UWB direction-finding unit, the UWB direction-finding unit includes at least two UWB antennas. Referring to FIG4G , FIG4G is a schematic diagram of a direction-finding unit provided in an embodiment of the present application; the UWB direction-finding unit includes a first UWB antenna 481, a second UWB antenna 482, and a third UWB antenna 483. In this embodiment of the present application, the first attitude parameters are the azimuth and elevation angles. First UWB antenna 481 and second UWB antenna 482 are horizontal UWB antennas. The azimuth of remote control device 407 can be determined based on the first direction-finding signals received by first UWB antenna 481 and second UWB antenna 482. First UWB antenna 481 and third UWB antenna 483 are vertical UWB antennas, with third UWB antenna 483 positioned directly below first UWB antenna 481. The elevation angle of the remote control device 407 can be determined based on the first direction-finding signal received by the first UWB antenna 481 and the third UWB antenna 483. For example, referring to FIG4H , FIG4H is a schematic diagram of another direction-finding unit provided in an embodiment of the present application; wherein the first UWB antenna 481 and the third UWB antenna 483 are vertical UWB antennas, except that the third UWB antenna 483 is disposed to the lower left of the first UWB antenna 481.
[0110] For example, referring to FIG4I , FIG4I is a schematic diagram of another direction-finding unit provided in an embodiment of the present application. In this embodiment, the first attitude parameter is the pitch angle, and the direction-finding unit includes a first UWB antenna 481 and a third UWB antenna 483, which are vertically oriented UWB antennas. The third UWB antenna 483 is disposed directly below the first UWB antenna 481. The pitch angle of the remote control device 407 can be determined based on the first direction-finding signals received by the first UWB antenna 481 and the third UWB antenna 483.
[0111] For example, referring to Figure 4J , which is a schematic diagram of another direction-finding unit provided in an embodiment of the present application, in this embodiment, the first attitude parameter is an azimuth angle, and the direction-finding unit includes a first UWB antenna 481 and a second UWB antenna 482, which are horizontal UWB antennas. The azimuth angle of remote control device 407 can be determined based on the first direction-finding signal received by first UWB antenna 481 and second UWB antenna 482.
[0112] In one possible implementation, step 301 specifically includes:
[0113] 313. The pointing determination device receives a first posture parameter sent by the controlled device.
[0114] In an embodiment of the present application, the pointing determination device may also directly obtain the first attitude parameter of the remote control device through the controlled device, wherein the controlled device obtains the first attitude parameter based on the first direction finding signal. In this embodiment, the pointing determination device may be a remote control device.
[0115] Exemplarily, the controlled device obtains a first direction-finding signal received by a direction-finding unit of the remote control device, determines a first attitude parameter based on the first direction-finding signal, and then sends the first attitude parameter to the direction determination device.
[0116] In one possible implementation, step 302 specifically includes:
[0117] The pointing determination device obtains the second attitude parameter through an inertial measurement unit (IMU) of the remote control device.
[0118] Specifically, referring to FIG4D , the remote control device includes an inertial direction finding unit 409 , and the inertial direction finding unit 409 can directly obtain the second attitude parameter. The pointing determination device obtains the second attitude parameter through the inertial direction finding unit 409 .
[0119] In one possible implementation, the parameter used to characterize the similarity between the first posture change trend and the second posture change trend includes at least one of the following:
[0120] A first parameter for characterizing the magnitude of the correlation between the first posture parameter and the second posture parameter;
[0121] A second parameter for characterizing a fluctuation magnitude of a difference between the first posture parameter and the second posture parameter;
[0122] The maximum value V2 of the difference between the first posture parameter and the second posture parameter.
[0123] Specifically, when the parameter representing the similarity is a first parameter, and the first parameter is greater than a second threshold, it can be considered that the similarity between the first posture change trend and the second posture change trend is greater than the first threshold. When the parameter representing the similarity is a second parameter, and the second parameter is less than a third threshold, it can be considered that the similarity is greater than the first threshold. When the parameter representing the similarity is a maximum difference, and the maximum difference is less than a fourth threshold, it can be considered that the similarity is greater than the first threshold. The second threshold, the third threshold, and the fourth threshold can be the same or different, and are set according to actual conditions.
[0124] Exemplarily, the first parameter may be at least one of the following: a convolution of the first posture parameter and the second posture parameter, a linear correlation coefficient, a chi-square test value, or a sum of products R.
[0125] The linear correlation coefficient, also known as the Pearson correlation coefficient, measures the degree of linear correlation between two variables. For example, the linear correlation coefficient is calculated using the product-difference method, which also uses the deviations of the two variables from their respective means as the basis. The correlation between the two variables is then multiplied to reflect the degree of correlation.
[0126] The chi-square test is the degree of deviation between the actual observation value and the theoretical inference value of the statistical sample. The degree of deviation between the actual observation value and the theoretical inference value determines the size of the chi-square test value. If the chi-square test value is larger, the degree of deviation between the actual observation value and the theoretical inference value is greater; conversely, the deviation between the two is smaller; if the two values are completely equal, the chi-square test value is 0, indicating that the theoretical value is completely consistent.
[0127] For example, the second parameter may be at least one of the following: a variance V1 or a standard deviation of the first posture parameter and the second posture parameter. Variance in statistics refers to the average of the squared differences between each sample value and the mean of all sample values. The standard deviation is the square root of the variance.
[0128] In the embodiment of the present application, it is assumed that the attitude parameters of the remote control device are collected at an acquisition frequency p. Each acquisition can obtain one frame of data. Therefore, 2n frames of data can be obtained, which are the first attitude parameter U(n) and the second attitude parameter I(n). n is greater than or equal to two, and the specific value of n can be set according to the actual situation. The first attitude parameter U(n) includes the absolute attitude parameters of n remote control devices (such as azimuth, pitch angle, quaternion, etc.), and the second attitude parameter I(n) includes the relative attitude parameters of n remote control devices (such as azimuth, pitch angle, quaternion, etc.). The specific value of p can be set according to the actual situation.
[0129] For example, one way to calculate the sum of the products R is: R = ∑(dI(i) * dU(i)), where dI(i) = I(i) - I(1), i∈(2,n). That is, the first data is subtracted from each data in the first posture parameter except the first data, and n-1 dIs can be obtained. dU(i) = U(i) - U(1), i∈(2,n). Similarly, the first data is subtracted from each data in the second posture parameter except the first data, and n-1 dUs can be obtained.
[0130] For example, one way to calculate the variance V1 is: V1 = var(dI(i) - dU(i)), i∈(2, n). var represents the variance.
[0131] For example, a calculation method of the maximum difference value V2 is: V2=max(dI(i)-dU(i)), i∈(2,n). max indicates finding the maximum value.
[0132] The following describes the pointing determination method of an embodiment of the present application by taking the pointing determination device as a remote control device, the direction finding unit as a UWB direction finding unit, and the first attitude parameter and the second attitude parameter as azimuth as an example. The pointing determination method includes the following steps:
[0133] S1. Initialize and power on the UWB direction finding unit and the inertial direction finding unit of the remote control device. The UWB direction finding unit starts measuring the direction of the UWB signal, and the inertial direction finding unit starts updating the second azimuth of the remote control device.
[0134] Specifically, after the UWB direction-finding unit is initialized, the remote control device uses the first direction-finding signal received by the UWB direction-finding unit to calculate the current first azimuth. The first direction-finding signal is sent by the controlled device. After the inertial direction-finding unit is initialized, the roll angle and pitch angle are initialized using the direction of gravity, and the azimuth is initialized to 0°. After initialization, the inertial direction-finding unit begins to obtain the second azimuth of the remote control device at each moment. The remote control device obtains its measured second azimuth from the inertial direction-finding unit, and the remote control device records the first azimuth and the second azimuth at each moment after initialization. Referring to Figure 4K, Figure 4K is a waveform diagram of an azimuth provided in an embodiment of the present application; wherein, the first azimuth corresponds to the first curve 413, and the second azimuth corresponds to the second curve 414.
[0135] The UWB direction finding unit and the inertial direction finding unit work based on the acquisition frequency p.
[0136] S2. After collecting n frames of first azimuth angles and second azimuth angles, start to make a judgment.
[0137] Specifically, assuming that the azimuth angle of the remote control device is collected at a collection frequency p, a frame of first azimuth angle and second azimuth angle can be obtained in each collection.
[0138] After collecting n frames of first and second azimuth angles, a determination can be initiated. If the initial determination does not confirm the pointing result, k frames of data can be collected as shown in Figure 4K. Combined with the existing (nk) frames of data, the n frames of data can be reassembled to continue the determination. The (nk) frames of data are the later ones in the original n frames of data.
[0139] S3. Determine whether the remote control device is pointing to the controlled device using the first azimuth angle and the second azimuth angle.
[0140] Specifically, the collected first azimuth angle and second azimuth angle are represented by I(n) and U(n) respectively. First, the data is subjected to a difference operation, that is, the first data is subtracted from the remaining data, that is, dI(i) = I(i) - I(1), i∈(2,n); similarly, dU(i) = U(i) - U(1), i∈(2,n).
[0141] Assuming n is 4, the first azimuth angles are I(1), I(2), I(3), I(4), and the second azimuth angles are U(1), U(2), U(3), U(4). Their serial numbers correspond to the acquisition time, with the smaller serial number being the earlier one. Therefore,
[0142] dI(2)=I(2)-I(1);
[0143] dI(3)=I(3)-I(1);
[0144] dI(4)=I(4)-I(1).
[0145] And dU(2)=U(2)-U(1);
[0146] dU(3)=U(3)-U(1);
[0147] dU(4)=U(4)-U(1).
[0148] Then calculate the sum of products R, variance V1, and maximum difference V2. Here, R = (dI(2) - dU(2)) + (dI(3) - dU(3)) + (dI(4) - dU(4)). V1 = var(dI(2) - dU(2), dI(3) - dU(3), (dI(4) - dU(4)). V2 = max(dI(2) - dU(2), dI(3) - dU(3), (dI(4) - dU(4)).
[0149] S4. When the above R, V1 and V2 all meet the conditions, it is determined that the remote control device is pointing to the controlled device, which satisfies the direct pointing condition, thereby entering the pointing mode; otherwise, it is considered that the remote control device is not pointing directly.
[0150] The following describes the process of determining the specific controlled device when there are two devices in the pointing line, using the example of a single direction-finding base station.
[0151] Referring to FIG4L , FIG4L is a schematic diagram of determining a control device according to an embodiment of the present application; taking the controlled device, remote control device, and direction-finding base station as an example, the controlled device, remote control device, and direction-finding base station are set up in a house. The direction-finding base station 415 is set up separately; the remote control device 417 is located on the line connecting the first controlled device 416 and the second controlled device 418. It is known that the current position of the remote control device 417 in the house coordinate system is [x h ,y h ,z h ], the azimuth of the remote control device 417 is ψ h , the pitch angle is When the current azimuth and target azimuth of the remote control device 417 and the current pitch angle and target pitch angle of the remote control device 417 simultaneously meet certain conditions, it can be determined that the controlled device that the remote control device 417 wants to control is the first controlled device 416 .
[0152] Specifically, the coordinates of the position of the first controlled device 416 in the house coordinate system are: The current position of the remote control device 417 is calculated according to the following formulas:
[0153] The azimuth and elevation angles (i.e., target azimuth and target elevation angles) of the remote control device 417 when pointing to the first controlled device 416 are:
[0154] Among them, atan() is the inverse tangent function and sign() is the sign function.
[0155] The azimuth angle ψ at this time can be determined by using the method of the embodiment of the present application h , pitch angle Is it the angle when the remote control device 417 points to the first controlled device 416, or the angle when the remote control device 417 faces away from the first controlled device 416. h , pitch angle is the angle when the remote control device 417 points to the first controlled device 416, calculate the current azimuth angle ψ of the remote control device 417 h , pitch angle and target azimuth Target pitch angle The difference:
[0156] when and When certain conditions are met at the same time, it is determined that the remote control device 417 is pointing to the first controlled device 416, that is, the remote control device 417 is to control the first controlled device 416, not the second controlled device 418. The above-mentioned certain conditions can be Less than the fifth threshold and The specific values of the fifth and sixth thresholds can be set according to actual conditions. Less than the fifth threshold can be understood as the current azimuth angle falls within the azimuth angle range, and Being smaller than the sixth threshold value may be understood as the current pitch angle falling within the pitch angle range.
[0157] The step numbers in the above text are only used to distinguish different steps and do not limit the order in which the steps are executed.
[0158] It should be noted that in the various embodiments of the present application, unless otherwise specified or there is a logical conflict, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0159] The above describes in detail the method of the embodiment of the present application. The following describes the device provided by the embodiment of the present application.
[0160] Figure 5 is a schematic diagram of the structure of a possible apparatus provided in an embodiment of the present application. The pointing determination device shown in Figure 5 can be used to implement the functions of the pointing determination method embodiment described above, thereby also achieving the beneficial effects of the pointing determination method embodiment described above. In the embodiments of the present application, the pointing determination device can be an electronic device or a module (such as a chip) used in an electronic device.
[0161] As shown in Figure 5 , a pointing determination device 500 includes an acquisition module 501 and a determination module 502. Pointing determination device 500 is configured to implement the functions of the pointing determination method embodiment shown in Figure 3 . Alternatively, pointing determination device 500 may include a module configured to implement any of the functions or operations in the pointing determination method embodiment shown in Figure 3 . This module may be implemented in whole or in part via software, hardware, firmware, or any combination thereof.
[0162] When the pointing determination device 500 is used to implement the functions in the method embodiment shown in Figure 3, the acquisition module 501 is used to obtain a first posture parameter of the remote control device. The first posture parameter is used to indicate a first posture change trend of the remote control device relative to the controlled device within a first time period. The acquisition module 501 is also used to obtain a second posture parameter of the remote control device. The second posture parameter is used to indicate a second posture change trend of the remote control device relative to the first moment within the first time period. The first moment is earlier than the first time period. The determination module 502 is used to determine that the remote control device is pointing to the controlled device when the first posture change trend and the second posture change trend are the same or similar.
[0163] In an embodiment of the present application, the pointing determination device 500 uses the first posture parameter and the second posture parameter of the remote control device to determine whether the remote control device is pointing to the controlled device. When it is determined that the first posture change trend and the second posture change trend are the same or similar, it can be determined that the remote control device is pointing to the controlled device.
[0164] In a possible implementation, the orientation determination device 500 further includes a control module 503 .
[0165] The control module 503 is configured to control the controlled device to perform a first operation based on a third posture parameter of the remote control device after determining that the remote control device is pointing to the controlled device. The third posture parameter is used to indicate the posture of the remote control device relative to the controlled device at the current moment.
[0166] Among them, the above-mentioned first operation can be any operation, for example, controlling the controlled device to display the cursor corresponding to the remote control device, controlling the controlled device to mute, controlling the controlled device to play music, controlling the controlled device to turn on or off, or controlling the controlled device to display the dragged interface, etc.
[0167] In one possible implementation, the parameter used to characterize the similarity between the first posture change trend and the second posture change trend includes at least one of the following:
[0168] A first parameter for characterizing the magnitude of the correlation between the first posture parameter and the second posture parameter;
[0169] A second parameter for characterizing a fluctuation magnitude of a difference between the first posture parameter and the second posture parameter;
[0170] The maximum value of the difference between the first posture parameter and the second posture parameter.
[0171] Exemplarily, the first parameter may be at least one of the following: a convolution of the first posture parameter and the second posture parameter, a linear correlation coefficient, a chi-square test value, or a sum of products R.
[0172] Exemplarily, the second parameter may be at least one of the following: a variance V1 or a standard deviation of the first posture parameter and the second posture parameter.
[0173] In a possible implementation, the first posture parameter includes at least one of the following: a quaternion, an azimuth angle, or a pitch angle, and the second posture parameter includes a parameter of the same type as the first posture parameter.
[0174] In one possible implementation, the acquisition module 501 is specifically configured to:
[0175] Obtaining a first direction-finding signal received by a direction-finding unit of the remote control device within a first time period. The direction-finding unit includes at least one of the following: a star flash direction-finding unit, an ultra-wideband direction-finding unit, a Bluetooth direction-finding unit, a Wi-Fi direction-finding unit, a millimeter-wave radar direction-finding unit, or an ultrasonic direction-finding unit. The first direction-finding signal is transmitted by a direction-finding base station.
[0176] A first attitude parameter is determined based on the first direction-finding signal.
[0177] In a possible implementation manner, the acquisition module 501 is specifically configured to: receive the first posture parameter sent by the controlled device in acquiring the first posture parameter of the remote control device.
[0178] In a possible implementation manner, the acquisition module 501 is specifically configured to acquire the second attitude parameter of the remote control device by using an inertial direction finding unit of the remote control device.
[0179] For the introduction of the above modules, please refer to the description of the above embodiments, which will not be repeated here.
[0180] Referring to Figure 6, Figure 6 is a schematic diagram of the structure of another pointing determination device provided in an embodiment of the present application. The present application also provides a pointing determination device, wherein the pointing determination device 600 includes a memory 601, a processor 602, a communication interface 604, and a bus 603. The memory 601, processor 602, and communication interface 604 are communicatively connected to each other via the bus 603.
[0181] Optionally, the above-mentioned pointing determination device 600 also includes a display (not shown), which is communicatively connected to the memory 601, the processor 602, and the communication interface 604 via the bus 603. The display is used to output images. Optionally, the above-mentioned pointing determination device also includes an output module (not shown), which is communicatively connected to the memory 601, the processor 602, and the communication interface 604 via the bus 603, and the output module is used to output audio. The output module can be a speaker. For example, after the pointing determination device 600 determines that the remote control device is pointing to the controlled device, audio output can be performed through the output module.
[0182] The memory 601 may be a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 601 may store programs. When the program stored in the memory 601 is executed by the processor 602, the processor 602 and the communication interface 604 are used to perform the various steps of the direction determination method of any embodiment of the present application.
[0183] The processor 602 can adopt a general central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the pointing determination device shown in Figure 5 in the embodiment of the present application, or to execute the pointing determination method of any embodiment of the present application.
[0184] The processor 602 may also be an integrated circuit chip with signal processing capabilities. During implementation, the various steps of the direction determination method of any embodiment of the present application may be completed by hardware integrated logic circuits or software instructions in the processor 602. The aforementioned processor 602 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the direction determination method of any embodiment of the present application may be directly implemented and executed by a hardware processor, or by a combination of hardware and software modules in the processor. The software module may be located in a storage medium well-known in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or the like. The storage medium is located in the memory 601, and the processor 602 reads the information in the memory 601 and combines its hardware to complete the functions required to be performed by the units included in the pointing determination device shown in Figure 5 in the embodiment of the present application, or executes the pointing determination method of any embodiment of the present application.
[0185] The communication interface 604 uses a transceiver such as, but not limited to, a transceiver to implement communication between the orientation determination device 600 and other devices or a communication network. For example, the first posture parameter or the second posture parameter can be obtained through the communication interface 604.
[0186] The bus 603 may include a path for transmitting information between various components of the direction determination device 600 (eg, the memory 601 , the processor 602 , and the communication interface 604 ).
[0187] It should be noted that although the pointing determination device 600 shown in FIG6 only shows a memory 601, a processor 602, a bus 603, and a communication interface 604, during specific implementation, those skilled in the art will understand that the pointing determination device 600 also includes other components necessary for normal operation. Furthermore, those skilled in the art will understand that, depending on specific needs, the pointing determination device 600 may also include hardware components that implement other additional functions. Furthermore, those skilled in the art will understand that the pointing determination device 600 may only include the components necessary to implement the embodiments of the present application, and does not necessarily include all of the components shown in FIG6.
[0188] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0189] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0190] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0191] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a read-only memory (ROM), a random access memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a tape, a magnetic disk, or an optical medium, such as a digital versatile disc (DVD), or a semiconductor medium, such as a solid state drive (SSD).
[0192] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for determining a direction, characterized in that: include: Acquire a first posture parameter of the remote control device, where the first posture parameter is used to indicate a first posture change trend of the remote control device relative to the controlled device within a first time period; Acquire a second posture parameter of the remote control device, where the second posture parameter is used to indicate a second posture change trend of the remote control device in the first time period compared to a first moment, where the first moment is earlier than the first time period; When the first posture change trend is the same as or similar to the second posture change trend, it is determined that the remote control device is pointing to the controlled device.
2. The method according to claim 1, characterized in that After determining that the remote control device is pointing to the controlled device, the method further includes: Based on a third posture parameter of the remote control device, the controlled device is controlled to perform a first operation, wherein the third posture parameter is used to indicate a posture of the remote control device relative to the controlled device at a current moment.
3. The method according to claim 1 or 2, characterized in that: The parameter used to characterize the similarity between the first posture change trend and the second posture change trend includes at least one of the following: A first parameter for characterizing the magnitude of the correlation between the first posture parameter and the second posture parameter; A second parameter for characterizing a fluctuation magnitude of a difference between the first posture parameter and the second posture parameter; The maximum value of the difference between the first posture parameter and the second posture parameter.
4. The method according to any one of claims 1 to 3, characterized in that: The first posture parameter includes at least one of the following: a quaternion, an azimuth angle, or a pitch angle, and the second posture parameter includes a parameter of the same type as the first posture parameter.
5. The method according to any one of claims 1 to 4, characterized in that: The step of obtaining a first posture parameter of the remote control device includes: Acquire a first direction finding signal received by a direction finding unit of the remote control device within the first time period, wherein the direction finding unit includes at least one of the following: a star flash direction finding unit, an ultra-wideband direction finding unit, a Bluetooth direction finding unit, a wireless fidelity WiFi direction finding unit, a millimeter wave radar direction finding unit, or an ultrasonic direction finding unit; the first direction finding signal is transmitted by a direction finding base station; The first attitude parameter is determined based on the first direction finding signal.
6. The method according to any one of claims 1 to 4, characterized in that: The step of obtaining a first posture parameter of the remote control device includes: Receive the first posture parameter sent by the controlled device.
7. The method according to any one of claims 1 to 6, characterized in that: The obtaining of a second posture parameter of the remote control device includes: The second posture parameter is obtained by an inertial direction finding unit of the remote control device.
8. A pointing determination device, characterized in that: The device comprises: An acquisition module, used for acquiring a first posture parameter of the remote control device, where the first posture parameter is used for indicating a first posture change trend of the remote control device relative to the controlled device within a first time period; The acquisition module is further used to acquire a second posture parameter of the remote control device, where the second posture parameter is used to indicate a second posture change trend of the remote control device in the first time period compared to a first moment, where the first moment is earlier than the first time period; A determination module is used to determine that the remote control device is pointing to the controlled device when the first posture change trend is the same or similar to the second posture change trend.
9. The device according to claim 8, characterized in that The device also includes: The control module is used to control the controlled device to perform a first operation based on a third posture parameter of the remote control device after determining that the remote control device is pointing to the controlled device, wherein the third posture parameter is used to indicate the posture of the remote control device relative to the controlled device at a current moment.
10. The device according to claim 8 or 9, characterized in that The parameter used to characterize the similarity between the first posture change trend and the second posture change trend includes at least one of the following: A first parameter for characterizing the magnitude of the correlation between the first posture parameter and the second posture parameter; A second parameter for characterizing a fluctuation magnitude of a difference between the first posture parameter and the second posture parameter; The maximum value of the difference between the first posture parameter and the second posture parameter.
11. The device according to any one of claims 8 to 10, characterized in that The first posture parameter includes at least one of the following: a quaternion, an azimuth angle, or a pitch angle, and the second posture parameter includes a parameter of the same type as the first posture parameter.
12. The device according to any one of claims 8 to 11, characterized in that In terms of acquiring the first posture parameter of the remote control device, the acquisition module is specifically used to: Acquire a first direction finding signal received by a direction finding unit of the remote control device within the first time period, wherein the direction finding unit includes at least one of the following: a star flash direction finding unit, an ultra-wideband direction finding unit, a Bluetooth direction finding unit, a wireless fidelity WiFi direction finding unit, a millimeter wave radar direction finding unit, or an ultrasonic direction finding unit; the first direction finding signal is transmitted by the direction finding base station; The first attitude parameter is determined based on the first direction finding signal.
13. The device according to any one of claims 8 to 11, characterized in that In terms of acquiring the first posture parameter of the remote control device, the acquisition module is specifically used to: Receive the first posture parameter sent by the controlled device.
14. The device according to any one of claims 8 to 13, characterized in that In terms of acquiring the second posture parameter of the remote control device, the acquisition module is specifically used to: The second posture parameter is obtained by an inertial direction finding unit of the remote control device.
15. A pointing determination device, characterized in that: It comprises a processor and a memory, wherein the processor and the memory are connected, wherein the memory is used to store program code, and the processor is used to call the program code to execute the pointing determination method according to any one of claims 1 to 7.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the pointing determination method according to any one of claims 1 to 7.