Estimation device, device, method and program
The estimation device improves the accuracy of position and orientation estimation by using magnetic sensors and reference information to compensate for hysteresis, ensuring precise angle determination in movable components.
Patent Information
- Application Number
- JP2023053885
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
Hysteresis in magnetic field measurements by magnetic sensors leads to a decrease in accuracy when estimating the position of a magnet with respect to the sensor.
An estimation device that uses a combination of magnetic sensors and reference information to accurately determine the position and orientation of a movable portion relative to a fixed portion by analyzing multiple measured values and selecting the most appropriate reference information based on the degree of agreement with measured data.
Enhances the accuracy of estimating the position and orientation of movable components by compensating for hysteresis effects in magnetic field measurements, ensuring precise angle determination even with changes in motion direction.
Smart Images

Figure 2024141971000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an estimation device, an estimation method, and a program. [Background technology]
[0002] Patent Document 1 describes an "opening / closing terminal capable of detecting the angle of a hinge section using a magnetic sensor based on the distance between a magnet and the magnetic sensor, which varies depending on the angle of the hinge section." [Prior art document] [Patent documents] [Patent Document 1] U.S. Patent No. 9,823,093 Summary of the Invention [Problem to be solved by the invention]
[0003] It is desirable to suppress a decrease in accuracy in estimating the position of a magnet relative to a magnetic sensor based on the magnetic field measured by the magnetic sensor when hysteresis is present in the magnetic field measured by the magnetic sensor. [Means for solving the problem]
[0004] In a first aspect of the present invention, there is provided an estimation device for estimating at least one of a position and an orientation of the second part relative to the first part in an apparatus including a first part, a second part, a movable mechanism that enables a first operation for changing the second part from a first position or a first orientation to a second position or a second orientation relative to the first part, and a second operation for changing the second part from the second position or the second orientation to the first position or the first orientation relative to the first part, at least one magnetic sensor provided on one of the first part and the second part, and a magnet unit provided on the other of the first part and the second part for providing a magnetic field measured by the at least one magnetic sensor. The estimation device includes an estimation unit that estimates the position or orientation of the second part relative to the first part at the first time point based on a combination of at least two measured values of at least one directional component measured by the at least one magnetic sensor at a first time point and reference information indicating the at least two measured values of the at least one directional component measured by the at least one magnetic sensor according to the position or orientation of the second part relative to the first part. The reference information includes first reference information indicating at least two measurement values of at least one directional component measured by the at least one magnetic sensor according to a position or orientation of the second part relative to the first part during the first operation, and second reference information indicating at least two measurement values of the at least one directional component measured by the at least one magnetic sensor according to a position or orientation of the second part relative to the first part during the second operation. The estimation device further includes a selection unit that selects one of the first reference information and the second reference information that has a higher degree of match with a combination of the at least two measurement values of the at least one directional component measured by the at least one magnetic sensor according to a degree of match between the first reference information and each of the second reference information, as the reference information used by the estimation unit for the estimation.
[0005] In any of the estimation devices, the movable mechanism may enable an inversion operation for returning the second part to the first position or the first orientation while changing the second part from the first position or the first orientation to the second position or the second orientation relative to the first part. The reference information may further include third reference information indicating at least two measured values of the at least one directional component measured by the at least one magnetic sensor according to the position or orientation of the second part relative to the first part during the inversion operation. The selection unit may select one of the first reference information, the second reference information, and the third reference information as the reference information used by the estimation unit to estimate the position or orientation of the second part relative to the first part based on a combination of the at least two measured values of the at least one directional component measured by the at least one magnetic sensor and a degree of agreement between each of the first reference information, the second reference information, and the third reference information.
[0006] In any of the estimation devices, the selection unit may select one of the first reference information, the second reference information, and the third reference information that has the highest degree of match with a combination of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor, based on the degree of match between the combination and each of the first reference information, the second reference information, and the third reference information.
[0007] In any of the estimation devices, the first reference information may indicate a combination of a measurement value of a first direction component and a measurement value of a second direction component measured by the at least one magnetic sensor in response to a position or attitude of the second part relative to the first part during the first motion. The second reference information may indicate a measurement value of a first direction component and a measurement value of a second direction component measured by the at least one magnetic sensor in response to a position or attitude of the second part relative to the first part during the second motion, and may indicate a combination of a measurement value of a first direction component and a measurement value of a second direction component measured by the at least one magnetic sensor in response to a position or attitude of the second part relative to the first part during the second motion, and a measurement value of a first direction component and a measurement value of a second direction component measured by the at least one magnetic sensor in response to a position or attitude of the second part relative to the first part during the second motion.
[0008] In any of the estimation devices, the first reference information may indicate a combination of a measurement value of a component in the first direction, a measurement value of a component in the second direction, and a measurement value of a component in a third direction measured by the at least one magnetic sensor in accordance with a position or orientation of the second part relative to the first part during the first motion. The second reference information may indicate a combination of a measurement value of a component in the first direction, a measurement value of a component in the second direction, and a measurement value of a component in the third direction measured by the at least one magnetic sensor in accordance with a position or orientation of the second part relative to the first part during the second motion. The selection unit may select one of the first reference information and the second reference information that has a higher degree of match with the combination of the measurement value of the component in the first direction, the measurement value of the component in the second direction, and the measurement value of the component in the third direction measured by the at least one magnetic sensor in accordance with a degree of match between the first reference information and each of the second reference information.
[0009] In any of the estimation devices, the selection unit may select one of the first reference information and the second reference information that has a higher degree of match with each of a plurality of combinations of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor, in accordance with the degree of match between each of the plurality of combinations and the first reference information and each of the second reference information.
[0010] In any of the estimation devices, the reference information may be represented by a graphic represented by a set of coordinate values corresponding to a position or attitude of the second part relative to the first part, which is represented by a combination of the measurement value of the first direction component measured by the at least one magnetic sensor and the measurement value of the second direction component measured by the at least one magnetic sensor, or a combination of the measurement value of the first direction component measured by the first magnetic sensor and the measurement value of the first direction component measured by the second magnetic sensor, on a coordinate system having a first axis representing a measurement value of a first direction component measured by the at least one magnetic sensor and a second axis representing a measurement value of the first direction component measured by a second magnetic sensor among the at least one magnetic sensors. The graphic may include a first line corresponding to the first reference information and a second line corresponding to the second reference information. The selection unit may select one of the first reference information and the second reference information having a shorter distance from the coordinate value according to a distance between each of the first line and the second line and a coordinate value on the coordinate system corresponding to the combination of measurement values of a first direction component and a second direction component measured by the at least one magnetic sensor, or a combination of measurement values of the first direction component measured by the first magnetic sensor and measurement values of the first direction component measured by the second magnetic sensor.
[0011] In any of the estimation devices, the reference information may be represented by a graphic represented by a set of coordinate values corresponding to a position or attitude of the second part relative to the first part, which is represented by a combination of the measurement value of the first direction component measured by the at least one magnetic sensor and the measurement value of the second direction component measured by the at least one magnetic sensor, or a combination of the measurement value of the first direction component measured by the first magnetic sensor and the measurement value of the first direction component measured by the second magnetic sensor, on a coordinate system having a first axis representing the measurement value of the first direction component measured by the at least one magnetic sensor and a second axis representing the measurement value of the first direction component measured by the second magnetic sensor among the at least one magnetic sensors. The graphic may include a first line corresponding to the first reference information, a second line corresponding to the second reference information, and a third line corresponding to the third reference information. The estimation device may further include a detection unit configured to detect a reversal operation of returning the second part to the first position or the first orientation while changing the second part from the first position or the first orientation to the second position or the second orientation with respect to the first part. When the detection unit detects the reversal operation, the selection unit may select one of the first reference information, the second reference information, and the third reference information based on distances between the first line, the second line, and the third line and a coordinate value on the coordinate system corresponding to the combination of a measurement value of a first direction component and a measurement value of a second direction component measured by the at least one magnetic sensor, or the combination of a measurement value of the first direction component measured by the first magnetic sensor and a measurement value of the first direction component measured by the second magnetic sensor.
[0012] In any of the estimation devices, the selection unit selects one of the first reference information, the second reference information, and the third reference information whose coordinate value distance is shortest based on the distance between each of the first line, the second line, and the third line and coordinate values on the coordinate system corresponding to the combination of measurement values of a first direction component and a second direction component measured by the at least one magnetic sensor, or the combination of measurement values of the first direction component measured by the first magnetic sensor and measurement values of the first direction component measured by the second magnetic sensor.
[0013] In a second aspect of the present invention, there is provided an apparatus comprising any one of the estimation devices, the first part, the second part, and the movable mechanism.
[0014] In a third aspect of the present invention, there is provided an estimation method for estimating at least one of a position and an orientation of the second part relative to the first part in an apparatus including a first part, a second part, a movable mechanism that enables a first operation for changing the second part from a first position or a first orientation to a second position or a second orientation relative to the first part, and a second operation for changing the second part from the second position or the second orientation to the first position or the first orientation relative to the first part, at least one magnetic sensor provided on one of the first part and the second part, and a magnet unit provided on the other of the first part and the second part for providing a magnetic field measured by the at least one magnetic sensor, the estimation method comprising the steps of estimating the position or orientation of the second part relative to the first part at the first time point based on a combination of at least two measured values of at least one directional component measured by the at least one magnetic sensor at a first time point and reference information indicating the at least two measured values of the at least one directional component measured by the at least one magnetic sensor according to the position or orientation of the second part relative to the first part. The reference information includes first reference information indicating at least two measured values of at least one directional component measured by the at least one magnetic sensor in response to a position or orientation of the second part relative to the first part during the first operation, and second reference information indicating at least two measured values of the at least one directional component measured by the at least one magnetic sensor in response to a position or orientation of the second part relative to the first part during the second operation. The estimation method further includes a step of selecting one of the first reference information and the second reference information having a higher degree of match with a combination of the at least two measured values of the at least one directional component measured by the at least one magnetic sensor according to a degree of match between the first reference information and each of the second reference information, as the reference information to be used for estimating the position or orientation of the second part relative to the first part in the estimating step.
[0015] In a fourth aspect of the present invention, there is provided a program for causing a computer to function as an estimation device that estimates at least one of the position and orientation of the second part relative to the first part in an apparatus comprising: a first part; a second part; a movable mechanism that enables a first operation of changing the second part from a first position or first orientation to a second position or second orientation relative to the first part and a second operation of changing the second part from the second position or second orientation to the first position or first orientation relative to the first part; at least one magnetic sensor provided on one of the first part and the second part; and a magnet section provided on the other of the first part and the second part and providing a magnetic field measured by the at least one magnetic sensor. The program causes the computer to execute a step of estimating a position or orientation of the second part relative to the first part at the first time point based on a combination of at least two measured values of at least one directional component measured by the at least one magnetic sensor at a first time point and reference information indicative of the at least two measured values of the at least one directional component measured by the at least one magnetic sensor depending on a position or orientation of the second part relative to the first part, the reference information including first reference information indicative of the at least two measured values of the at least one directional component measured by the at least one magnetic sensor depending on a position or orientation of the second part relative to the first part during the first movement, and second reference information indicative of the at least two measured values of the at least one directional component measured by the at least one magnetic sensor depending on a position or orientation of the second part relative to the first part during the second movement. The program further causes the computer to execute a step of selecting, in accordance with the degree of match between a combination of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor and each of the first reference information and the second reference information, one of the first reference information and the second reference information which has a higher degree of match with the combination, as the reference information to be used for estimating the position or orientation of the second part relative to the first part in the estimation step.
[0016] The above summary of the invention does not list all of the features of the present invention. Also, subcombinations of these features may also be inventions. [Brief description of the drawings]
[0017] [Figure 1A] 1 is an example of an external perspective view of an apparatus 10A. [Figure 1B] 1 is an example of an external perspective view of the device 10A in a closed state. [Figure 1C] 1 is an example of an external perspective view of the device 10A in an open state. [Diagram 2] 1 is a schematic example of a top view of the device 10A. [Diagram 3] FIG. 2 illustrates an example of the configuration of an estimation device 100A. [Figure 4A] 13 is a diagram showing an example of magnetic flux density detected by the magnetic sensor 30 according to an angle θ between the first portion 11 and the second portion 12. FIG. [Figure 4B] 4B is a graph showing the X and Y components of the magnetic field shown in FIG. 4A. [Figure 5A] 13 is a diagram showing another example of the magnetic flux density as a function of the angle θ between the first portion 11 and the second portion 12 detected by the magnetic sensor 30. FIG. [Figure 5B] 5B. Curves 82b and 84b are enlarged or reduced and translated versions of the curves drawn by the X and Y components of the magnetic field shown in FIG. 5A, and are shown side by side with curves 82a and 84a shown in FIG. 4B. [Figure 6] 11 is a diagram showing an example of a change in a hysteresis curve when the magnet section 20 and the magnetic sensor 30 are affected by magnetization due to an external magnetic field. [Figure 7] 4A to 4C are diagrams illustrating an example of first reference information and second reference information. [Figure 8] 1 shows an example of a flow diagram of a method for estimating an angle θ of a second portion 12 relative to a first portion 11. FIG. [Figure 9]13 is a diagram showing an example of measured values when opening and closing of the device 10A are reversed in a state where the angle θ between the first portion 11 and the second portion 12 does not reach 0 degrees or 180 degrees. FIG. [Figure 10] 4A to 4C are diagrams illustrating examples of first reference information, second reference information, and third reference information. [Figure 11A] FIG. 13 is a diagram showing an example of a top view of the appearance of the device 10B. [Figure 11B] FIG. 13 is a diagram showing another example of a top view of the appearance of the device 10B. [Figure 12] FIG. 2 is a diagram showing an example of functional blocks in a device 10B according to the present embodiment. [Figure 13] 1 illustrates an example of a hardware configuration for implementing aspects of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] The present invention will be described below through embodiments of the invention, but the following embodiments do not limit the scope of the invention according to the claims. Furthermore, not all of the combinations of features described in the embodiments are necessarily essential to the solution of the invention.
[0019] FIG. 1A is an example of an external perspective view of a device 10A. The device 10A is a foldable terminal, such as a smartphone, a mobile phone, a tablet, a notebook computer, or a small personal computer. In the figure, the device 10A is a so-called foldable smartphone. The device 10A includes a first portion 11, a second portion 12, a display 14, and a hinge mechanism 16.
[0020] The display 14 is a foldable display, for example, an organic light-emitting diode (OLED) display.
[0021] The first part 11 and the second part 12 are part of the housing of the device 10A. The first part 11 and the second part 12 may be integrally configured. The hinge mechanism 16 foldably connects the first part 11 and the second part 12. The hinge mechanism 16 may be part of the first part 11 or the second part 12. As an example, in the device 10A of this embodiment, the hinge mechanism 16 is part of the second part 12.
[0022] In this embodiment, a right-handed (positive) Cartesian coordinate system is set and described. The Z axis of the Cartesian coordinate system is taken in the direction of the rotation axis 18 of the hinge mechanism 16. For example, the Y axis is taken in the direction in which the first part 11 extends from the hinge mechanism 16 in the closed state of the foldable smartphone shown in FIG. 1B. In this case, the first part 11 rotates so that the angle θ of the angle with respect to the second part 12 varies from 0 degrees to 180 degrees. However, the way in which the Y axis is taken and which of the first part 11 and the second part 12 rotates are merely examples and are not limited thereto. If the angle θ between the first part 11 and the second part 12 is variable, the second part 12 may rotate with respect to the first part 11.
[0023] Thus, in this embodiment, the first portion 11 changes its attitude relative to the second portion 12 by rotating via the hinge mechanism 16. The hinge mechanism 16 used in the mobile terminal may be a hinge mechanism that can maintain the angle θ of the second portion 12 relative to the first portion 11 at a desired angle between 0 degrees and 180 degrees, and may be a so-called torque hinge. The hinge mechanism 16 is an example of a "movable mechanism" that changes the attitude of the second portion 12 relative to the first portion 11.
[0024] 1B is an example of an external perspective view of the device 10A in a closed state. The foldable smartphone being in a "closed state" refers to a state in which the angle θ between the first part 11 and the second part 12 is 0 degrees, as shown in the figure, and refers to a state in which the first part 11 is closed relative to the second part 12.
[0025] Here, in this embodiment, device 10A being in a "closed state" means that second portion 12 is in a "first position" relative to first portion 11. However, the way in which "first position" is defined in this embodiment is merely an example, and a different position of second portion 12 relative to first portion 11 may be defined as the "first position".
[0026] 1C is an example of an external perspective view of device 10A in an open state. Device 10A being in an "open state" refers to a state in which first portion 11 and second portion 12 form an angle θ of 180 degrees as shown in the figure, and first portion 11 is not folded relative to second portion 12.
[0027] Here, in this embodiment, device 10A being in the "open state" means that second portion 12 is in a "second position" relative to first portion 11. However, the way in which "second position" is defined in this embodiment is merely an example, and a different position of second portion 12 relative to first portion 11 may be defined as the "second position."
[0028] In this way, hinge mechanism 16 of the present embodiment enables an operation to change device 10A from a "closed state" to an "open state", i.e., from a "first position" to a "second position" (an example of a "first operation"). Hinge mechanism 16 also enables an operation to change device 10A from an "open state" to a "closed state", i.e., from a "second position" to a "first position" (an example of a "second operation").
[0029] 2 is a schematic example of a top view of the device 10A in an open state. The device 10A includes a magnet unit 20, a magnetic sensor 30, and an estimation device 100A. As described in detail below, the device 10A of the present embodiment can accurately estimate the angle θ between the first portion 11 and the second portion 12 by using the magnet unit 20 and the magnetic sensor 30.
[0030] The magnet section 20 includes a magnet that generates a magnetic field that varies depending on the angle between the first portion 11 and the second portion 12. As a result, the magnet section 20 provides a magnetic field that is measured by the magnetic sensor 30. The magnet section 20 of this embodiment is provided in the hinge mechanism 16 that constitutes a part of the second portion of the first portion 11 and the second portion 12, and the magnetic sensor 30 is provided in the first portion 11 that does not constitute the hinge mechanism 16 of the first portion 11 and the second portion 12.
[0031] However, the magnet unit 20 may be provided at a position where the magnetic flux density according to the angle can be detected based on the relative position with respect to the magnetic sensor 30, and the magnet unit 20 may be provided in one of the first portion 11 and the second portion 12, and the magnetic sensor 30 may be provided in the other of the first portion 11 and the second portion 12. Therefore, in an example in which the magnet unit 20 is provided in the first portion 11, the magnetic sensor 30 may be provided in the second portion 12.
[0032] The magnetic sensor 30 detects a magnetic field (or magnetic flux density. Since magnetic flux density is obtained by multiplying a magnetic field by magnetic permeability, hereinafter it may be simply referred to as a magnetic field, including the meaning of magnetic flux density) at a certain point in time according to the angle between the first portion 11 and the second portion 12. The magnetic sensor 30 outputs a voltage or current according to the measured value of the magnetic flux density at the time of measurement. For example, the magnetic sensor 30 is a Hall element. The time at which the magnetic flux density is measured by the magnetic sensor 30 is an example of a "first point in time."
[0033] At least one magnetic sensor 30 is provided in the device 10A. In the present embodiment, the description will be given on the assumption that the number of magnetic sensors 30 is one. In particular, the following description will be given of an example in which one magnetic sensor 30 measures magnetic flux densities in a plurality of different directions. However, the number of magnetic sensors 30 provided in the device 10A may be two or more as desired.
[0034] The estimation device 100A estimates the angle θ based on the measured value of the magnetic flux density detected by the magnetic sensor 30. Note that the estimation of the angle θ is an example of estimation of the attitude that changes due to the rotational motion of the second part 12 relative to the first part 11 through the hinge mechanism 16.
[0035] The device 10A executes a predetermined operation based on the angle estimated by the estimation device 100A. The device 10A may display different images on the display portion of the first part 11 and the display portion of the second part 12 based on the angle estimated by the estimation device 100A. For example, when the angle estimated by the estimation device 100A is within a predetermined angle range such as 90 degrees to 120 degrees, the device 10A may display an operation function such as a keyboard on the display portion of the second part 12, and display a display function that displays an image, such as a document or a video, according to the content operated by the operation function on the display portion of the first part 11. The internal configuration and functions of the estimation device 100A will be further described below with reference to FIG. 3.
[0036] 3 is a diagram showing an example of a configuration of the estimation device 100A. The estimation device 100A includes a control unit 110, a storage unit 120, and a communication interface 130. The estimation device 100A may be configured by a computer including a CPU and a memory. The CPU may function as the control unit 110, and the memory may function as the storage unit 120.
[0037] The control unit 110 estimates the angle θ corresponding to the measured value based on the magnetic flux density measured by the magnetic sensor 30 received from the communication interface 130 and the reference information stored in the memory unit 120, and controls the device 10A to function based on the estimated angle.
[0038] The storage unit 120 stores reference information that associates a combination of measured values of each component of the magnetic flux density detected by the magnetic sensor 30 with an angle between the first portion 11 and the second portion 12. As an example, the reference information is a diagram of a hysteresis curve drawn when at least two components of the X-axis component, the Y-axis component, and the Z-axis component of the magnetic flux density (hereinafter, sometimes referred to as the X-component, the Y-component, and the Z-component, respectively) are used as coordinate axes.
[0039] The communication interface 130 receives the measured value of the magnetic flux density measured by the magnetic sensor 30. The communication interface 130 communicates with the magnetic sensor 30 via a signal line.
[0040] Control unit 110 estimates angle θ of second portion 12 relative to first portion 11 based on the X, Y, and Z components of the magnetic flux density and the reference information, and controls the operation of device 10A. Below, the principle by which control unit 110 estimates angle θ will be described with reference to Figs. 4A to 7, and then the internal configuration and functions of control unit 110 will be described.
[0041] 4A is a diagram showing an example of magnetic flux density according to the angle θ between the first portion 11 and the second portion 12 detected by the magnetic sensor 30. In the diagram, the X component, Y component, and Z component of the magnetic flux density in the XYZ coordinate system are shown when the device 10A is transitioned from the closed state to the open state and then from the open state to the closed state again (i.e., when the device 10A is made to make a round trip from the closed state to the open state and back to the closed state). In this specification, the following graphs are intended to illustrate and explain the components of each magnetic flux density with respect to the angle, or the relationship between the components of each magnetic flux density and the shapes of figures showing the relationship. Therefore, each component of the magnetic flux density in each graph is shown as a value in arbitrary unit (au).
[0042] When device 10A is transitioned from the closed state to the open state and then from the open state to the closed state again, the state transition operation switches at a position where angle θ of second portion 12 with respect to first portion 11 is 180 degrees.
[0043] Furthermore, the angle θ of the second portion 12 relative to the first portion 11 in the closed state when starting the operation and the angle θ of the second portion 12 relative to the first portion 11 in the closed state when ending the operation are both equal at θ=0 degrees. Therefore, the magnetic field of each component measured by the magnetic sensor 30 at the start of the operation and the magnetic field of each component measured by the magnetic sensor 30 at the end of the operation are approximately the same. Therefore, in the figure, the X component, Y component, and Z component of the magnetic flux density draw an approximately closed curve.
[0044] However, the curve drawn by the X component of the magnetic flux density when it transitions from the closed state to the open state and the curve drawn by the X component of the magnetic flux density when it transitions from the open state to the closed state trace different trajectories and reach the ends of the curves due to the influence of magnetic hysteresis, etc. For example, the influence of magnetic hysteresis appears in each of the X component, Y component, and Z component of the magnetic flux density, but the way in which the influence of magnetic hysteresis appears in each component appears with different magnitudes based on the relative positions of the magnet unit 20 and the magnetic sensor 30. Note that, during the opening and closing operation of the device 10A, the positional relationship between the magnet unit 20 and the magnetic sensor 30 in the device 10A may change slightly depending on the degree of force applied to the hinge. This influence may also appear as hysteresis in the magnetic flux density measured by the magnetic sensor 30.
[0045] Figure 4B is a graph showing the X and Y components of the magnetic field shown in Figure 4A. When the X and Y components of the magnetic flux density are illustrated, a hysteresis loop of a nearly closed curve can be drawn with the angle θ as a parameter that does not appear directly in the figure.
[0046] In the figure, particularly during a first operation in which the device 10A transitions from a closed state to an open state, a curve obtained by connecting the X and Y components of the measurement value of the magnetic sensor 30 is shown as a curve 82a. On the other hand, during a second operation in which the device 10A subsequently transitions from an open state to a closed state, a curve obtained by connecting the X and Y components of the measurement value of the magnetic sensor 30 is shown as a curve 84a. Due to the effect of magnetic hysteresis, these curves 82a and 84a take different trajectories and reach approximately the same coordinate at their ends.
[0047] To plot such a hysteresis curve, components of magnetic flux density in two different axial directions of the XYZ coordinate system are selected. In the case where the Z axis is taken to be substantially parallel to the rotation axis 18 of the second portion 12 relative to the first portion 11 as in this embodiment, for example, components in the directions of two axes other than the Z axis, i.e., the X component and the Y component, may be used. However, the method of selecting the two components is not limited to this example, and other methods of selection, i.e., the Y component and the Z component, or the Z component and the X component, may be used.
[0048] The position on the hysteresis curve depends on the angle θ, which is a parameter. When the X and Y components of the measured value of the magnetic flux density are acquired, the estimation device 100A identifies the position on the hysteresis curve of the measured value and derives the angle θ corresponding to the position, thereby making it possible to estimate the angle θ between the first portion 11 and the second portion 12.
[0049] 5A is a diagram showing another example of the magnetic flux density as a function of the angle θ between the first portion 11 and the second portion 12 detected by the magnetic sensor 30. As shown in the figure, the angular component of the magnetic flux density may trace different trajectories when opening and closing attempts are different due to the effects of the detection error of the sensor, the magnetic field of the external environment, or magnetic hysteresis.
[0050] In curves with the angle θ on the horizontal axis and the magnetic flux density (or magnetic field) on the vertical axis, there are some differences when comparing Figures 4A and 5A, for example. In the curve showing the X component of the magnetic flux density in Figure 4A, the curve showing the transition from the closed state to the open state and the curve showing the transition from the open state to the closed state intersect at an angle θ of about 85 degrees. On the other hand, in the curve showing the X component of the magnetic flux density in Figure 5A, the curves showing the closed curve do not intersect except at the end points.
[0051] Furthermore, in the curve showing the Y component of the magnetic flux density in Fig. 4A, the curve showing the transition from the closed state to the open state and the curve showing the transition from the open state to the closed state intersect at an angle θ of about 90 degrees, whereas in the curve showing the Y component of the magnetic flux density in Fig. 5A, the two curves do not intersect at an angle of about 90 degrees.
[0052] Thus, the geometrical characteristics of the curves plotting the angle θ and the magnetic flux density may change for different opening and closing trials. However, as will be explained below with reference to Figures 4B and 5B, when the hysteresis curves of the components of the magnetic flux density are scaled and translated, the geometrical characteristics of the X and Y components of the magnetic flux density are approximately the same.
[0053] Fig. 5B is a diagram showing curves 82b and 84b obtained by enlarging or reducing and translating the curves of the X and Y components of the magnetic field shown in Fig. 5A, and curves 82a and 84a shown in Fig. 4B side by side. In the present specification, hereinafter, a combination of curve 82a connecting measured values in the first operation, curve 82b connecting measured values by enlarging or reducing and translating the curve connecting measured values, curve 84a connecting measured values in the second operation, and curve 84b connecting measured values by enlarging or reducing and translating the curve connecting measured values, may be collectively referred to as curves 82 and 84.
[0054] As shown in the figure, the curves 82a, 82b and the curves 84a, 84b have some deviations, but they have roughly the same shape in many geometric features, including whether the curves 82a, 84a or the curves 82b, 84b intersect with each other. In this way, even if the X and Y components of the magnetic flux density are affected by the detection error of the sensor, the change in the external environment, or the hysteresis at each opening and closing trial, the curves of the X and Y components of the magnetic flux density have roughly the same shape when enlarged or reduced and translated. Due to the roughly matching of the curves of different opening and closing trials, the angle θ between the first portion 11 and the second portion 12 also shows roughly the same value at the measurement positions where the curves of different opening and closing trials roughly match each other.
[0055] Therefore, information on the hysteresis curves (curves 82, 84) drawn by the X-component and Y-component of the magnetic flux density can be used as "reference information" indicating a combination of the measured values of the X-component and the Y-component. In other words, by estimating the angle θ using such reference information, it is possible to suppress a decrease in the accuracy of estimating the position of the magnet section 20 relative to the magnetic sensor 30 even if the magnetic field around the device 10A changes. In this embodiment, the X-axis direction is an example of the "first direction", the Y-axis direction is an example of the "second direction", and the Z-axis direction is an example of the "third direction".
[0056] In this embodiment, the estimation device 100A uses information about a curve 82 indicating the X-component measurement value and the Y-component measurement value measured by the magnetic sensor 30 according to the attitude of the second part 12 relative to the first part 11 during a first operation that transitions the device 10A from a closed state to an open state as "first reference information". The estimation device 100A further uses information about a curve 84 indicating the X-component measurement value and the Y-component measurement value measured by the magnetic sensor 30 according to the attitude of the second part 12 relative to the first part 11 during a second operation that transitions the device 10A from an open state to a closed state as "second reference information".
[0057] The first reference information may be the shape of curve 82, and the second reference information may be the shape of curve 84. However, the first reference information may be a group of combinations of numerical values of X and Y components in which the difference between coordinate points indicating combinations of numerical values is small enough to reproduce the shape of curve 82, and therefore the density of the coordinate points indicating the combinations of numerical values is dense enough to reproduce the shape of curve 82. Similarly, the second reference information may be a group of combinations of numerical values of X and Y components in which the difference between coordinate points indicating combinations of numerical values is small enough to reproduce the shape of curve 84, and therefore the density of the coordinate points indicating the combinations of numerical values is dense enough to reproduce the shape of curve 84.
[0058] Curve 82 corresponds to a first operation of apparatus 10A, and curve 84 corresponds to a second operation of apparatus 10A. Curves 82 and 84 have different curvatures and trajectories, and corresponding values of angle θ for a given value of each component of the magnetic field.
[0059] The estimation device 100A separately uses, among the reference information, first reference information corresponding to the curve 82 and second reference information corresponding to the curve 84. The estimation device 100A determines whether a curve connecting a plurality of measurement values obtained by the magnetic sensor 30 is more suitable for the curve 82 corresponding to the first reference information or the curve 84 corresponding to the second reference information, and selects the reference information to be used for estimating the angle θ from the first reference information and the second reference information. In this way, the estimation device 100A can determine whether the device 10A is in the first operation or the second operation using the suitable reference information, and estimate the angle θ with high accuracy.
[0060] 6 is a diagram showing an example of a change in the hysteresis curve when the magnet section 20 and the magnetic sensor 30 are affected by magnetization due to an external magnetic field. Specifically, by changing the relative positional relationship between the magnet section 20 and the magnetic sensor 30, the hysteresis curve when the second section 12 is opened and closed relative to the first section 11 approximates a state in which the hysteresis curve is gradually affected by magnetization (magnetization) due to an external factor.
[0061] In the figure, a graph is shown with the measured value of the X component of the magnetic flux density measured by the magnetic sensor 30 on the horizontal axis and the Y and Z components of the magnetic flux density on the vertical axis. The left figure shows a diagram drawn by a curve connecting a combination of the measured values of the X and Y components and a combination of the measured values of the X and Z components. Meanwhile, the right figure shows a curve enlarged or reduced and translated with respect to the curve connecting the measured values of the X and Y components and the measured values of the X and Z components.
[0062] It can be seen from the right figure that both the curves drawn by the combination of the measured values of the X and Y components and the curves drawn by the combination of the measured values of the X and Z components are approximately the same after enlargement or reduction and translation. In this way, the curves drawn by the combination of the measured values of the X and Y components and the curves drawn by the combination of the measured values of the X and Z components become approximately the same figures by enlarging or reducing the curves and translating them, even when they are affected by magnetization (magnetization) due to an external factor.
[0063] In this way, it is further demonstrated that the diagram drawn by the two coordinate axis components of magnetic flux density has stability against the effects of sensor detection errors, changes in the external environment, hysteresis, etc. One factor of the geometric stability of the diagram is that the diagram is drawn not with the angle θ as the coordinate axis, but in a coordinate system with the two coordinate axis components of magnetic flux density as axes, with the angle θ as a parameter.
[0064] 7 is a diagram illustrating an example of the first reference information and the second reference information. The estimation device 100A uses a curve 82c indicating the shape of the curve 82 as the first reference information, and a curve 84c indicating the shape of the curve 84 as the second reference information.
[0065] As described above, in this embodiment, the reference information is represented by a figure indicated by a set of coordinate values corresponding to the attitude of the second part 12 relative to the first part 11, which is indicated by a combination of the measured values of the X component and the Y component, on a coordinate system having the measured values of the first direction component measured by the magnetic sensor 30 as the first axis and the measured values of the second direction component measured by the magnetic sensor 30 as the second axis.
[0066] One curve 82 is an example of a "first line" corresponding to the first reference information. The other curve 84 is an example of a "second line" corresponding to the second reference information. In a coordinate system having the measured values of the X component of the magnetic field and the measured values of the Y component of the magnetic field as its coordinate axes, the estimation device 100A selects which of the first reference information and the second reference information to use based on the distance between the coordinate values indicated by the measured values and the curve 82 or the curve 84 drawn in the coordinate system.
[0067] Here, the internal configuration and functions of the control unit 110 will be described with reference to Fig. 3 again. The control unit 110 estimates the angle θ by using a figure drawn by two coordinate axis components of the magnetic flux density as reference information. The control unit 110 includes an acquisition unit 112, a detection unit 114, a selection unit 116, and an estimation unit 118.
[0068] However, the control unit 110 may use, as the reference information, first reference information and second reference information including a combination of coordinate values for linearly independent components of three degrees of freedom among the magnetic flux density measured by the magnetic sensor 30. The linearly independent three degrees of freedom may be the degrees of freedom (X, Y, Z) in the axial direction in a Cartesian coordinate system, the degrees of freedom (r, θ, z) in a cylindrical coordinate system, or the degrees of freedom (r, θ, φ) in a spherical coordinate system.
[0069] The acquisition unit 112 receives the measurement value of the magnetic flux density (or magnetic field) measured by the magnetic sensor 30 from the communication interface 130, and acquires reference information from the storage unit 120. The acquisition unit 112 transmits the acquired measurement value of the magnetic sensor 30 and the reference information to the detection unit 114. The reference information includes first reference information and second reference information.
[0070] The detection unit 114 detects whether or not the direction of the movement has changed during the movement of changing the posture when changing the posture of the second part 12 with respect to the first part 11. Specifically, the detection unit 114 detects a reversal movement to return the second part 12 to the first posture with respect to the first part 11 during the change from the first posture (e.g., angle θ=0 degrees) to the second posture (e.g., angle θ=180 degrees).
[0071] The detection unit 114 may detect a reversal of the movement direction based on a plurality of measurement values and the reference information. The detection unit 114 may detect a change in the movement direction, for example, when a difference between the plurality of measurement values and the reference information becomes large. The detection of a change in the movement direction of the first part 11 relative to the second part 12 by the detection unit 114 may be based on a change in the trajectory of a curve connecting the measurement values by a predetermined angle (e.g., 90 degrees) or more in the XY plane.
[0072] Alternatively, the detection unit 114 may include an inertial measurement unit (IMU). The IMU is a device that detects the angular velocity of the device 10A about axes along the X-axis, Y-axis, and Z-axis, and the acceleration of the device 10A in the X-axis, Y-axis, and Z-axis directions. By including an IMU in the detection unit 114, it is possible to detect a change in the motion direction of the second part 12 relative to the first part 11 from changes in the angular velocity and acceleration of the second part 12 relative to the first part 11. Thereby, for example, the detection unit 114 may determine that a change in the motion direction has occurred when the sign of acceleration in one axis direction is reversed.
[0073] As yet another embodiment, an IMU may be provided in either the first part 11 or the second part 12, and the detection unit 114 may be connected to the IMU via a communication line. In this specification, unless otherwise specified, such as by wire or wirelessly, "connected" means "electrically connected" so that the two are conductive to each other via a conductive pattern, wiring, or a bonding material (e.g., solder). The detection unit 114 can detect a change in the motion direction of the second part 12 relative to the first part 11 via the connected IMU. The detection unit 114 may include an acceleration sensor instead of or in addition to the IMU as a sensor for detecting a change in the motion direction.
[0074] The detection unit 114 outputs the detection result of the change in the movement direction to the selection unit 116. In response to the detection of the change in the movement direction by the detection unit 114, the selection unit 116 may reselect the reference information as described below. Alternatively, in response to the detection of the change in the movement direction by the detection unit 114, the acquisition unit 112 may acquire measurement values again from that point on.
[0075] In particular, when the detection unit 114 includes an IMU, the detection unit 114 can also detect the start of a motion from a stationary state. In this case, the acquisition unit 112 may be configured to acquire a measurement value of the magnetic sensor 30 in the motion direction in response to the detection unit 114 detecting the start of a motion and a change in the motion direction. Therefore, the detection unit 114 may output the detection result of the start of a motion and the change in the motion direction to the acquisition unit 112.
[0076] The detection unit 114 may output the measurement value and reference information of the magnetic sensor 30 received from the acquisition unit 112 to the selection unit 116 in addition to the detection result of the movement direction. However, the acquisition unit 112 may output the measurement value and reference information of the magnetic sensor 30 directly to the selection unit 116 without going through the detection unit 114.
[0077] The selection unit 116 selects reference information to be used for estimating the position from the reference information based on the measurement values of each component of the magnetic field measured by at least one magnetic sensor 30 and at least one reference information. The selection unit 116 derives a degree of agreement between a combination of X and Y components of the measurement values measured by at least one magnetic sensor 30 and a combination of coordinate values indicated by each of the curves 82, 84 indicated by the first reference information and the second reference information. Of the first reference information and the second reference information, the selection unit 116 selects one of the first reference information and the second reference information that has a higher degree of agreement with the combination of X and Y components of the measurement values.
[0078] The selection unit 116 derives the degree of match based on, for example, the distance from the coordinate values of a feature point that is predetermined or selected by the user among the measurement values of the magnetic field measured by the magnetic sensor 30 to the first line (curve 82c) or the second line (curve 84c). The selection unit 116 may select the first reference information or the second reference information corresponding to the curve having the shorter distance from the coordinate values of the feature point to the first line or the second line.
[0079] Alternatively, the selection unit 116 may derive the degree of match by the sum of the least square distance between a plurality of measurement values and the curve. The selection unit 116 may select, according to the derived degree of match, one of the first reference information and the second reference information, which has a smaller sum of the least square distance, as reference information having a higher degree of match.
[0080] In addition, when the first reference information and the second reference information are information indicating a combination of measurement values for linearly independent components of three degrees of freedom in a three-dimensional space, the selection unit 116 selects the first reference information and the second reference information in the three-dimensional space. That is, the selection unit 116 selects one of the first reference information and the second reference information that has a higher degree of match with the combination according to the degree of match between the combination of the measurement value components of the first direction, the second direction, and the third direction of the magnetic field in the three-dimensional space and the figure indicated by the first reference information and the second reference information. The selection unit 116 transmits the measurement value of the magnetic field of each component measured by the magnetic sensor 30 and the selected reference information to the estimation unit 118.
[0081] The estimation unit 118 estimates the angle of the second portion 12 with respect to the first portion 11 based on a combination of measurement values of each component of the magnetic field measured by the magnetic sensor 30 and reference information indicating the combination of the measurement values of each component measured by the magnetic sensor 30 selected by the selection unit 116. In this embodiment, the estimation unit 118 estimates an angle θ indicating the attitude of the second portion 12 with respect to the first portion 11 based on a combination of the measurement values of the X component and the Y component measured by the magnetic sensor 30 and one of the first reference information and the second reference information selected by the selection unit 116.
[0082] 8 shows an example of a flow diagram of a method for estimating the angle θ between the first portion 11 and the second portion 12. The estimation method includes steps S102 to S114.
[0083] The detection unit 114 detects the start of operation of the hinge mechanism 16, which changes the attitude of the second part 12 relative to the first part 11 (S102). The acquisition unit 112 acquires a measurement value of the magnetic field measured by at least one magnetic sensor 30 according to the angle θ corresponding to the attitude of the second part 12 relative to the first part 11 in the operating direction (S104).
[0084] The selection unit 116 derives the distance between a combination of coordinate values corresponding to the measurement values measured by the magnetic sensor 30 and each of the curves (e.g., curves 82c and 84c) that are figures indicated by the reference information (S106). The selection unit 116 selects the curve with the highest degree of match based on the degree of match according to the derived distance (S108). The estimation unit 118 estimates the angle θ corresponding to the attitude of the second part 12 relative to the first part 11 based on the measurement values measured by the magnetic sensor 30 and the reference information indicating the target curve selected by the selection unit 116 (S110).
[0085] When the angle θ is estimated for a series of measured values up to S110, the process proceeds to determining whether a change in the movement direction is detected during the detection of the measured values. It is determined whether the detection unit 114 detects a change in the movement direction of the second part 12 relative to the first part 11 that is equal to or greater than a predetermined angle, such as a reversal movement (S112). If the detection unit 114 detects a change in the movement direction, the process proceeds to S104 again, and the acquisition unit 102 acquires the measured value of the magnetic field of the magnetic sensor 30 in that movement direction. On the other hand, if the detection unit 114 does not detect a change in the movement direction, the process proceeds to S114, and it is determined whether the movement that changes the angle θ between the second part 12 relative to the first part 11 has ended.
[0086] For example, the detection unit 114 including an IMU determines whether or not the operation of changing the angle θ of the second part 12 relative to the first part 11 has ended (S114). If it is determined that the operation of the second part 12 relative to the first part 11 has ended, the estimation method ends. On the other hand, if it is not determined that the operation of the second part 12 relative to the first part 11 has ended, the process returns to S110 again, and the estimation unit 118 may estimate the angle θ of the second part 12 relative to the first part 11 at that time.
[0087] The estimation method including the above steps estimates the angle θ between the first part 11 and the second part 12. According to the estimation method of the present embodiment, a plurality of pieces of reference information are used to estimate the angle, thereby performing a detailed estimation of the movement direction of the second part 12 between the first part 11 corresponding to the reference information. This allows the angle θ between the first part 11 and the second part 12 to be estimated with high accuracy.
[0088] FIG. 9 is a diagram showing an example of measured values when the opening and closing of the device 10A is reversed in a state where the angle θ between the first portion 11 and the second portion 12 does not reach 0 degrees or 180 degrees.
[0089] In the hinge mechanism 16, the direction of the opening and closing operation may change even when the angle θ of the second part 12 relative to the first part 11 is an angle other than 0 degrees or 180 degrees. In particular, when the device 10A is a foldable smartphone, the hinge mechanism 16 may be a torque hinge that can maintain the angle θ at a desired angle between 0 degrees and 180 degrees. When such a torque hinge is used, the operating direction of the device 10A is easy to reverse the direction of the opening and closing operation from any angle θ between 0 degrees and 180 degrees.
[0090] In this way, device 10A may perform an inversion operation to the first position of angle θ=0 degrees during a first operation of changing second portion 12 relative to first portion 11 from a first position corresponding to angle θ=0 degrees (closed state of device 10A) to a second position corresponding to angle θ=180 degrees (open state of device 10A). In the figure, an example of a combination of measured values of the X component and the Y component of the magnetic field when device 10A performs such an inversion operation is shown.
[0091] If the opening and closing operation is reversed midway, the measurements taken by the magnetic sensor 30 may include a set of measurements 86 that cannot be approximated by either the first reference information corresponding to the curve 82 or the second reference information corresponding to the curve 84. In such cases, further reference information can be introduced to accurately estimate the angle corresponding to the measurements.
[0092] 10 is a diagram showing an example of the first reference information, the second reference information, and the third reference information. The third reference information is reference information corresponding to a curve 96 when a reversal operation is performed at an angle θ between 0 degrees and 180 degrees.
[0093] In this embodiment, the angle θ of the second portion 12 relative to the first portion 11 transitions from θ=0 degrees (closed state of the device 10A) to θ=180 degrees (open state of the device 10A) based on the curve 92. Furthermore, the angle θ of the second portion 12 relative to the first portion 11 transitions from the angle θ=180 degrees to an operation toward the angle θ=0 degrees (closed state of the device 10A) again based on the curve 96. During this change, the operation of the second portion 12 relative to the first portion 11 is reversed on the curve 96 at a certain angle θ (a predetermined angle, for example, the angle θ=130 degrees) and returns to a predetermined angle (for example, the angle θ=150 degrees) on the curve 96. The second portion 12 again moves from that angle to the angle θ=0 degrees relative to the first portion 11 based on the curve 94.
[0094] Here, reference information regarding the shape of curve 92 corresponds to the first reference information, reference information regarding the shape of curve 94 corresponds to the second reference information, and reference information regarding the shape of curve 96 corresponds to the third reference information. Furthermore, curve 92 corresponds to the first line, curve 94 corresponds to the second line, and curve 96 corresponds to the third line. Therefore, unlike the embodiment in FIG. 7, in this embodiment, the estimation device 100 estimates the angle θ corresponding to the measured value using the first reference information to the third reference information regarding the three curves 92, 94, and 96.
[0095] In this way, the first to third reference information are represented on a coordinate system in which the first axis is the measured value of the X component of the magnetic field measured by the magnetic sensor 30, and the second axis is the measured value of the component in the second direction measured by the magnetic sensor 30. The reference information is represented as a figure represented by a set of coordinate values corresponding to the position or attitude of the second part 12 with respect to the first part 11, which is represented by a combination of the measured value of the X component and the measured value of the Y component of the magnetic field measured by the magnetic sensor 30 on this coordinate system.
[0096] However, the first to third reference information may be reference information indicating a combination of coordinate values for linearly independent components of three degrees of freedom among the magnetic flux density measured by the magnetic sensor 30. For example, the three degrees of freedom may be (X, Y, Z) degrees of freedom in the axial direction in a Cartesian coordinate system, (r, θ, z) degrees of freedom in a cylindrical coordinate system, or (r, θ, φ) in a spherical coordinate system.
[0097] In this embodiment, the control unit 110 in Fig. 3 may perform the following operations. The operation of the acquisition unit 112 is the same as when the reference information includes the first reference information and the second reference information, except that the reference information includes the first to third reference information.
[0098] When changing the attitude of second part 12 relative to first part 11, detection unit 114 detects whether or not a reversal motion that changes the direction of the motion occurs during the motion that changes the attitude. The third reference information is used only when a reversal motion occurs. Therefore, when a reversal motion of device 10A occurs, detection unit 114 detects the reversal motion, and selection unit 116 selects the reference information again.
[0099] The selection unit 116 selects reference information to be used for estimating the position from the reference information, based on the measurement values of each component of the magnetic field measured by at least one magnetic sensor 30 and at least one reference information. The selection unit 116 derives the degree of match between a combination of X and Y components of the measurement values measured by at least one magnetic sensor 30 and a combination of coordinate values indicated by each of the curves 92, 94, 96 indicated by the first to third reference information. The selection unit 116 selects one of the first to third reference information that has the highest degree of match with the combination of X and Y components of the measurement values, from among the first to third reference information.
[0100] When the first to third reference information are information indicating a combination of measurement values for linearly independent components of three degrees of freedom in a three-dimensional space, the selection unit 116 selects the first to third reference information in the three-dimensional space. The selection unit 116 selects one of the first to third reference information that has the highest degree of match with the combination according to the degree of match between the combination of the measurement value components in the first, second, and third directions of the magnetic field in the three-dimensional space and the figure (curves 92, 94, 96) indicated by the first to third reference information. The selection unit 116 transmits the measurement value of the magnetic field of each component measured by the magnetic sensor 30 and the selected reference information to the estimation unit 118.
[0101] The estimation unit 118 estimates the angle θ indicating the attitude of the second part 12 relative to the first part 11, based on a combination of the measured values of the X component and the measured values of the Y component measured by the magnetic sensor 30 and one of the first to third reference information selected by the selection unit 116. As described above, the estimation device 100A can accurately estimate the angle θ even when a reversal motion is performed midway through a motion in which the second part 12 changes its attitude relative to the first part 11.
[0102] In the present embodiment, an example has been described in which the estimation unit 118 estimates the angle θ indicating the attitude of the second portion 12 relative to the first portion 11 using a combination of the X-component measurement value and the Y-component measurement value measured by one magnetic sensor 30. However, when the device 10A includes a plurality of magnetic sensors 30, the estimation unit 118 may estimate the angle θ indicating the attitude of the second portion 12 relative to the first portion 11 using a combination of the X-component measurement value measured by one magnetic sensor 30 of the plurality of magnetic sensors 30 and the X-component measurement value measured by another magnetic sensor 30 of the plurality of magnetic sensors 30. Alternatively, the estimation unit 118 may estimate the angle θ indicating the attitude of the second portion 12 relative to the first portion 11 using a combination of the X-component measurement value measured by one magnetic sensor 30 of the plurality of magnetic sensors 30 and the Y-component measurement value measured by another magnetic sensor 30 of the plurality of magnetic sensors 30.
[0103] In the following, an embodiment will be described in which the device 10 is a device 10B that is an extendable terminal. A configuration of the device 10B will be described with reference to Figs. 11A to 12. Fig. 11A is a diagram showing an example of a top view of the exterior of the device 10B, and Fig. 11B is a diagram showing another example of a top view of the exterior of the device 10B. Fig. 12 is a diagram showing an example of a functional block of the device 10B according to this embodiment.
[0104] The device 10B is a stretchable terminal, such as a mobile terminal such as a smartphone, a mobile phone, a tablet, a notebook computer, or a small personal computer. In Fig. 11A and Fig. 11B, the device 10B is a so-called rollable smartphone. The device 10B includes a support member 52, a movable member 54, a display 14, and a movable mechanism 80.
[0105] In the device 10B, the display screen of the display 14 expands and contracts, for example, as shown in FIG. 11A and FIG. 11B. The support member 52 and the movable member 54 may form a display unit. The movable member 54 may move along the X-axis direction relative to the support member 52 from a first state shown in FIG. 11A to a second state shown in FIG. 11B. This causes the width of the display screen of the display 14 in the X-direction to expand and contract. The display 14 may be, for example, a thin display such as an organic EL display that can be rolled up around a rotation axis along the Y-axis by the function of the movable mechanism 80. The support member 52 is an example of the "first part," and the movable member 54 is an example of the "second part."
[0106] The movable mechanism 80 may have a driving source that provides a driving force for moving the movable member 54 relative to the support member 52. The driving source may be an actuator such as an electrostatic actuator, a voice coil motor (VCM), or a piezoelectric actuator. The movable mechanism 80 may not have a driving source, and the movable member 54 may be moved relative to the support member 52 manually via the movable mechanism 80.
[0107] In this embodiment, for the sake of simplicity, an example is shown in which the device 10 has either the hinge mechanism 16 or the movable mechanism 80, but the device 10 may have both the hinge mechanism 16 and the movable mechanism 80. That is, the device 10 may be a foldable and extendable terminal, such as a smartphone using a slider hinge mechanism. Therefore, an embodiment or a part of a foldable terminal described with reference to Figs. 1A to 10 may be combined with an embodiment or a part of a extendable terminal described with reference to Figs. 11A and onwards. The embodiments described below can be applied to measurements of translational and rotational movements of the movable member 54 relative to the support member 52 in multiple axial directions in the XYZ space.
[0108] 11A shows a state in which the movable member 54 is most contracted relative to the support member 52 within the movable range of the movable member. This is an example of a state in which the movable member 54 is in a "first position" relative to the support member 52. Furthermore, FIG. 11B shows a state in which the movable member 54 is most extended relative to the support member 52 within the movable range of the movable member. This is an example of a state in which the movable member 54 is in a "second position" relative to the support member 52.
[0109] In this case, the operation of moving the movable member 54 from the "first position" to the "second position" relative to the support member 52, i.e., from the most contracted state to the most extended state, is an example of the "first operation." On the other hand, the operation of moving the movable member 54 from the "second position" to the "first position" relative to the support member 52, i.e., from the most extended state to the most contracted state, is an example of the "second operation."
[0110] 12, the device 10B further includes a plurality of magnetic sensors 60a, 60b (hereinafter, sometimes collectively referred to as magnetic sensors 60) and a magnet unit 70. Like the magnetic sensor 30, the magnetic sensor 60 measures a magnetic field at a position where the magnetic sensor 60 is provided, and outputs a measured value (e.g., a voltage or a current) according to the magnetic field. The magnetic sensor 60 may be a Hall element.
[0111] In this embodiment, an example in which the device 10B includes a plurality of magnetic sensors 60 will be described. The plurality of magnetic sensors 60 include magnetic sensors 60a and 60b. The number of magnetic sensors 60 included in the device 10B is arbitrary, and the device 10B may include at least two magnetic sensors 60. The device 10B may include a necessary number of magnetic sensors 60 for estimating the position or attitude of the movable member 54 relative to the support member 52 over the entire movable range. The magnetic sensors 60 may output measurement values corresponding to the magnetic fields in the X-axis, Y-axis, and Z-axis directions. However, in this embodiment, in order to simplify the description, the description will be given focusing on the measurement values corresponding to the magnetic field in one of the X-axis, Y-axis, and Z-axis directions, for example, the X-axis direction. The magnetic sensor 60a is an example of a "first magnetic sensor", and the magnetic sensor 60b is an example of a "second magnetic sensor".
[0112] The magnet section 70 provides a magnetic field to each of the multiple magnetic sensors 60. When the movable member 54 moves relative to the support member 52, the magnet section 70 may be arranged such that the south pole and the north pole alternate along a predetermined direction on the movable member 54.
[0113] In this case, the multiple magnetic sensors 60 may be provided on the support member 52, which is one of the support member 52 or the movable member 54, and the magnet unit 70 may be provided on the movable member 54, which is the other of the support member 52 or the movable member 54. However, which of the multiple magnetic sensors 60 and the magnet unit 70 is provided on the support member 52 or the movable member 54 is not limited to this example, as long as the multiple magnetic sensors 60 can detect the relative position of the support member 52 or the movable member 54. Therefore, the magnetic sensors 60 may be provided on the movable member 54, and the magnet unit 70 may be provided on the support member 52.
[0114] In the case where the movable member 54 moves along a predetermined direction relative to the support member 52, the multiple magnetic sensors 60 may be provided on the support member 52 along the predetermined direction. The multiple magnetic sensors 60 may be provided on the support member 52 at equal intervals along the predetermined direction.
[0115] The apparatus 10B further includes an estimation device 100B and a drive control unit 150. The estimation device 100B estimates the position of the movable member 54 relative to the support member 52 based on the measurement values of each of the multiple magnetic sensors 60. The drive control unit 150 may control the movable mechanism 80 based on the position of the movable member 54 relative to the support member 52 estimated by the estimation device 100B so that the position of the movable member 54 relative to the support member 52 becomes a target position.
[0116] The multiple magnetic sensors 60 measure the surrounding magnetic field and output measurement values indicating the magnitude of the surrounding magnetic field. When the movable member 54 moves relative to the support member 52, the magnetic field around each of the multiple magnetic sensors 60 changes. Therefore, if the relationship between the measurement values of each of the multiple magnetic sensors 60 and the movable member 54 relative to the support member 52 is known in advance, the estimation device 100B can estimate the position of the movable member 54 relative to the support member 52 from the measurement values measured by each of the multiple magnetic sensors 60.
[0117] Next, the internal configuration and functions of the estimation device 100B will be described. The estimation device 100B includes a communication interface 130, a storage unit 120, an acquisition unit 102, a detection unit 104, a selection unit 106, and an estimation unit 108. The estimation device 100B may be configured as a computer including a CPU and a memory. The CPU may function as the acquisition unit 102, the detection unit 104, the selection unit 106, and the estimation unit 108, and the memory may function as the storage unit 120.
[0118] The communication interface 130 communicates with the multiple magnetic sensors 60 via signal lines and receives measurement values of the magnetic flux density measured by the multiple magnetic sensors 60. The communication interface 130 may receive each component of the magnetic flux density measured by the multiple magnetic sensors 60 in the XYZ coordinate system.
[0119] The storage unit 120 stores reference information for estimating the position of the movable member 54 relative to the support member 52 from measurement values of the multiple magnetic sensors 60 including the magnetic sensors 60a and 60b. The reference information includes first reference information indicating a combination of measurement values of the X components of the magnetic field measured by the multiple magnetic sensors 60 in a first operation of moving the movable member 54 from a first position to a second position relative to the support member 52. The multiple magnetic sensors 60 indicating the combination of the X components of the magnetic field in the first reference information are, for example, the magnetic sensors 60a and 60b. However, the multiple magnetic sensors 60 indicating the combination of the X components of the magnetic field in the first reference information may include other magnetic sensors (magnetic sensors 60c, 60d, etc.).
[0120] The reference information further includes second reference information indicating a combination of measured values of the X components of the magnetic field measured by the multiple magnetic sensors 60 during a second operation of moving the movable member 54 from the second position to the first position relative to the support member 52. In the second reference information, the multiple magnetic sensors 60 indicating the combination of the X components of the magnetic field are, for example, the magnetic sensors 60a and 60b. However, the multiple magnetic sensors 60 indicating the combination of the X components of the magnetic field in the second reference information may include other magnetic sensors.
[0121] The reference information is, for example, a function indicating a combination of measurement values measured by the magnetic sensors 60a, 60b in a part of the detection range of the magnetic sensors 60a, 60b. For example, the reference information may include functions with different coefficients for the first reference information and the second reference information. Furthermore, the reference information may include third reference information corresponding to a function having a coefficient more suitable for a reversal operation to return the movable member 54 (second part) to the first position while changing the movable member 54 (second part) from the first position to the second position with respect to the support member 52 (first part). Furthermore, the reference information may be a curved figure indicated by a combination of measurement values of the multiple magnetic sensors 60a, 60b according to the coefficients corresponding to the first to third reference information.
[0122] The acquiring unit 102 receives the measurement values of the magnetic flux density (or magnetic field) measured by the multiple magnetic sensors 60 from the communication interface 130, and acquires the reference information from the storage unit 120. The acquiring unit 102 transmits the acquired measurement values of the multiple magnetic sensors 60 and the one or more pieces of reference information to the detection unit 104.
[0123] The detection unit 104 detects a change in the movement direction of the movable member 54 relative to the support member 52 based on the measurement values of the multiple magnetic sensors 60. Specifically, the detection unit 104 may detect a change in the movement direction based on a change in the sign of the acceleration in the X direction.
[0124] The selection unit 106 selects reference information to be used for estimating the position from one or more pieces of reference information based on the measurement values and one or more pieces of reference information. The selection unit 106 selects reference information to be used for estimating the relative position of the movable member 54 with respect to the support member 52 on the X-axis from, for example, the first reference information and the second reference information. The selection unit 106 selects reference information that gives a function with a high degree of agreement from the first reference information and the second reference information that indicate a combination of measurement values based on, for example, multiple measurement values of the X-component of the magnetic field measured by the first magnetic sensors 60a and 60b.
[0125] In addition, in response to the detection of the reversal operation by the detection unit 104, the selection unit 106 may select the suitable reference information again. For example, the selection unit 106 selects the reference information to be used for estimating the position from among the first reference information, the second reference information, and the third reference information based on the degree of agreement between the multiple measurement values of the X component of the magnetic field measured by the first magnetic sensors 60a and 60b and each of the first reference information, the second reference information, and the third reference information. The selection unit 106 may select the reference information based on the degree of agreement between the curved figure indicated by the combination of the measurement values of the multiple magnetic sensors 60a and 60b and the curve indicated by the combination of the measurement values actually measured by the magnetic sensors 60a and 60b according to the coefficients of the function given by the first reference information to the third reference information. The selection unit 106 transmits the measurement values of the X component measured by the multiple magnetic sensors 60 and the selected reference information to the estimation unit 108.
[0126] The estimation unit 108 estimates the position in the X direction of the movable member 54 (second portion 12) relative to the support member 52 (first portion 11) based on a combination of the measurement values of the X component measured by the multiple magnetic sensors 60 and reference information indicating the combination of the measurement values of the X component measured by the multiple magnetic sensors 60 selected by the selection unit 106.
[0127] As described above, the estimation device 100B estimates the position by using a plurality of reference information subdivided based on the movement direction and the like for a combination of measurement values of the X component measured by the plurality of magnetic sensors 60. As a result, when the second part 12 performs an action that changes its position relative to the first part 11, the estimation device 100B can accurately estimate the position of the second part 12 relative to the first part 11 even if the movement direction changes.
[0128] In the present embodiment, an example has been described in which the estimation unit 108 estimates the position of the movable member 54 relative to the support member 52 using a combination of the measured values of the X components of the magnetic fields measured by the magnetic sensors 60a and 60b. However, the estimation unit 108 may estimate the position of the movable member 54 relative to the support member 52 using a combination of the measured values of the magnetic fields in different axial directions measured by the multiple magnetic sensors 60. For example, the estimation unit 108 may estimate the position of the movable member 54 relative to the support member 52 using a combination of the measured values of the X components of the magnetic field measured by the magnetic sensor 60a and the measured values of the Y components of the magnetic field measured by the magnetic sensor 60a. The estimation unit 108 may estimate the position of the movable member 54 relative to the support member 52 using a combination of the measured values of the X components and the Y components of the magnetic field measured by one magnetic sensor 60a.
[0129] The device 10B may include a plurality of magnetic sensors 60 for a plurality of axes of translational movement of the movable member 54 relative to the support member 52. For example, by combining a plurality of slide mechanisms, the device 10B may be a device that can change the relationship of the movable member 54 to the support member 52, such as overlapping the movable member 54 or arranging the movable member 54 in a planar positional relationship after the movable member 54 is pulled out from the support member 52. By providing the device 10B with a plurality of magnetic sensors 60, the estimation unit 108 can easily estimate an accurate position of the translational movement of the movable member 54 relative to the support member 52 in the XYZ space.
[0130] 13 shows an example of a computer 1200 in which aspects of the present invention may be embodied in whole or in part. A program installed on the computer 1200 may cause the computer 1200 to perform operations associated with an apparatus according to an embodiment of the present invention or one or more "parts" of the apparatus. Alternatively, the program may cause the computer 1200 to execute the operations or one or more "parts". The program may cause the computer 1200 to execute a process or steps of the process according to an embodiment of the present invention. Such a program may be executed by the CPU 1212 to cause the computer 1200 to execute specific operations associated with some or all of the blocks of the flowcharts and block diagrams described herein.
[0131] The computer 1200 according to this embodiment includes a CPU 1212 and a RAM 1214, which are connected to each other by a host controller 1210. The computer 1200 also includes a communication interface 1222 and an input / output unit, which are connected to the host controller 1210 via an input / output controller 1220. The computer 1200 also includes a ROM 1230. The CPU 1212 operates according to programs stored in the ROM 1230 and the RAM 1214, thereby controlling each unit.
[0132] The communication interface 1222 communicates with other electronic devices via a network. The hard disk drive may store programs and data used by the CPU 1212 in the computer 1200. The ROM 1230 stores a boot program executed by the computer 1200 when activated and / or a program that depends on the hardware of the computer 1200. The programs are provided via a computer-readable storage medium such as a CR-ROM, a USB memory, or an IC card, or a network. The programs are installed in the RAM 1214, which is also an example of a computer-readable storage medium, or the ROM 1230, and executed by the CPU 1212. The information processing described in these programs is read by the computer 1200, and brings about cooperation between the programs and the various types of hardware resources. An apparatus or method may be configured by implementing an operation or processing of information according to the use of the computer 1200.
[0133] For example, when communication is performed between the computer 1200 and an external device, the CPU 1212 may execute a communication program loaded in the RAM 1214 and instruct the communication interface 1222 to perform communication processing based on the processing described in the communication program. Under the control of the CPU 1212, the communication interface 1222 reads transmission data stored in a transmission buffer area provided in the RAM 1214 or a medium such as a USB memory, transmits the read transmission data to a network, or writes reception data received from the network to a reception buffer area or the like provided on a storage medium.
[0134] Furthermore, the CPU 1212 may cause all or a necessary portion of a file or database stored in an external storage medium such as a USB memory to be read into the RAM 1214, and perform various types of processing on the data on the RAM 1214. The CPU 1212 may then write back the processed data to the external storage medium.
[0135] Various types of information, such as various types of programs, data, tables, and databases, may be stored in the storage medium and undergo information processing. The CPU 1212 may perform various types of processing on the data read from the RAM 1214, including various types of operations, information processing, conditional judgment, conditional branching, unconditional branching, information search / replacement, etc., as described throughout this disclosure and specified by the instruction sequence of the program, and writes back the results to the RAM 1214. The CPU 1212 may also search for information in a file, database, etc. in the storage medium. For example, when a plurality of entries each having an attribute value of a first attribute associated with an attribute value of a second attribute are stored in the storage medium, the CPU 1212 may search for an entry that matches a condition, in which the attribute value of the first attribute is specified, from among the plurality of entries, read the attribute value of the second attribute stored in the entry, and thereby obtain the attribute value of the second attribute associated with the first attribute that satisfies a predetermined condition.
[0136] The above-described programs or software modules may be stored in a computer-readable storage medium on the computer 1200 or in the vicinity of the computer 1200. Also, a storage medium such as a hard disk or a RAM provided in a server system connected to a dedicated communication network or the Internet by wire or wirelessly can be used as a computer-readable storage medium, thereby providing the programs to the computer 1200 via the network.
[0137] A computer-readable medium may include any tangible device capable of storing instructions that are executed by a suitable device. As a result, a computer-readable medium having instructions stored thereon comprises an article of manufacture that includes instructions that can be executed to create means for performing the operations specified in the flowchart or block diagram. Examples of computer-readable media may include electronic storage media, magnetic storage media, optical storage media, electromagnetic storage media, semiconductor storage media, and the like. More specific examples of computer-readable media may include floppy disks, diskettes, hard disks, random access memories (RAMs), read-only memories (ROMs), erasable programmable read-only memories (EPROMs or flash memories), electrically erasable programmable read-only memories (EEPROMs), static random access memories (SRAMs), compact disk read-only memories (CD-ROMs), digital versatile disks (DVDs), Blu-ray (RTM) disks, memory sticks, integrated circuit cards, and the like.
[0138] The computer readable instructions may include either source code or object code written in any combination of one or more programming languages. The source code or object code includes conventional procedural programming languages. The conventional procedural programming languages may be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, or object oriented programming languages such as Smalltalk®, JAVA®, C++, etc., and the “C” programming language or similar programming languages. The computer readable instructions may be provided to a processor or programmable circuitry of a general purpose computer, special purpose computer, or other programmable data processing apparatus locally or over a wide area network (WAN) such as a local area network (LAN), the Internet, etc. The processor or programmable circuitry may execute the computer readable instructions to create means for performing the operations specified in the flowcharts or block diagrams. Examples of processors include computer processors, processing units, microprocessors, digital signal processors, controllers, microcontrollers, etc.
[0139] Although the present invention has been described above using the embodiments, the technical scope of the present invention is not limited to the scope described in the above embodiments. It is clear to those skilled in the art that various modifications and improvements can be made to the above embodiments. It is clear from the description of the claims that such modifications and improvements can also be included in the technical scope of the present invention.
[0140] It should be noted that the order of execution of each process, such as operations, procedures, steps, and stages, in the devices, systems, programs, and methods shown in the claims, specifications, and drawings is not specifically stated as "before," "prior to," etc., and may be realized in any order unless the output of a previous process is used in a later process. Even if the operational flow in the claims, specifications, and drawings is explained using "first," "next," etc. for convenience, it does not mean that it is essential to perform the process in this order. [Explanation of symbols]
[0141] 10 equipment 11 Part 1 12 Part 2 14 Display 16 Hinge mechanism 18 Rotational Axis 20,70 Magnet section 30,60 Magnetic sensor 52 Support member 54 Movable parts 80 Movable mechanism 82,84,92,94,96 curve 86 Measurement Group 100 Estimator 102,112 Acquisition Department 104,114 Detection unit 106,116 Selection section 108,118 Estimation part 110 Control section 120 Storage section 130,1222 Communication Interface 150 Drive control unit 1200 Computer 1210 Host Controller 1212 CPU 1214 RAM 1220 Input / Output Controller 1230 ROM
Claims
1. An estimation device for estimating at least one of a position and an orientation of the second part relative to the first part, the estimation device comprising: a first part; a second part; a movable mechanism that enables a first operation of changing the second part from a first position or a first orientation to a second position or a second orientation relative to the first part, and a second operation of changing the second part from the second position or the second orientation to the first position or the first orientation relative to the first part; at least one magnetic sensor provided on one of the first part and the second part; and a magnet unit provided on the other of the first part and the second part, the magnet unit providing a magnetic field measured by the at least one magnetic sensor, an estimation unit that estimates a position or orientation of the second part relative to the first part at the first time point based on a combination of at least two measurement values of at least one directional component measured by the at least one magnetic sensor at a first time point and reference information indicating the at least two measurement values of the at least one directional component measured by the at least one magnetic sensor according to the position or orientation of the second part relative to the first part; The reference information is first reference information indicative of at least two measurements of at least one directional component measured by the at least one magnetic sensor in response to a position or orientation of the second part relative to the first part during the first movement; second reference information indicative of at least two measurements of at least one directional component measured by the at least one magnetic sensor as a function of a position or orientation of the second part relative to the first part during the second movement; Including, The estimation device comprises: the estimation device further comprising a selection unit that selects one of the first reference information and the second reference information that has a higher degree of match with a combination of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor, as the reference information to be used by the estimation unit for the estimation, in accordance with a degree of match between the combination and each of the first reference information and the second reference information.
2. the movable mechanism enables a reversal operation of returning the second part to the first position or the first posture while changing the second part from the first position or the first posture to the second position or the second posture relative to the first part, the reference information further includes third reference information indicative of at least two measured values of components of the at least one direction measured by the at least one magnetic sensor in response to a position or an orientation of the second part relative to the first part during the reversal motion; 2. The estimation device according to claim 1, wherein the selection unit selects one of the first reference information, the second reference information, and the third reference information as the reference information to be used by the estimation unit to estimate the position or orientation of the second part relative to the first part based on a combination of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor and a degree of match with each of the first reference information, the second reference information, and the third reference information.
3. 3. The estimation device according to claim 2, wherein the selection unit selects one of the first reference information, the second reference information, and the third reference information that has the highest degree of match with a combination of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor, based on a degree of match between the combination and each of the first reference information, the second reference information, and the third reference information.
4. the first reference information indicates a combination of a measurement value of a first direction component and a measurement value of a second direction component measured by the at least one magnetic sensor according to a position or an attitude of the second part relative to the first part during the first motion; the second reference information indicating a measurement value of a component in a first direction and a measurement value of a component in a second direction measured by the at least one magnetic sensor according to a position or orientation of the second part relative to the first part during the second movement; 2. The estimation device according to claim 1, wherein the measurement values of the first direction component and the second direction component measured by the at least one magnetic sensor indicate a combination of the measurement values of the first direction component and the second direction component measured by the at least one magnetic sensor depending on the posture measured by the at least one magnetic sensor depending on the posture.
5. the first reference information indicates a combination of a measurement value of a component in the first direction, a measurement value of a component in the second direction, and a measurement value of a component in a third direction measured by the at least one magnetic sensor according to a position or an attitude of the second part relative to the first part during the first motion; the second reference information indicates a combination of a measurement value of a component in the first direction, a measurement value of a component in the second direction, and a measurement value of a component in the third direction measured by the at least one magnetic sensor according to a position or an attitude of the second part relative to the first part during the second operation; 5. The estimation device according to claim 4, wherein the selection unit selects one of the first reference information and the second reference information that has a higher degree of match with a combination of a measurement value of the first direction component, a measurement value of the second direction component, and a measurement value of the third direction component measured by the at least one magnetic sensor, in accordance with a degree of match between the combination and each of the first reference information and the second reference information.
6. 2. The estimation device according to claim 1, wherein the selection unit selects one of the first reference information and the second reference information that has a higher degree of matching with each of a plurality of combinations of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor in accordance with a degree of matching between each of the plurality of combinations and the first reference information and the second reference information.
7. the reference information is represented as a graphic represented by a set of coordinate values corresponding to a position or attitude of the second part relative to the first part, which is represented by a combination of the measurement value of the first direction component measured by the at least one magnetic sensor and the measurement value of the second direction component measured by the at least one magnetic sensor, or a combination of the measurement value of the first direction component measured by the at least one magnetic sensor and the measurement value of the second direction component measured by the at least one magnetic sensor, on a coordinate system having a first axis representing a measurement value of a first direction component measured by the at least one magnetic sensor and a second axis representing a measurement value of the first direction component measured by a second magnetic sensor of the at least one magnetic sensor; the graphic includes a first line corresponding to the first reference information and a second line corresponding to the second reference information; 2. The estimation device according to claim 1, wherein the selection unit selects one of the first reference information and the second reference information having a shorter distance from the coordinate value in the coordinate system corresponding to the combination of the measurement values of a first direction component and a second direction component measured by the at least one magnetic sensor, or the combination of the measurement values of the first direction component measured by the first magnetic sensor and the measurement values of the first direction component measured by the second magnetic sensor, according to a distance between the first line and each of the second lines.
8. the reference information is represented as a graphic represented by a set of coordinate values corresponding to a position or attitude of the second part relative to the first part, which is represented by a combination of the measurement value of the first direction component measured by the at least one magnetic sensor and the measurement value of the second direction component measured by the at least one magnetic sensor, or a combination of the measurement value of the first direction component measured by the at least one magnetic sensor and the measurement value of the second direction component measured by the at least one magnetic sensor, on a coordinate system in which a first axis is a measurement value of a first direction component measured by the at least one magnetic sensor and a second axis is a measurement value of the first direction component measured by a second magnetic sensor of the at least one magnetic sensor, the graphic includes a first line corresponding to the first reference information, a second line corresponding to the second reference information, and a third line corresponding to the third reference information; The estimation device comprises: a detection unit configured to detect an inversion operation of returning the second part to the first position or the first posture while the second part is being changed from the first position or the first posture to the second position or the second posture with respect to the first part; 3. The estimation device of claim 2, wherein when the detection unit detects the reversal operation, the selection unit selects one of the first reference information, the second reference information, and the third reference information based on distances between each of the first line, the second line, and the third line and coordinate values on the coordinate system corresponding to the combination of the measurement values of a first direction component and a second direction component measured by the at least one magnetic sensor, or the combination of the measurement values of the first direction component measured by the first magnetic sensor and the measurement values of the first direction component measured by the second magnetic sensor.
9. 9. The estimation device according to claim 8, wherein the selection unit selects one of the first reference information, the second reference information, and the third reference information whose coordinate value distance is the shortest based on a distance between each of the first line, the second line, and the third line and a coordinate value on the coordinate system corresponding to the combination of the measurement values of a first direction component and a second direction component measured by the at least one magnetic sensor, or the combination of the measurement values of the first direction component measured by the first magnetic sensor and the measurement values of the first direction component measured by the second magnetic sensor.
10. An estimation device according to any one of claims 1 to 9; The first portion; and The second portion; and The movable mechanism and An apparatus comprising:
11. 1. An estimation method for estimating at least one of a position and an orientation of a second part relative to a first part in an apparatus including: a first part; a second part; a movable mechanism that enables a first operation of changing the second part from a first position or a first orientation to a second position or a second orientation relative to the first part; and a second operation of changing the second part from the second position or the second orientation to the first position or the first orientation relative to the first part; at least one magnetic sensor provided on one of the first part and the second part; and a magnet unit provided on the other of the first part and the second part, the magnet unit providing a magnetic field measured by the at least one magnetic sensor, estimating a position or orientation of the second part relative to the first part at the first time point based on a combination of at least two measurements of at least one directional component measured by the at least one magnetic sensor at a first time point and reference information indicative of the at least two measurements of the at least one directional component measured by the at least one magnetic sensor as a function of the position or orientation of the second part relative to the first part. Equipped with The reference information is first reference information indicative of at least two measurements of at least one directional component measured by the at least one magnetic sensor in response to a position or orientation of the second part relative to the first part during the first movement; second reference information indicative of at least two measurements of at least one directional component measured by the at least one magnetic sensor as a function of a position or orientation of the second part relative to the first part during the second movement; Including, The estimation method includes: The estimation method further comprises a step of selecting, in accordance with a degree of match between a combination of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor and each of the first reference information and the second reference information, one of the first reference information and the second reference information that has a higher degree of match with the combination, as the reference information to be used for estimating the position or orientation of the second part relative to the first part in the estimation step.
12. a movable mechanism that enables a first operation of changing the second part from a first position or a first attitude to a second position or a second attitude with respect to the first part, and a second operation of changing the second part from the second position or the second attitude to the first position or the first attitude with respect to the first part, at least one magnetic sensor provided on one of the first part and the second part, and a magnet unit provided on the other of the first part and the second part for providing a magnetic field measured by the at least one magnetic sensor, the program causing a computer to function as an estimation device that estimates at least one of a position and an attitude of the second part with respect to the first part, estimating a position or orientation of the second part relative to the first part at the first time point based on a combination of at least two measurements of at least one directional component measured by the at least one magnetic sensor at a first time point and reference information indicative of the at least two measurements of the at least one directional component measured by the at least one magnetic sensor as a function of the position or orientation of the second part relative to the first part. causing the computer to execute The reference information is first reference information indicative of at least two measurements of at least one directional component measured by the at least one magnetic sensor in response to a position or orientation of the second part relative to the first part during the first movement; second reference information indicative of at least two measurements of at least one directional component measured by the at least one magnetic sensor as a function of a position or orientation of the second part relative to the first part during the second movement; Including, The program is A program that further causes the computer to execute a step of selecting one of the first reference information and the second reference information that has a higher degree of match with a combination of at least two measurement values of the at least one directional component measured by the at least one magnetic sensor, as the reference information to be used in estimating the position or orientation of the second part relative to the first part in the estimation step, in accordance with the degree of match between the combination of the first reference information and the second reference information, respectively.
