Estimation device, device, estimation method and program
The estimation device improves magnet position estimation accuracy by using magnetic sensors and updating reference information to account for environmental magnetic changes, ensuring precise angle and position determination of movable parts.
Patent Information
- Application Number
- JP2023054039
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
Existing technologies face challenges in maintaining accuracy of magnet position estimation with respect to a magnetic sensor due to changes in magnetization status and magnetic field environments.
An estimation device that utilizes magnetic sensors and magnets to measure and update reference information based on correlations between multiple measured values, adjusting for changes in magnetic fields through coordinate system transformations.
Enhances the accuracy of estimating the position and orientation of movable parts by compensating for sensor errors and environmental magnetic influences, ensuring precise angle and position determination.
Smart Images

Figure 2024142062000001_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]
[0003] [Patent Document 1] U.S. Patent No. 9,823,093 Summary of the Invention [Problem to be solved by the invention]
[0004] It is desirable to suppress a decrease in the accuracy of estimating the position of the magnet relative to the magnetic sensor even when the magnetization state of peripheral components changes and the magnetic field environment changes. [Means for solving the problem]
[0005] 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 for changing at least one of a position and an orientation of the second part 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 for estimating a position or an orientation of the second part relative to the first part based on at least one measurement value of at least one directional component measured at a first time point by the at least one magnetic sensor and reference information indicating at least one measurement value of at least one directional component of the at least one magnetic sensor according to the position or orientation of the second part relative to the first part, and an update unit for updating the reference information based on a correlation between at least two measurement values of at least one directional component measured by the at least one magnetic sensor.
[0006] In the estimation device, the movable mechanism may enable 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. The update unit may update the reference information based on a correlation between at least two measured values of the at least one directional component measured by the at least one magnetic sensor during at least a part of at least one of the first operation and the second operation.
[0007] In any of the estimation devices, the update unit may update the reference information based on a correlation between at least two measurement values of the at least one directional component measured by the at least one magnetic sensor when the second part is in the first position or the first attitude relative to the first part, or a correlation between at least two measurement values of the at least one directional component measured by the at least one magnetic sensor when the second part is in the second position or the second attitude relative to the first part.
[0008] In any of the estimation devices, the correlation 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 values of the first direction component measured by the at least one magnetic sensor and the measurement values of the second direction component measured by the at least one magnetic sensor, on a coordinate system having a first axis representing the measurement values of the first direction component measured by the at least one magnetic sensor and a second axis representing the measurement values of the second direction component measured by the at least one magnetic sensor. The update unit may update the reference information by performing at least one of enlarging, reducing, and moving the graphic on the coordinate system to align it on the coordinate values represented by each of the measurement values of the multiple first direction components and the multiple second direction components measured by the at least one magnetic sensor.
[0009] In any of the estimation devices, the movable mechanism may enable 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. The correlation may include a first combination group of measurements of a component in a first direction and a component in a second direction 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 first operation, and a second combination group of measurements of a component in a first direction and a component in a second direction 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 second operation. The figure may include a first line corresponding to the first combination group and a second line corresponding to the second combination group.
[0010] In any of the estimation devices, the update unit may update the reference information by enlarging, reducing, or moving the figure on the coordinate system to align a predetermined feature point on the figure with any of the coordinate values indicated by the measurement values of the multiple first direction components and the measurement values of the multiple second direction components measured by the at least one magnetic sensor.
[0011] In any of the estimation devices, the predetermined feature points on the figure may include a point where a component of the first axis is maximum or minimum, and a point where a component of the second axis is maximum or minimum.
[0012] In any of the estimation devices, the reference information may be represented by respective predetermined fit functions indicating a change in at least one measurement value of at least one directional component of the at least one magnetic sensor according to a position or an attitude of the second part relative to the first part, and the update unit may update the reference information by adjusting a particular coefficient of each of the predetermined fit functions based on a correlation with at least two measurement values of the at least one directional component measured by the at least one magnetic sensor.
[0013] In any of the estimation devices, the movable mechanism may enable 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. The update unit may not update the reference information when the figure cannot be aligned to a predetermined degree or higher on coordinate values indicated by each of the measurement values of a plurality of first direction components and a plurality of second direction components measured by the at least one magnetic sensor during the first operation or the second operation by performing at least one of enlarging, reducing, and moving the figure on the coordinate system.
[0014] 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.
[0015] 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 for changing at least one of a position and an orientation of the second part 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 a position or an orientation of the second part relative to the first part at the first time point based on at least one measurement value of at least one directional component measured by the at least one magnetic sensor at a first time point and reference information indicating at least one measurement value of at least one directional component of the at least one magnetic sensor according to the position or orientation of the second part relative to the first part; and updating the reference information based on a correlation between at least two measurement values of at least one directional component measured by the at least one magnetic sensor.
[0016] 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 a position and an orientation of the second part relative to a first part in an apparatus comprising a first part, a second part, a movable mechanism that changes at least one of a position and an orientation of the second part 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 that provides a magnetic field measured by the at least one magnetic sensor. The program causes the computer to execute the steps of: estimating a position or orientation of the second part relative to the first part at the first time based on at least one measurement value of at least one directional component measured by the at least one magnetic sensor at a first time and reference information indicating at least one measurement value of at least one directional component of the at least one magnetic sensor according to the position or orientation of the second part relative to the first part; and updating the reference information based on respective correlations between the measurement values of multiple first directional components and multiple second directional components measured by the at least one magnetic sensor, or a correlation between the measurement values of multiple first directional components measured by a first magnetic sensor of the at least one magnetic sensor and the measurement values of multiple first directional components measured by a second magnetic sensor of the at least one magnetic sensor.
[0017] 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]
[0018] [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] An example of a diagram in which measured values are plotted on a hysteresis curve every 20 degrees is shown. [Figure 8] 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 9] FIG. 10 is a diagram showing an example of data at the time of calibration at the factory, data measured after shipment, and a curve obtained by enlarging, reducing, and translating the data measured after shipment in the arrangement of the magnet section 20 and magnetic sensor 30 in FIG. [Figure 10] 1 shows an example of a flow diagram illustrating a procedure for updating reference information used to estimate the orientation of a second portion 12 relative to a first portion 11 in a device 10A. [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. 11 is a diagram showing an example of a functional block in the device 10B. [Figure 13]An example of the relationship between the position of the movable member 54 relative to the support member 52 in the X coordinate system and the measurement values of the two magnetic sensors 60a and 60b is shown. [Figure 14] An example of a combination of the measured values of the X component of the magnetic flux density by the magnetic sensor 60a and the measured values of the X component of the magnetic flux density by the magnetic sensor 60b is shown as the horizontal and vertical axes of a coordinate system. [Figure 15] 13 shows an example of a flow diagram illustrating a procedure for updating reference information used to estimate the position of a movable member 54 relative to a support member 52 in an apparatus 10B. [Figure 16] 1 illustrates an example of a hardware configuration for implementing aspects of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] 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.
[0020] 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.
[0021] The display 14 is a foldable display, for example, an organic light-emitting diode (OLED) display.
[0022] 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 the present embodiment, the hinge mechanism 16 is part of the second part 12.
[0023] 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.
[0024] Thus, in this embodiment, the first portion 11 changes its attitude relative to the second portion 12 by rotating via the hinge mechanism 16. That is, 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.
[0025] 1B is an example of an external perspective view of the device 10A in a closed state. The foldable smartphone is in a "closed state" when the angle θ between the first part 11 and the second part 12 is 0 degrees, as shown in the figure, and the first part 11 is closed relative to the second part 12.
[0026] 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".
[0027] 1C is an example of an external perspective view of device 10A in an open state. Device 10A is in an "open state" when the angle θ between first portion 11 and second portion 12 is 180 degrees, as shown in the figure, and first portion 11 is not folded relative to second portion 12.
[0028] 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."
[0029] In this manner, hinge mechanism 16 of the present embodiment enables an operation (an example of a "first operation") that changes device 10A from a "closed state" to an "open state", i.e., from a "first position" to a "second position". Hinge mechanism 16 also enables an operation (an example of a "second operation") that changes device 10A from an "open state" to a "closed state", i.e., from a "second position" to a "first position".
[0030] 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.
[0031] 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.
[0032] 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.
[0033] The magnetic sensor 30 measures a magnetic field (or magnetic flux density; 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. For example, the magnetic sensor 30 is a Hall element. The point in time at which the magnetic flux density is measured by the magnetic sensor 30 is an example of a "first point in time."
[0034] The device 10A is provided with at least one magnetic sensor 30. In particular, an example in which one magnetic sensor 30 measures magnetic flux densities in a plurality of different directions will be described below. However, the number of magnetic sensors 30 provided in the device 10A may be two or more as desired.
[0035] The estimation device 100A estimates the angle θ based on the measured value of the magnetic flux density detected by the magnetic sensor 30, and updates the reference information for estimating the angle θ. Note that the estimation of the angle θ is an example of estimating 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.
[0036] 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.
[0037] 3 is a diagram showing an example of a configuration of the estimation device 100 A. The estimation device 100 A includes a control unit 110, a storage unit 120, and a communication interface 130.
[0038] Based on the measured value of the magnetic flux density by the magnetic sensor 30 received from the communication interface 130 and the reference information stored in the storage unit 120, the control unit 110 estimates the angle θ corresponding to the measured value, and controls the device 10A to function based on the estimated angle. Furthermore, the control unit 110 updates the reference information, and controls the storage unit 120 to store the updated reference information in the storage unit 120.
[0039] 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 by at least two components of the X-axis component, the Y-axis component, and the Z-axis component of the magnetic flux density (hereinafter, these may be referred to as the X-component, the Y-component, and the Z-component, respectively).
[0040] The communication interface 130 receives the measured value of the magnetic flux density measured by the magnetic sensor 30 from the magnetic sensor 30 via a signal line. The estimation device 100A estimates the angle θ of the second portion 12 with respect to the first portion 11 based on the X-, Y-, and Z-components of the magnetic flux density and the reference information. Below, the principle by which the control unit 110 estimates the angle θ will be described with reference to Figs. 4A to 7, and then the internal configuration and functions of the control unit 110 will be described.
[0041] FIG. 4A is a diagram showing an example of the 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). This graph can be used as "reference information" showing the relationship between the angle θ and the X component and Y component of the magnetic flux density.
[0042] In the figure, the X, Y, and Z components of the magnetic flux density draw an approximately closed curve. However, the curve drawn by the X component of the magnetic flux density when transitioning from the closed state to the open state and the curve drawn by the X component of the magnetic flux density when transitioning from the open state to the closed state draw 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, Y, and Z components 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.
[0043] 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.
[0044] In the figure, a curve obtained by connecting the X and Y components of the measured value of the magnetic sensor 30 during a first operation in which the device 10A transitions from a closed state to an open state is shown as a curve 82a. On the other hand, a curve obtained by connecting the X and Y components of the measured value of the magnetic sensor 30 during a second operation in which the device 10A transitions from an open state to a closed state thereafter is shown as a curve 84a. Due to the effect of magnetic hysteresis, these curves 82a and 82b take different trajectories and reach approximately the same coordinate at their ends.
[0045] 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.
[0046] 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.
[0047] 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.
[0048] 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 approximately closed curve do not intersect except at the end points.
[0049] 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.
[0050] 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.
[0051] Fig. 5B is a diagram showing curves 82b, 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, 84a shown in Fig. 4B side by side. In the following description, the combination of curve 82a connecting the measured values in the first operation, curve 82b connecting the measured values by enlarging or reducing and translating the curve, curve 84a connecting the measured values in the second operation, and curve 84b connecting the measured values by enlarging or reducing and translating the curve, may be collectively referred to as curves 82, 84.
[0052] As shown in the figure, although there is some deviation between the curves 82a, 82b and the curves 84a, 84b, they have roughly the same outline 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 attempt, the curves of the X and Y components of the magnetic flux density can be enlarged or reduced and translated to roughly match each other.
[0053] Therefore, by using the property that the shape of the hysteresis curve (curves 82, 84) of the X-component and Y-component of the magnetic flux density is stable, the influence of the change in the magnetic field environment, such as magnetization, on the magnetic sensor 30 can be evaluated with respect to the hysteresis curve (correlation) of the X-component and Y-component of the magnetic flux density. The influence of magnetization, etc. on this hysteresis curve is evaluated, and the reference information showing the relationship between the angle θ and the X-component and Y-component of the magnetic flux density is updated to offset the influence of the magnetization, etc. By estimating the angle θ using the updated reference information, it is possible to suppress a decrease in the accuracy of the estimation of the position of the magnet unit 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", and the Y-axis direction is an example of the "second direction". As described above, in this embodiment, the correlation between the X component and the Y component of the magnetic flux density is expressed as a graphic diagram indicated by a set of coordinate values corresponding to the attitude of the second portion 12 with respect to the first portion 11, which is indicated by a combination of the measured values of the X component and the measured values of the Y component, on a coordinate system having the measured values of the component in the first direction measured by the magnetic sensor 30 as the first axis and the measured values of the component in the second direction measured by the magnetic sensor 30 as the second axis.
[0054] In this embodiment, the components of the magnetic flux density used to estimate the angle θ of the estimation device 100A are the X component and the Y component, which are components other than the Z-axis component approximately parallel to the rotation axis 18 of the hinge mechanism 16. In such a case, as shown in the figure, the hysteresis curve may draw an approximately closed curve connecting the end points of the two curves 82 and 84.
[0055] In such a case, the correlation between the X component and the Y component of the magnetic flux density includes a "first combination group" (corresponding to a combination group corresponding to one of the two curves of the hysteresis curve) of the X component measurement value and the Y component measurement value measured by the magnetic sensor 30 according to the angle θ of the second part 12 relative to the first part 11 during the first operation of the device 10A. Furthermore, the correlation includes a "second combination group" (corresponding to a combination group corresponding to the other of the two curves of the hysteresis curve) of the X component measurement value and the Y component measurement value measured by the magnetic sensor 30 according to the angle θ of the second part 12 relative to the first part 11 during the second operation. One curve 82 is an example of a "first line" corresponding to the first combination group. The other curve 84 is an example of a "second line" corresponding to the second combination group. That is, the diagram of the hysteresis curves 82 and 84 showing the correlation includes a first line corresponding to the first combination group and a second line corresponding to the second combination group.
[0056] In the hysteresis curve drawn by the combination of the X and Y components of the magnetic flux density with the X and Y components of the magnetic flux density as the coordinate axes, the curve has an angle as a parameter, and there is a correspondence between the position on the hysteresis curve and the angle θ. That is, due to the agreement of the general shapes of the different curves of the opening and closing trials, at the measurement positions where the different curves of the opening and closing trials approximately match each other, the angle θ between the first portion 11 and the second portion 12 also shows an approximately matching value.
[0057] The estimation device 100A of the present embodiment uses the diagram shown in Fig. 4A or Fig. 5A as reference information for the angle θ, and uses the hysteresis curve of Fig. 4B or Fig. 5B as a diagram showing the correlation between each component of the magnetic flux density. However, in another embodiment, the estimation device 100A may use the curves 82a and 84a as reference information for the angle θ.
[0058] 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.
[0059] 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.
[0060] 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.
[0061] 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.
[0062] 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, an estimation unit 114, and an update unit 116.
[0063] 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 the 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 estimation unit 114.
[0064] The estimation unit 114 estimates an angle θ indicating the attitude of the second part 12 relative to the first part 11 at a certain point in time based on at least one measurement value of at least one directional component of the magnetic flux density measured by the magnetic sensor 30 at a certain point in time and reference information indicating at least one measurement value of at least one directional component measured by the magnetic sensor 30 according to the attitude of the second part 12 relative to the first part 11.
[0065] The update unit 116 updates reference information about the shape of a figure (a figure shown in a graph showing the relationship between the measured values of each component of magnetic flux density and the angle θ that the second portion 12 makes with respect to the first portion 11) stored in the storage unit 120, based on the correlations between the measured values of multiple X components and the measured values of multiple Y components of the magnetic flux density (or magnetic field) measured by the magnetic sensor 30. That is, the control unit 110 not only estimates the angle indicating the attitude of the second portion 12 with respect to the first portion 11, but also updates the reference information stored in the storage unit 120 using the correlations between the multiple measured values.
[0066] In particular, the update unit 116 may perform at least one of enlarging or reducing, and moving the figure of the reference information on the X-component and Y-component of the measured value of the magnetic flux density on the X-Y coordinate system, thereby aligning it on the coordinate values indicated by the measured values of the X-component and Y-component, respectively. The update unit 116 may update the reference information based on the figure that has been enlarged, reduced, and moved.
[0067] As an example, the update unit 116 may perform alignment by enlarging or reducing the graphic, and / or moving the graphic, and update the reference information based on the correlation determined by the graphic after the alignment.
[0068] As another example, the update unit 116 may perform alignment by at least one of enlarging or reducing the figure and moving it, and update the reference information based on information on the shape of the figure before alignment and transformation parameters related to the alignment with the enlarging or reducing and moving the figure. The transformation parameters indicate at least one of the enlargement or reduction ratio of the figure when alignment is performed, and the amount of movement in the X-axis direction and the Y-axis direction. Updating the reference information includes updating the transformation parameters.
[0069] In this case, the update unit 116 may perform a transformation of enlarging or reducing the figure and aligning the movement by aligning the measurement value with the original figure. Therefore, the update unit 116 may update the reference information by correcting the X component and the Y component of the measurement value of the magnetic flux density to be estimated according to the transformation parameter. The update unit 116 may update the reference information based on the shape of the figure and the transformation parameter for correcting the measurement value to be estimated. With any of these reference information, the estimation unit 114 can estimate the angle θ of the second portion 12 with respect to the first portion 11 based on the combination of the X component and the Y component of the magnetic flux density and the reference information.
[0070] This enables the estimation unit 114 to estimate the angle more accurately in the next measurement by the magnetic sensor 30, even if the figure drawn by the combination of the measured values of the X component and the Y component of the magnetic flux density is affected by a detection error of the sensor, a change in the external environment, or hysteresis. That is, the control unit 110 can calibrate the reference information stored in the memory unit 120 to estimate the angle θ more accurately in a new measurement of the magnetic flux density (or magnetic field) by the magnetic sensor 30 accompanying a new opening / closing operation of the device 10A.
[0071] The updating of the reference information in the updating unit 116 may be performed based on a plurality of X-component measurement values and a plurality of Y-component measurement values during at least a portion of at least one of an operation (first operation) in which the device 10A goes from a closed state to an open state, or an operation (second operation) in which the device 10A goes from an open state to a closed state. That is, the updating unit 116 may update the reference information indicating the X-component and Y-component measurement values with respect to the angle θ based on correlations between the plurality of X-component measurement values and the plurality of Y-component measurement values measured during a portion of the first operation or the second operation.
[0072] 7 shows an example of a diagram in which measurement values are plotted on a hysteresis curve (curves 82a and 84a) at intervals of 20 degrees. The update unit 116 may set feature points at which the figure of the hysteresis curve exhibits a geometrically characteristic shape, and update the reference information based on the measurement values measured by the magnetic sensor 30 at the feature points.
[0073] When the estimation device 100A determines that a predetermined condition indicating that the angle of the second part 12 relative to the first part 11 is at an angle θ corresponding to the feature point is satisfied, the estimation device 100A may update the reference information based on a correlation between the measurement value of the X component corresponding to each of the feature points and the measurement value corresponding to the Y component. When the device 10A includes an inertial measurement unit (IMU), the estimation device 100A may determine that the predetermined condition is satisfied when the measurement value measured by the IMU satisfies the condition of the measurement value when the angle of the second part 12 relative to the first part 11 reaches the angle θ corresponding to the feature point.
[0074] Alternatively, the estimation device 100A may determine that the predetermined condition is satisfied when a user issues a predetermined instruction to the device 10A. The estimation device 100A may determine that the predetermined condition is satisfied when the device 10A executes a predetermined operation that allows determination that the angle of the second part 12 relative to the first part 11 reaches the angle θ corresponding to the feature point. The estimation device 100A may determine that the predetermined condition is satisfied when, for example, it detects that the power of the display has been turned on or off.
[0075] The number of feature points used for updating the reference information may be two or more. For example, the estimation device 100A calibrates the reference information using two points, a feature point corresponding to a closed state (θ=0 degrees, first attitude) and a feature point corresponding to an open state (θ=180 degrees, second attitude). In this manner, the update unit 116 may update the reference information based on the correlation between the measured values of the X component and the Y component measured by the magnetic sensor 30 when the second part 12 is in the first attitude with respect to the first part 11, or the correlation between the measured values of the X component and the Y component when the second part 12 is in the second attitude with respect to the first part 11.
[0076] In this example, the feature point corresponding to the closed state (θ=0 degrees, first attitude) and the feature point corresponding to the open state (θ=180 degrees, second attitude) are feature points that can be detected with a certain degree of accuracy by using, for example, an inertial measurement unit (IMU) as described above. 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. Therefore, the IMU can detect the switching between the first operation in which the device 10A transitions from the closed state to the open state and the second operation in which the open state transitions to the closed state. In the device 10A having such an IMU, the feature point at the angle θ=0 degrees and the feature point at the angle θ=180 degrees may be used.
[0077] Furthermore, when at least two such feature points are used, the feature points may be the points where the X-axis component is maximum or minimum, and the points where the Y-axis component is maximum or minimum. The values of the angle θ corresponding to these two feature points depend on the relative positions of the magnet unit 20 and the magnetic sensor 30. Therefore, these two feature points do not necessarily coincide with the point where θ=0 degrees corresponds to the closed state and the point where θ=180 degrees corresponds to the open state.
[0078] The extraction of feature points and the update of reference information in the estimation device 100A may be performed for the entire trajectory of the hysteresis curve of the X-component and Y-component of the magnetic flux density, or may be performed for a part of the trajectory. For example, the estimation device 100A treats the first line (curve 82) and the second line (curve 84) of the hysteresis curve of the X-component and Y-component of the magnetic flux density as separate figures.
[0079] As a result, the estimation unit 114 estimates the angle θ using the multiple X-component measurement values or Y-component measurement values of the magnetic sensor 30 on the first line, and the update unit 116 updates the reference information based on the shape of the first line. Similarly, the estimation unit 114 estimates the angle θ using the multiple X-component measurement values or Y-component measurement values of the magnetic sensor 30 on the second line, and the update unit 116 updates the reference information based on the shape of the second line.
[0080] The update unit 116 may perform at least one of enlarging, reducing, and moving the figure showing the correlation between the multiple components of the magnetic flux density, to align multiple predetermined feature points on the figure with any of the coordinate values indicated by the measured values of the X component and the Y component measured by the magnetic sensor 30. The update unit 116 may update the reference information based on the figure obtained by this alignment.
[0081] When such feature points are appropriately set, the estimation device 100A of the present embodiment can accurately estimate the attitude of the second part 12 relative to the first part 11 based on the measurement value of the magnetic sensor 30 even if the device 10A does not have an IMU. The configuration in which the device 10A does not have an IMU reduces the installation area of the estimation device 100A in the device 10A, and also contributes to reducing the manufacturing cost. Furthermore, since the device 10A can execute the angle θ using only one type of magnetic sensor 30, the device 10A does not need to include a configuration for matching the sensor data of the IMU and the sensor data of the magnetic sensor 30.
[0082] 8 is a diagram showing another example of the magnetic flux density according to the angle θ between the first portion 11 and the second portion 12, detected by the magnetic sensor 30. This embodiment is common to the embodiments of FIGS. 1A to 7 in that the magnet section 20 is disposed in one of the first portion 11 and the second portion 12, and the magnetic sensor 30 is disposed in the other of the first portion 11 and the second portion 12. However, since the relative position of the magnetic sensor 30 with respect to the magnet section 20 is different, a graph with the angle θ on the horizontal axis and the X, Y, and Z components of the magnetic flux density on the vertical axis has a different way of changing values and a different range of values from the embodiments of FIGS. 1A to 7.
[0083] Fig. 9 is a diagram showing an example of data at the time of calibration at the factory, data measured after shipment, and curves obtained by enlarging or reducing and translating the data measured after shipment, in the arrangement of the magnet section 20 and magnetic sensor 30 in Fig. 8. In the figure, a curve 90 connecting the data at the time of calibration at the factory is shown by a dashed line, and a curve 92 connecting the data measured after shipment and a curve 94 obtained by enlarging or reducing and translating the data measured after shipment are shown by solid lines.
[0084] When measuring data measured after the magnetic sensor 30 was shipped, the device 10A was changed from a closed state (θ=0 degrees) to an open state (θ=180 degrees), and the device 10A was changed from an open state (θ=0 degrees) to a closed state (θ=180 degrees). However, in the curve 92 shown in the figure, the device 10A did not actually reach θ=0 degrees and θ=180 degrees, and data in the case where the device turned back at an angle on the way (for example, data from θ=20 degrees to θ=160 degrees, and data from θ=160 degrees to θ=20 degrees) is shown.
[0085] Curve 94, which is obtained by enlarging, reducing, and translating curve 92, has a different curvature and is misaligned with curve 90, which connects data obtained at the time of calibration at the factory. In particular, when the feature points include two end points indicating an open state and a closed state, and the end points are not true end points and a point in the middle of opening or closing is mistakenly determined to be an end point, it may not be possible to align curve 94 and curve 90 even if curve 92 is enlarged, reduced, and translated. Even if estimation unit 114 estimates angle θ using such measured values, the estimated value of angle θ may not be accurate, and when update unit 116 updates reference information using such measured values, the updated reference information may not be appropriate as reference information to be used by estimation unit 114 for the next estimation.
[0086] To prevent this, the update unit 116 of the present embodiment may determine whether to update the reference information based on the degree of agreement between a curve 92 connecting the measured values and a figure obtained by enlarging or reducing and translating a figure (curve 90) showing the correlation, or the degree of agreement between a curve 94 obtained by enlarging or reducing and translating a curve 92 connecting the measured values shown in the figure and the figure showing the correlation (curve 90). The update unit 116 may, for example, compare the curve and the figure and determine whether to update the update information based on whether the sum of the distances between the feature points is equal to or greater than a predetermined threshold (corresponding to a case where the degree of agreement is low) or less than the threshold (corresponding to a case where the degree of agreement is high). As another example, the number of feature points having a distance equal to or greater than a predetermined threshold may be used as the predetermined degree of agreement, and it may be determined that the degree of agreement is high when the number of feature points having a distance equal to or greater than the threshold is small, and that the degree of agreement is low when the number of feature points having a distance equal to or greater than the threshold is large.
[0087] In this way, the update unit 116 performs at least one of enlarging, reducing, and moving the figure on the XY coordinate system to align the figure with the measured values of the X component and the Y component measured by the magnetic sensor 30 during, for example, a first operation from a closed state to an open state or a second operation from an open state to a closed state. The update unit 116 may determine whether or not this alignment is possible with a degree of agreement equal to or higher than a predetermined degree.
[0088] The update unit 116 may perform a process of updating the reference information stored in the storage unit 120 when alignment is possible with the degree of coincidence or higher, and not updating the reference information stored in the storage unit 120 when alignment is less than the degree of coincidence. In this way, when an end point is erroneously detected, the update unit 116 of this embodiment determines that such a measurement value is an outlier and does not update the reference information.
[0089] Therefore, the estimation unit 114 can accurately estimate the angle θ based on appropriate reference information that takes into account the influence of magnetization, etc. As a result, the estimation device 100A can prevent deterioration in the estimation accuracy of the angle θ due to erroneous extraction of feature points.
[0090] 10 shows an example of a flow diagram illustrating a procedure for updating reference information used in device 10A to estimate the orientation of second portion 12 relative to first portion 11. The update procedure includes steps S102 to S114.
[0091] The acquisition unit 112 receives the measured values 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 (S102). The estimation unit 114 identifies a correlation diagram indicated by a combination of the X-component and the Y-component of the magnetic flux density based on the acquired reference information. Furthermore, the estimation unit 114 identifies, among the multiple measurement values, a measurement value corresponding to a feature point on the diagram indicating the correlation based on the combination of the X-component measurement value and the Y-component measurement value measured by the magnetic sensor 30 and the correlation indicating the combination of the X-component measurement value and the Y-component measurement value (S104).
[0092] Next, the update unit 116 aligns the figure so that the measurement values identified as the measurement values corresponding to the feature points are located at coordinates on the figure obtained by enlarging, reducing, and translating the figure indicating the correlation (S106). As already described, the update unit 116 may enlarge, reduce, and / or translate the curve connecting the measurement values to align it with the figure indicating the correlation, and derive transformation parameters indicating the enlargement or reduction ratio and the amount of movement in the X-axis and Y-axis directions when the alignment is performed.
[0093] The update unit 116 derives the degree of match between the coordinate values of the feature points and the enlarged, reduced, and translated figure (S108). The update unit 116 determines whether the derived degree of match is equal to or greater than a predetermined threshold or is less than the threshold (S110).
[0094] If the degree of agreement is equal to or greater than the threshold, the update unit 116 updates the reference information indicating the measurement values of the X- and Y-components for the angle θ based on the transformation parameters indicating the enlargement or reduction ratio and the amount of movement in the X- and Y-axis directions when the alignment was performed (S112). That is, the update unit 116 updates the measurement values of the X- and Y-components for the angle θ indicated in the reference information according to the enlargement or reduction ratio and the amount of movement in the X- and Y-axis directions, respectively. If the degree of agreement is less than the threshold, the update unit 116 does not update the reference information based on the transformation parameters (S116).
[0095] In the present embodiment, an example has been described in which the update unit 116 updates the reference information for estimating the angle θ indicating the attitude of the second portion 12 relative to the first portion 11 using the correlation between the measured value of the X component and the measured value of the Y component measured by one magnetic sensor 30. However, in the case where the device 10A includes a plurality of magnetic sensors 30, the update unit 116 may update the reference information for estimating the angle θ indicating the attitude of the second portion 12 relative to the first portion 11 using the correlation between the measured value of the X component measured by one magnetic sensor 30 of the plurality of magnetic sensors 30 and the measured value of the X component measured by another magnetic sensor 30 of the plurality of magnetic sensors 30. Alternatively, the estimation unit 114 may update the reference information for estimating the angle θ indicating the attitude of the second portion 12 relative to the first portion 11 using the correlation between the measured value of the X component measured by one magnetic sensor 30 of the plurality of magnetic sensors 30 and the measured value of the Y component measured by another magnetic sensor 30 of the plurality of magnetic sensors 30.
[0096] The embodiment in which the device 10 is the device 10A that is a foldable terminal has been described above. In the following, an embodiment in which the device 10 is the device 10B that is an extendable terminal will be described.
[0097] The configuration of device 10B will be described with reference to Fig. 11A to Fig. 12. Fig. 11A is a diagram showing an example of a top view of the exterior of device 10B, and Fig. 11B is a diagram showing another example of a top view of the exterior of device 10B. Fig. 12 is a diagram showing an example of functional blocks of device 10B according to this embodiment.
[0098] 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.
[0099] 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."
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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."
[0104] 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.
[0105] In this embodiment, an example in which the device 10B includes two magnetic sensors 60a and 60b will be described. However, 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 as many magnetic sensors 60 as necessary to estimate 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, 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."
[0106] 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.
[0107] 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.
[0108] 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.
[0109] 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.
[0110] 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.
[0111] 13 and 14, the principle of estimating the position of the movable member 54 relative to the support member 52 by acquiring reference information from the measurement values measured by the magnetic sensor 60 will be described. Fig. 13 shows an example of the relationship between the position of the movable member 54 in the X coordinate system relative to the support member 52 and the measurement values of the two magnetic sensors 60a, 60b when the movable member 54 moves along a predetermined direction relative to the support member 52.
[0112] The curves drawn by the magnetic sensors 60a and 60b satisfy the fit function given by the following equation.
number
number
number
[0113] Therefore, by adjusting the variable σ, the estimation device 100 can estimate the position of the movable member 54 relative to the support member 52 from the measurement values of the magnetic sensors 60a, 60b in the section in which the magnetic sensors 60a, 60b respond.
[0114] FIG. 14 is a diagram showing an example of the relationship between the combinations of the measured values of the X component of the magnetic flux density by the magnetic sensor 60a and the measured values of the X component of the magnetic flux density by the magnetic sensor 60b, with the horizontal and vertical axes of the coordinate system representing the combinations.
[0115] The geometric characteristics of this correlation do not change even when the drive control unit 150 drives the movable mechanism 80 to move the movable member 54 at a non-uniform speed in the X direction relative to the support member 52, when the drive direction deviates from the X direction, or when the magnet unit 70 and the magnetic sensor 60 are affected by magnetization due to a magnetic field in the external environment, etc. When the variable σ changes, the curve showing the relationship between these combinations shifts.
[0116] Curve 95a shows the relationship between the measured value of the X component of the magnetic flux density by magnetic sensor 60a and the measured value of the X component of the magnetic flux density by magnetic sensor 60b when the variable σ is a reference variable σ0. Curve 95a shows the relationship between the measured values measured before shipment from the factory, for example.
[0117] In the figure, three measured values 96a, 96b, and 96c at positions in the X direction are shown. The measured values 96a, 96b, and 96c show a combination relationship between the measured value of the X component of the magnetic flux density by the magnetic sensor 60a after shipment from the factory and the measured value of the X component of the magnetic flux density by the magnetic sensor 60b. The curve 95b shows a curve obtained by shifting the curve 95a so as to pass through the measured values 96a, 96b, and 96c. The shift amount from the curve 95a to the curve 95b corresponds to the change amount of the variable σ. Therefore, the update unit 116 may update the variable σ by multiplying the reference variable σ0 by a coefficient predetermined according to the shift amount.
[0118] The storage unit 120 may store, for each variable σ having a different value, a combination relationship between the measured values of the X-component of the magnetic flux density by the magnetic sensor 60a and the measured values of the X-component of the magnetic flux density by the magnetic sensor 60b, such as the curve 95a and the curve 95b. In this case, the update unit 116 may identify, from the combination relationships stored in the storage unit 120, a combination relationship that has the highest degree of agreement with a combination relationship between a plurality of measured values of the X-component of the magnetic flux density by the magnetic sensor 60a after shipment from the factory and a plurality of measured values of the X-component of the magnetic flux density by the magnetic sensor 60b, and update the variable σ by replacing the current variable σ with the variable σ corresponding to the identified combination relationship.
[0119] Therefore, the estimation device 100B can specify the value of the variable σ by specifying a shift position of the correlation curve using several measured values of the magnetic sensors 60a and 60b, or by specifying a coefficient for multiplying the values in a table showing the coordinate values of the correlation by a specific scale. Alternatively, the estimation device 100B can specify the value of the variable σ by specifying a combination of relationships that match several measured values of the magnetic sensors 60a and 60b from among combinations of relationships that are predetermined for each magnitude of the variable σ. The estimation device 100B can adjust the fit function based on the specified σ, and estimate the position of the movable member 54 in the X direction relative to the support member 52 in the section where the magnetic sensors 60a and 60b react according to the adjusted fit function.
[0120] The fit function of Equation 1 in the X direction and the combination of the X components of the measured values of the magnetic sensors 60a, 60b in the fit function are used as reference information. The estimation device 100B updates the value of the variable σ, which is a coefficient in the fit function, based on the correlation of the measured values of the X components of the magnetic flux density measured by the magnetic sensors 60a, 60b with respect to the relationship of the combination of the multiple magnetic sensors 60a, 60b that are not affected by magnetization. This allows the estimation device 100B to accurately estimate the position of the movable member 54 in the X direction relative to the support member 52 in the section where the multiple magnetic sensors 60a, 60b react, according to the fit function adjusted with the updated variable σ.
[0121] The function and configuration of the estimation device 100B will be described with reference to Fig. 12 again. The estimation device 100B includes a communication interface 130, a storage unit 120, an acquisition unit 102, an estimation unit 104, and an update unit 106.
[0122] 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.
[0123] The storage unit 120 stores reference information for estimating the position of the movable member 54 relative to the support member 52 from the measurement values of the multiple magnetic sensors 60 including the magnetic sensors 60a and 60b. Specifically, the reference information includes a fit function that the multiple magnetic sensors 60 mutually satisfy.
[0124] The acquisition unit 102 receives measurement values of magnetic flux density (or magnetic field) measured by the multiple magnetic sensors 60 from the communication interface 130, and acquires reference information from the storage unit 120. The acquisition unit 102 transmits the acquired measurement values of the multiple magnetic sensors 60 and the reference information to the estimation unit 104.
[0125] The estimation unit 104 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 components measured by the multiple magnetic sensors 60 and reference information indicating the combination of the measurement values of the X components measured by the multiple magnetic sensors 60. As already described, in this embodiment, the reference information may be the fit function of Equation 1 and the combination of the X components of the measurement values of the magnetic sensors 60a and 60b in the fit function.
[0126] The update unit 106 updates reference information represented by a fit function corresponding to a variable σ stored in the storage unit 120, based on correlations between multiple X-component measurement values measured by the magnetic sensor 60a and multiple X-component measurement values measured by the magnetic sensor 60b in the magnetic flux density (or magnetic field) measured by the magnetic sensor 60. The update unit 106 may update the reference information by adjusting the variable σ, which is a coefficient appearing in a predetermined fit function for the magnetic sensor 60.
[0127] Here, the update unit 106 may update the reference information represented by the fit function according to the variable σ based on the correlation between the multiple X-component measurements measured by the magnetic sensor 60a and the multiple X-component measurements measured by the magnetic sensor 60b during at least a part of at least one of the first and second operations. For example, the update unit 106 may update the reference information represented by the fit function according to the variable σ based on the correlation between the multiple X-component measurements measured by the magnetic sensor 60a and the multiple X-component measurements measured by the magnetic sensor 60b during a part of the first or second operation. The update unit 106 may update the reference information represented by the fit function according to the variable σ based on the correlation between the multiple X-component measurements measured by the magnetic sensor 60a and the multiple X-component measurements measured by the magnetic sensor 60b during a turning-around portion between the first and second operations. Furthermore, the updating unit 106 may update the reference information expressed by a fit function corresponding to the variable σ, based on a correlation between the X-component measurement value measured by the magnetic sensor 60a and the X-component measurement value measured by the magnetic sensor 60b when the movable member 54 is in a first position relative to the support member 52, and a correlation between the X-component measurement value measured by the magnetic sensor 60a and the X-component measurement value measured by the magnetic sensor 60b when the movable member 54 is in a second position relative to the support member 52.
[0128] 15 shows an example of a flow diagram illustrating a procedure for updating reference information used to estimate the position of the movable member 54 (second part 12) relative to the support member 52 (first part 11) in the device 10B. The update procedure includes steps S202 to S206.
[0129] The acquisition unit 102 receives the measured values of magnetic flux density (or magnetic field) measured by the multiple magnetic sensors 60 from the communication interface 130 (S202). The update unit 106 shifts a reference curve (for example, the curve 95a in FIG. 14) showing the correlation between the combinations of the measured values so as to match the measured values of magnetic flux density measured by the multiple magnetic sensors 60 (for example, the measured values 96a, 96b, and 96c), and identifies the amount of shift. Furthermore, the update unit 106 multiplies the reference variable σ0 by a coefficient that is predetermined according to the amount of shift, thereby identifying a variable σ that is a coefficient of the fit function (S204). Alternatively, the update unit 106 may identify a combination relationship that is most similar to the combination relationship of the measured values of magnetic flux density measured by the multiple magnetic sensors 60 from among the combination relationships stored in the storage unit 120, and replace the current variable σ with the variable σ that corresponds to the identified combination relationship, thereby identifying the variable σ that is a coefficient of the fit function. The update unit 106 adjusts the variable σ, which is a coefficient of the fit function, to update the reference information (S206).
[0130] This provides a method for estimating the precise position of the movable member 54 relative to the support member 52 using multiple magnetic sensors 60a, 60b, which is inexpensive and can be calibrated against the influence of external magnetic fields without using an IMU or the like.
[0131] In the present embodiment, an example has been described in which the update unit 106 updates the reference information of the measured values by the multiple magnetic sensors 60a and 60b for the position of the movable member 54 relative to the support member 52, using the correlation between the measured values of the X components of the magnetic fields measured by the magnetic sensors 60a and 60b. However, the update unit 106 may update the reference information for estimating the position of the movable member 54 relative to the support member 52, using the correlation between the measured values of the magnetic fields in different axial directions measured by the multiple magnetic sensors 60a and 60b. For example, the update unit 106 may update the reference information for estimating the position of the movable member 54 relative to the support member 52, using the correlation between 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 60b. The update unit 106 may update the reference information for estimating the position of the movable member 54 relative to the support member 52, using the correlation between the measured values of the X components of the magnetic field measured by one magnetic sensor 60a and the measured values of the Y components of the magnetic field measured by one magnetic sensor 60a.
[0132] 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 10 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. Providing a plurality of magnetic sensors 60 in the device 10B makes it easier for the estimation unit 104 to accurately estimate the position of the movable member 54 with respect to the translational movement in the XYZ space relative to the support member 52.
[0133] 16 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.
[0134] 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.
[0135] 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.
[0136] 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.
[0137] 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.
[0138] 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.
[0139] The above-described programs or software modules may be stored in a computer-readable storage medium on or near 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 can be used as a computer-readable storage medium, thereby providing the programs to the computer 1200 via the network.
[0140] 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.
[0141] 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.
[0142] 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.
[0143] 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]
[0144] 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,90,92,94,95 curve 96 Measurements 100 Estimator 102,112 Acquisition Department 104,114 Estimation part 106,116 update section 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 in an apparatus including: a first part; a second part; a movable mechanism for changing at least one of a position and an orientation of the second part relative to the first part; at least one magnetic sensor provided on one of the first part and the second part; and a magnet part provided on the other of the first part and the second part, the magnet part 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 at least one measurement value 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 one measurement value of the at least one directional component of the at least one magnetic sensor according to the position or orientation of the second part relative to the first part; an update unit that updates the reference information based on a correlation between at least two measured values of at least one directional component measured by the at least one magnetic sensor; An estimation device comprising:
2. the movable mechanism enables a first operation of changing the second portion from a first position or a first attitude to a second position or a second attitude relative to the first portion, and a second operation of changing the second portion from the second position or the second attitude to the first position or the first attitude relative to the first portion; 2. The estimation device according to claim 1, wherein the update unit updates the reference information based on a correlation between at least two measurement values of the at least one directional component measured by the at least one magnetic sensor during at least a portion of at least one of the first operation and the second operation.
3. 3. The estimation device of claim 2, wherein the update unit updates the reference information based on a correlation between at least two measurement values of the at least one directional component measured by the at least one magnetic sensor when the second part is at the first position or the first attitude relative to the first part, or a correlation between at least two measurement values of the at least one directional component measured by the at least one magnetic sensor when the second part is at the second position or the second attitude relative to the first part.
4. the correlation is represented by a graphic diagram indicated by a set of coordinate values corresponding to a position or attitude of the second part relative to the first part, the position or attitude being indicated 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 on a coordinate system having a first axis and a second axis, respectively, where 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 are used; 2. The estimation device according to claim 1, wherein the update unit updates the reference information by aligning the figure on coordinate values indicated by the measurement values of a plurality of first direction components and a plurality of second direction components measured by the at least one magnetic sensor by at least one of enlarging, reducing, and moving the figure on the coordinate system.
5. the movable mechanism enables a first operation of changing the second portion from a first position or a first attitude to a second position or a second attitude relative to the first portion, and a second operation of changing the second portion from the second position or the second attitude to the first position or the first attitude relative to the first portion; The correlation is a first combination group of first direction component measurements and second direction component measurements 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 motion; and a second combination group of first direction component measurements and second direction component measurements 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; and Including, The estimation device according to claim 4 , wherein the graphic includes a first line corresponding to the first combination group and a second line corresponding to the second combination group.
6. 5. The estimation device according to claim 4, wherein the updating unit updates the reference information by aligning a predetermined feature point on the figure with any of coordinate values indicated by the measurement values of the multiple first direction components and the multiple second direction components measured by the at least one magnetic sensor by performing at least one of enlarging, reducing, and moving the figure on the coordinate system.
7. The estimation device according to claim 6 , wherein the predetermined feature points on the figure include a point at which a component of the first axis is maximum or minimum, and a point at which a component of the second axis is maximum or minimum.
8. the reference information being expressed by respective predetermined fit functions that indicate a change in at least one measurement value of at least one directional component of the at least one magnetic sensor depending on a position or an orientation of the second part relative to the first part; 2. The estimation device according to claim 1, wherein the update unit updates the reference information by adjusting specific coefficients of each of the predetermined fit functions based on a correlation between at least two measurement values of at least one directional component measured by the at least one magnetic sensor.
9. the movable mechanism enables a first operation of changing the second portion from a first position or a first attitude to a second position or a second attitude relative to the first portion, and a second operation of changing the second portion from the second position or the second attitude to the first position or the first attitude relative to the first portion; 5. The estimation device according to claim 4, wherein the update unit does not update the reference information when the figure cannot be aligned to a coordinate value indicated by each of the measurement values of a plurality of first direction components and a plurality of second direction components measured by the at least one magnetic sensor during the first movement or the second movement by performing at least one of enlarging, reducing, and moving the figure on the coordinate system to a degree of similarity greater than or equal to a predetermined degree.
10. An estimation device according to any one of claims 1 to 9; The first portion; and The second portion; and The movable mechanism; An apparatus comprising:
11. 1. 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 for changing at least one of a position and an orientation of the second part relative to the first part; at least one magnetic sensor provided on one of the first part and the second part; and a magnet part provided on the other of the first part and the second part, the magnet part providing a magnetic field measured by the at least one magnetic sensor, the method comprising: estimating a position or orientation of the second part relative to the first part at the first time point based on at least one measurement value 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 one measurement value of the at least one directional component of the at least one magnetic sensor depending on the position or orientation of the second part relative to the first part; updating the reference information based on a correlation of at least two measurements of at least one directional component measured by the at least one magnetic sensor; The estimation method comprises:
12. A program for causing a computer to function as an estimation device that estimates at least one of a position and an orientation of the second part relative to a first part in an apparatus including: a first part; a second part; a movable mechanism that changes at least one of a position and an orientation of the second part 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 that is provided on the other of the first part and the second part and provides 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 at least one measurement value 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 one measurement value of the at least one directional component of the at least one magnetic sensor depending on the position or orientation of the second part relative to the first part; updating the reference information based on a correlation of at least two measurements of at least one directional component measured by the at least one magnetic sensor; A program for causing the computer to execute the above.
