Embodiments of the present invention concern a method of controlling movements and orientation of a cursor, on a display surface, for example a plane surface such as a television screen, a PC screen, etc. The control of the displacement of a cursor on a non-planar display surface of arbitrary shape is also possible through the method and the device of the invention. An assembly of coordinated flat screens can for example constitute a non-plane surface (sphere, cylinder, etc.). The display surface is endowed with a metric system of coordinates. A user equipped with a pointer instrumented with means for measuring motions and with control buttons can thus for example control, by way of the displacement in 3D space of the instrumented pointer, the displacement, and/or the position and/or the orientation of a cursor on a display surface which displays a graphical interface of one or more software applications. The control pointer can thus trigger the execution of programmed functions chosen through the position and/or the displacement and/or the orientation of the pointer and/or through the use of controls provided for this purpose on the pointer.
Devices of this nature are intended to substitute for remote controls in which the commands do not make it possible to continuously control a cursor on the display surface and consist, of a list of codes associated with the buttons pressed by the user which are transmitted to the equipment to be controlled via an infrared, or more recently radioelectric, link.
One of the first devices of this type was disclosed by patent U.S. Pat. No. 5,440,326. In this device, gyroscopes afford two measurements of angular velocities (in terms of pitch and yaw) which are converted into cursor commands in relation to two axes of the display surface. However, this type of device exhibits limitations in its ergonomics, since it is based only on the rate of rotation of the pointer in relation to 2 axes, measured in the frame of the pointer, and not on he orientation of the device in the display frame. For example, these measurements are sensitive to the orientation in which the pointer is held by the user (the 3rd angle, roll or tilt, not measured). Indeed, when the user holds the remote control with an angle of twist of their wrist (called roll), will see the cursor move in an undesired direction. Moreover, the limitation to two measurement axes renders the use of the remote control complex for significant angles and the ergonomics of the pointing is then affected thereby.
To combat these effects, a stabilization of the measurements can be performed by mechanical means, the gyroscopes being mounted on gimbals. However, this mechanical stabilization is on the one hand limited to small angles of roll (mechanical stops) and is imperfect also because of the inertia of the gimbals. Furthermore, such a correction is not applicable to miniature devices.
These drawbacks may to some extent be overcome by devices in which the measurements of rate of rotation in yaw and pitch provided by miniature gyrometers are corrected for the angle of roll by the measurements of an accelerometer using a two-dimensional rotation matrix. Devices of this nature are notably disclosed by U.S. Pat. No. 5,598,187 (Ide) and U.S. Pat. No. 7,158,118 (Liberty). In devices of this nature, the various angles must actually be computed on the basis of the measurements of different sensors. In the international application published under No. WO2009/156476 (Mathews) belonging to the applicant of the present application, a correction is applied without prior computation of the angle of roll. The roll angle correction in fact relies on a principle which is fundamentally imperfect to the extent that the accelerometer is also sensitive to the acceleration due to the motion, thereby inevitably perturbing the estimation of the angle of roll and giving an inaccurate effect on the trajectory of the cursor on the display surface. Finally, certain orientations of the pointer (near vertical, for example) no longer make it possible to compute the angle of roll, since the latter is no longer measured by the accelerometer. The roll compensation function therefore introduces on this occasion defects which are not present initially in the ergonomics of the control of the cursor by motion.
A way of overcoming the drawback of separate estimation of the angles has been disclosed by the international application published under the No. WO2009/156499, one of the proprietors of which is the proprietor of the present application, in which an extended Kalman filter is applied to carry out joint estimation of the state variables by using a state model comprising a first-order differential equation. However, the implementation of this filtering is limited to a single mode of control of the movement of the cursor as a function of the movement of the pointer and is also greedy in terms of computationpower.
Patent application US2004/070564 discloses a device for pointing on a screen which computes the displacements of a cursor on said screen on the basis of the coordinates of the intersection of a vector carried by the pointer with the screen. Patent U.S. Pat. No. 7,102,616 discloses a device for pointing on a screen instrumented with sources in communication with said pointer which computes the displacements of the pointer on the basis of the angular velocity of the pointer in the frame of the screen. None of these documents discloses modalities for projecting the position and/or the orientation of the pointer on the cursor which are parametrizable as a function of the applicational context.
Embodiments of the invention make it possible to overcome the drawbacks of this prior art by proposing a process for computing the displacements of a cursor in the display surface (or pointed-at surface) on the basis of pointer attitude measurements projected onto a chosen intermediate surface, distinct from the display surface and, optionally, not plane.
For this purpose, an embodiment of the invention affords a method of controlling first parameters characterizing a cursor on a display surface using a movable pointer moving in space, said first parameters being chosen from a group comprising displacements, position and orientation of said cursor, said method comprising a step of determining at least one second parameter of a frame tied to the pointer, said at least one second parameter being chosen from a group comprising attitude, position and angular velocity of said frame, a vector p being tied to said frame, said method being further comprising a step of computing said first parameters by using one or more intersections of a straight line carried by said vector p with a projection surface, said projection surface being predetermined and distinct from the display surface, said computation step receiving as input at least some of said second parameters.
Advantageously, at least some of the first parameters are computed by a step of describing the projection surface established by at least one position of a point belonging to the tangent plane to said surface at the point of intersection with this surface at the point of intersection considered.
Advantageously, the description of the projection surface varies as a function of the translation of the pointer or of the context.
Advantageously, the projection surface belongs to the group of plane surfaces, cylindrical surfaces and spherical surfaces.
Advantageously, the projection surface is a vertical plane surface and a first coordinate, respectively a first displacement, of the point is computed as being equal, save for a multiplicative constant, to the tangent of the angle of yaw of the pointer, respectively to the difference of the tangents of the angles of yaw of the pointer at the end and at the start of said displacement.
Advantageously, the projection surface is a vertical plane surface and a second coordinate, respectively a second displacement, of the point is computed as being equal, save for a multiplicative constant, to the ratio of the tangent of the angle of pitch to the cosine of the angle of yaw of the pointer, respectively to the difference of the ratios of the tangent of the angle of pitch to the cosine of the angle of yaw of the pointer at the end and at the start of said displacement.
Advantageously, the projection surface is a vertical cylindrical surface and a first coordinate, respectively a first displacement, of the point is computed as being equal, save for a multiplicative constant, to the angle of yaw of the pointer at a point of the surface, respectively to the difference of the angles of yaw of the pointer at the end and at the start of said displacement.
Advantageously, the projection surface is a vertical cylindrical surface and a second coordinate, respectively a second displacement, of the point is computed as being equal, save for a multiplicative constant, to the tangent of the angle of pitch of the pointer at a point of the surface, respectively to the difference of the tangents of the angles of pitch of the pointer at the end and at the start of said displacement.
Advantageously, the projection surface is a spherical surface centered on the pointer and a first coordinate, respectively a first displacement, of the point is computed as being equal, to within a multiplicative constant, to the angle of yaw multiplied by the cosine of the angle of pitch of the pointer at a point of the surface, respectively to the difference of the angles of yaw of the pointer at the end and at the start of said displacement, multiplied by the cosine of the angle of pitch at the start of the displacement.
Advantageously, the projection surface is a spherical surface centered on the pointer and a second coordinate, respectively a second displacement of the point is computed as being equal, to within a multiplicative constant, to the angle of pitch of the pointer at a point of the surface, respectively to the difference of the angles of pitch of the pointer at the end and at the start of said displacement.
Advantageously, the orientation of the cursor is computed by projecting, along p on said surface, a vector perpendicular to vector p.
Advantageously, the rotation of a vector perpendicular to p is computed by projecting the integral of the angular velocity along the axis of the pointer or based on its orientation.
Advantageously, the computation of at least some of the first parameters is performed based on the angular velocity of the pointer measured in the frame of the sensor and on the attitude.
Advantageously, the displacement of the cursor, having two components, is computed by projecting an angular velocity vector of the pointer, whose component along vector p tied to the pointer is set to zero, and transformed into the frame tied to the earth, onto the axes (XE, YE) of the frame defining the elementary surface for the current position and orientation of the pointer, and multiplying by gain factors.
Advantageously, the displacement of the cursor, having two components, is computed by projecting an angular velocity vector of the pointer expressed in the terrestrial frame, onto the axes (XE, YE) of the frame defining a plane elementary surface and taken perpendicular to the vector p defined by the pointer, and multiplying by gain factors
Advantageously, the pointing is carried out in absolute mode.
Advantageously, the pointing is carried out in relative mode.
Advantageously, the pointing is carried out in relative mode in one direction and in absolute mode in another direction.
Embodiments of the invention also afford a system for controlling first parameters characterizing a cursor on a display surface using a pointer oriented in space toward said surface, said first parameters being chosen from a group comprising displacements, position and orientation of said cursor, said system comprising a module for determining second parameters of a frame tied to the pointer, said second parameters being chosen from a group comprising attitude, position and angular velocity of said frame; a vector p being tied to said frame, said system further comprising a module for computing said first parameters by using one or more intersections of a straight line carried by said vector p with a projection surface, said projection surface being predetermined and distinct from the display surface said computation module receiving as input at least some of said second parameters.
One of the advantages of various embodiments of the invention is that they can be implemented by using very diverse devices which provide measurements of attitude (or orientation) of the pointer.
Embodiments of the invention allow accommodating various principles of measurement of the movement of the pointer (or of the remote control) and provides the possibility of proposing various modes, for different ergonomic objectives and uses.
Moreover, various embodiments of the invention propose variants which allow taking into account devices which deliver the position parameters (translational) of the pointer in space. The cursor display parameters can be determined in terms of position (absolute mode) or of displacement (relative mode).
Furthermore, the pointing may or may not be limited to a restricted cone delimited by boundaries of the display surface, and therefore the cursor displacements limited to the display surface (control in limited/sliding mode). According to the invention, these embodiments, can be combined according to the applicational context and the available pointer position and orientation information.
The various embodiments of the present invention will be better understood with the aid of the description which follows and of the appended drawings, in which:
a, 2b and 2c represent the principle of determining the displacement parameters or position parameters of a cursor on the basis of the angles of yaw and of pitch of the direction vector carried by a pointer in a reference frame and by using a vertical plane projection surface, in an embodiment of the invention;
a, 3b and 3c represent the principle of determining the displacement parameters or position parameters of a cursor on the basis of the angles of yaw and of pitch of the direction vector carried by a pointer in a reference frame and by using a cylindrical projection surface, in an embodiment of the invention;
a, 4b and 4c represent the principle of determining the displacement parameters or position parameters of a cursor on the basis of angles of yaw and of pitch of the direction vector carried by a pointer in a reference frame and by using a spherical projection surface in an embodiment of the invention;
a, 5b and 5c represent the principle of determining the displacement parameters or position parameters of a cursor on the basis of the angles of yaw and of pitch of the direction vector carried by a pointer in a reference frame by using an arbitrary projection surface, in an embodiment of the invention;
a, 6b and 6c represent the principle of determining the displacement parameters or position parameters of a cursor on the basis of the angles of yaw and of pitch of the direction vector carried by a pointer in a reference frame by approximating a spherical projection surface by a plane surface, according to an application of the principle of
a and 10b illustrate the principle of transforming the displacements or the position or the orientation of a cursor obtained for a first type of projection surface into displacements or position for a second type of projection surface in an embodiment of the invention.
The aim of various embodiments of the invention is to provide various procedures for determining the parameters of position or of displacement of the cursor 101, 102 in a screen 100 driven by a pointing device (or pointer) in terms of position 111 or 112, the attitude (or orientation) and/or the position of the pointer being known in a reference frame tied to the display surface which is generally the earth frame (XEarth, YEarth, ZEarth). The pointer is a tool carried by the user which is positioned and oriented by the user and which allows the latter to point in a direction, and the cursor is the marking of the pointing on an object/screen, or display surface.
To determine the position and the orientation of the cursor on the screen in accordance with the motions imparted to the pointer by the user, the principle of an embodiment of the invention introduces a surface of intermediate projection, 130, of the “pointing vector” p1 (respectively p2) carried by the pointer, 111 (respectively 112). Let us note that the projection surface 130 may coincide with the display surface or be different (as is illustrated in
Various embodiments of the invention utilize the data of orientation and/or of position of a movable pointer, given in a reference frame (or often terrestrial frame) to compute the position or the displacement or the orientation of a cursor on a display screen. This method makes it possible for example to reproduce the effect of displacement of a cursor generated by a laser pointer, while making it possible to drive an application, for example by contextual menus of the position or of the orientation of the cursor on the display surface. The choice of the projection surface makes it possible to modify the relation between the displacement of the movable pointer and the displacement of the cursor on the display surface. The reference frame is tied to the display surface. The display surface generally being fixed in the terrestrial frame, this reference frame therefore generally coincides with the terrestrial frame.
The movable pointer is mapped in the reference frame with the aid of measurement means. These means provide the orientation and/or the position of the pointer in this frame. For a better understanding of an embodiment of the invention, we propose to classify the measurement means into two categories. The first utilizes only means onboard the movable pointer. It is for example possible to cite inertial and magnetic motion sensors such as accelerometers, magnetometers, gyrometers which make it possible, by combination, to provide the orientation, or indeed the position of the pointer in the reference frame. The second category comprises means which require instrumentation fixed in the reference frame. For example, optical, magnetic or electromagnetic means, sound or ultrasound means, radio means make it possible to locate the movable pointer in terms of position and/or orientation in the reference frame and they require instrumentation of the reference frame.
The method can be applied when only the movable pointer orientation data are available, in which case, the position will be assumed to be defined in an arbitrary manner with respect to the projection surface. Likewise if only position data are known, it will be possible to assume that the orientation is known in an arbitrary manner. It is generally simpler and less expensive to instrument the pointer so as to obtain the measurements of its orientation; this is therefore one of the preferred modes of implementation for this embodiment of the invention. The position of the pointer is then defined in an arbitrary manner.
The frame of the movable pointer is endowed by a vector p which demarcates the direction of pointing. The pointing vector p is therefore generally defined fixed in the frame of the movable pointer in such a way that p is directed in the direction and the natural (ergonomic) sense of pointing of the movable pointer. The orientation and/or the position of the frame of the movable pointer in the reference frame also makes it possible to provide a second data item of orientation of the movable pointer through the definition of a second vector belonging to the plane perpendicular to the vector p (for example denoted r1 in
In a so-called “absolute pointing” mode, direct use is made of the coordinates of the point 121 (for the pointer in position 111) or 122 (for the pointer in position 112) in the projection surface and optionally a transformation (150) between the projection surface and the display surface to obtain the coordinates of the cursor in the display surface. Thus, to a physical position/orientation of the movable pointer in the reference frame there corresponds one and only one position of the cursor in the display surface. The same method will be used for the orientation.
The computation of 121, 122 according to the data item regarding the position and orientation of the movable pointer can be carried out analytically for models of simple surfaces and assumptions on the position of the movable pointer, as is detailed hereinbelow. The computation of displacement of the cursor on the display surface can then be implemented directly by application of the analytical formula found. The computations set forth make it possible to cover many applications and much ergonomics. However it will also be possible to cover other cases, with other projection surfaces and/or other cases where the data regarding positions and/or orientation of the movable pointer must be taken into account. Embodiments of the invention can be generalized In these other cases. If the analytical computation is complex or impossible to conduct, for example for complex or arbitrary surfaces, it will be possible to use numerical procedures for computing intersection of straight lines with surfaces (ray tracing procedures for example). The numerical computation of intersection of the pointer with the surface can then be integrated into the cursor displacement computation. A procedure making it possible to process arbitrary surfaces is also detailed hereinbelow.
The successive orientation/positions of the movable pointer over time (for example demarcated by 111 and 112 as successive positions and orientation of the pointer over time) are thus transformed into positions/orientations of the cursor on the screen (101 corresponds to 111, and 102 corresponds to 112). This absolute mode is similar to that which can be implemented by graphical tablets, in “absolute” mode: to a position of the tip of the pen on the tablet there corresponds a position of the cursor on the screen.
In a so-called “relative pointing” mode, the position of the cursor on the screen is driven by data of successive displacements which increment its position on the display surface. This type of pointing is similar to that very widely developed for pointing devices of mouse type for computers. In an embodiment of the invention, the movable pointer takes successive positions/orientations over time.
Furthermore, two main embodiments of the invention are illustrated in detail in the subsequent description:
Moreover, it is possible to control the orientation of the cursor on the screen with the aid of the movements of the pointer, thereby making it possible to launch different functions as a function of this orientation of the cursor.
As illustrated in
The computation of the orientation of the cursor on the screen can for example be performed in the following manner:
The cursor orientation computation can also be performed by integration of the angular velocity measured on an axis.
Several physical devices and types of algorithms can be used to estimate the attitude, the angular velocity of the attitude and/or the position and/or the translation of the pointer.
It is firstly possible to use inertial devices onboard the pointer comprising combinations of accelerometers (A), of gyrometers (G) and of magnetometers (M). The accelerometers and the magnetometers make it possible to measure the orientation of the pointer with respect to a fixed vector, respectively, gravity and the terrestrial magnetic field. They are however affected by perturbations (inherent acceleration and ambient magnetic perturbations, respectively) which are preferably corrected. The gyrometers measure the inherent angular velocity of the movements of the pointer. The gyrometers are generally affected by an appreciable temporal drift which is preferably corrected regularly. These sensors can be Micro Electro Mechanical Systems (MEMS), optionally integrated, or produced in other, non-integrated, technologies. Each type of sensor can comprise one, two or three axes. In certain applications, a single type of sensor (in this case with three axes) can be used, if the perturbations or the temporal drift can be considered to be negligible so that the final data item regarding orientation, desirable for various embodiments of the invention is sufficiently precise, or be corrected without recourse to another type of sensor. In a favored manner, a combination of at least two types of sensors, AG, MG or AM will be used however.
It should be noted that these three types of sensors procure complementary information with a view to better estimation of the orientation, notably:
As regards the gyrometers, it is for example possible to use the gyrometers supplied by Analog Devices™ with reference ADXRS300™, or the ITG3200™ from Invensense™ or the gyrometers supplied by STM™.
As regards the accelerometers, it is possible to use for example accelerometers with the reference ADXL103 from Analog Devices, LIS302DL from STM. FreeScal™, Kionix™ also supply such sensors.
As regards the magnetometers, it is for example possible to use the magnetometers with the reference HMC1001™ or HMC1052 or HMC1053 from the company Honeywell™. AKM™ also supplies micromagnetometers (AK8973, AK8974, AK8976).
Various algorithms can be used to correct the perturbations and merge the signals of the various types of sensors and estimate the attitude, for example those disclosed by the international application published under the No. WO2010/007160, one of the proprietors of which is the proprietor of the present application.
As regards the modules for computing the orientation on the basis of these types of sensors, it will be possible to refer to the products from the company Movea™ or products from the co XSens™, or Intersense™ with for example the family of InertiaCube™ products.
With the help of the systems based on inertial sensors onboard the movable pointer, it is also possible to estimate the trajectory and therefore a position relative to an arbitrary starting point of the pointer.
The processing of the orientation and/or position measurements for the computation of the position of the cursor is performed in a computation module. The computation can be embedded onboard the movable pointer or offloaded to the computer tied to the display surface (for example a PC or a SetTopBox). It is possible to cite for the microprocessors, for example a Texas Instruments™ TMS320VC5509™ DSP for the most demanding applications in terms of computation time, or a 32-bit microcontroller with ARM™ core, for example one of those from the STR9™ family, notably the STR9F12FAW32™ from STM. The computation module also preferably comprises a flash memory required for storing the code to be executed and permanent data which are required therefore and a dynamic work memory.
The signals arising from the sensors or processed aboard the movable pointer are transmitted to another microprocessor, generally the one which executes the application and manages the display surface. The application is controlled by the cursor whose displacements are controlled by the pointer. Transmission can take place by radiofrequency pathway with a Bluetooth waveform and protocol or with a Wi-Fi waveform and protocol (802.11g Standard) or according to the RF4CE standard. Transmission can also be performed by infra-red pathway. The processings can be distributed in a variable manner between the microprocessor of the application platform and/or the microcontroller onboard the pointer.
To estimate the position, the attitude or the angular velocity of the orientation, it is also possible to use other systems, such as those cited hereinbelow:
a, 2b and 2c represent the transformation of the angles of yaw and of pitch of a pointer into position or displacement of a cursor, by choosing a vertical plane surface as projection surface, in an embodiment of the invention.
In the figure, it is assumed that the position of the pointer is fixed arbitrarily. In the general case it may nonetheless be variable over time. This illustration corresponds to the case, for example, where an orientation measurement is available without the position measurement. Only the orientation of the movable pointer is measured. The principle set forth remains applicable for a measured variable pointer position not arbitrarily fixed.
In the mode illustrated in
Consider the rotation matrix R (or the quaternion q) which defines the attitude of the pointer in relation to a frame tied to the earth, which here is taken as reference frame, “Earth Frame”. R is provided by the movable pointer orientation measurement device.
Consider the 3D pointer vector, p=[px py pz]T with ∥p∥=1. For the sake of simplification and by convention, it is assumed here that p coincides with the vector x of the frame tied to the pointer, this definition being non-restrictive and being able to be replaced with another appropriate definition, within the range of the person skilled in the art. In relation to the Earth Frame, p is then the first column of the matrix R.
Let (Δx, Δy), 231, 232, be the displacement of the point of intersection from 221 to 222 on the projection surface (here a vertical plane) when the pointer is displaced from the orientation p1 to the orientation p2. For the sake of simplification, without restricting the generality, in this illustration an identity transformation will be taken between the displacement of the cursor on the display surface that it is necessary to determine and the displacement of the point of intersection on the projection surface. In general, Δx is horizontal and Δy is in a vertical plane;
In the general case (when the projection surface is not plane), Δx and Δy are not necessarily straight segments but may be curvilinear distances on curve elements (for example, the arc of a circle).
Consider the two angles: φ (yaw) and θ (pitch) which are related to p
φ=A tan(py/px)]−π, π[
θ=A tan(pz/sqrt(px2+py2))]−π/2, π/2[
In
It is possible to compute the displacements Δx and Δy through the following formulae:
When the yaw or the pitch approach ±π/2 the displacement of the cursor increases in absolute terms and tends to infinity.
G is a constant which depends on the distance between the pointer and the plane and is therefore related to the arbitrary position given to the pointer. It makes it possible to adjust the proportion between the angular displacement of the pointer and the displacement of the cursor.
a, 3b and 3c represent a step of the transformation of the angles of yaw and of pitch of a pointer into motion of a cursor for a cylindrical projection surface, in an embodiment of the invention.
In the figure, it is assumed that the position of the pointer is fixed arbitrarily. In the general case it may nonetheless be variable over time. This illustration corresponds for example to the case where an orientation measurement is available without the position measurement. Only the orientation of the movable pointer is measured. The principle set forth remains applicable for a measured variable pointer position not arbitrarily fixed.
It will be assumed for the sake of simplicity that the position of the pointer is fixed arbitrarily on the axis of the cylinder. It will be easy to generalize the invention to the case of a positionally movable pointer, the principle remaining the same. Under the conditions set forth, it is possible to conduct the computation analytically.
The displacement of the cursor along the horizontal Δx, 331 is proportional to the rotation of the movable pointer according to the yaw. It is possible to compute the displacements Δx and Δy, 331, 332, with the following formulae:
ΔX=G(φ2−φ1)
ΔY=−G(tan(θ2)−tan(θ1))
The displacement of the cursor along the vertical Δy, 332, increases in absolute terms and tends to infinity as the pitch approaches ±π/2.
In this case, Δx, 331, is indeed a curvilinear length. The assumption here is that the pointer is placed at the center of the cylinder. G is equal to the distance between the pointer and the cylinder, i.e. equal to the radius of the cylinder.
a, 4b and 4c represent the transformation of the angles of yaw and of pitch of a pointer into motion of a cursor for a spherical projection surface in an embodiment of the invention.
In the figure, it is assumed that the position of the pointer is fixed arbitrarily. In the general case it may nonetheless be variable over time. This illustration corresponds for example to the case where an orientation measurement is available without the position measurement. Only the orientation of the movable pointer is measured. The principle set forth remains applicable for a measured variable pointer position not arbitrarily fixed.
It will be assumed for the sake of simplicity that the position of the pointer is fixed, placed at the center of the sphere. It will be easy to generalize the invention to the case of a positionally movable pointer, the computation principle remaining the same.
The displacement of the cursor along the horizontal Δx, 431, is proportional to the rotation according to the yaw and decreases and tends to zero as the pitch approaches ±π/2. The displacement of the cursor along the vertical Δy, 432, is proportional to the pitch. It is possible to compute the displacements Δx and Δy, 431, 432, with the following formulae:
ΔX=G(φ2−φ1)cos θ1
ΔY=G(θ2−θ1)
In this case, Δx, 431, and Δy, 432, are both curvilinear lengths. The assumption here is that the pointer is placed at the center of the sphere. G is equal to the distance between the pointer and the sphere, i.e. equal to the radius of the sphere.
a, 5b and 5c represent the transformation of the angles of yaw and of pitch of a pointer into motion of a cursor for an arbitrary projection surface approximated by small plane elements in an embodiment of the invention.
The arbitrary surface is approximated for each position/orientation of the pointer by a small plane surface for which
To compute the position of the cursor, the intersection is computed of a straight line carried by the vector p with the projection surface. An elementary surface is then considered, defined by the frame (XE, YE), where:
For YE to be downwards it is necessary that −π/2<β≦π/2.
It is possible to compute the displacements Δx and Δy, 531, 532, with the following formulae:
Where:
By way of exemplary realization of the above principle of arbitrary projection surface, the computations are detailed hereinbelow in the case of a vertical plane projection surface perpendicular to XEarth(
We thus obtain the case illustrated by
The case of a plane elementary surface of a vertical cylinder along the axis ZEarth is also detailed by way of exemplary realization of the above principle of arbitrary projection surface.
For:
X
E
=[−
y
x0]T/√{square root over (
Within the framework of the small displacements approximation (p1·p2→1), the case illustrated by
a, 6b and 6c represent the transformation of the angles of yaw and of pitch of a pointer into motion of a cursor on a spherical surface approximated by plane surfaces in an embodiment of the invention.
For:
It is possible to compute the displacements Δx and Δy, 631, 632, with the following formulae:
Within the framework of the small displacements approximation (p1·p2→1), the case illustrated by
The method described in this embodiment of the invention also proposes to utilize the angular velocity of the pointer.
For example, the angular velocity of the pointer can be determined on the basis of the angular velocity measured in the sensor frame.
We use the angular velocity measured by the sensor and recomputed by virtue of the attitude in the earth frame:
ωEarth(t)=[ωx ωy ωz]T=R(t)ωSensor(t)
The angular velocity of the pointer can also be determined on the basis of the data regarding the attitude of the pointer, by a differentiation operation:
The attitude of the pointer being provided by a quaternion q(t)=[q0 q1 q2 q3]T, the angular velocity of the pointer is then given by the formula:
where {grave over (q)}=q(t)⊙{tilde over (q)}(t−1) where ⊙ represents the product of quaternions and {tilde over (q)} is the conjugate of q.
On the basis of the pointer angular velocity determined for example according to the above principles, it is then appropriate to determine the displacement Δx,Δy, 731, 732 of our cursor and to avoid any displacement due to the component ωxsensor. Indeed, the roll should not cause any cursor displacement, which would be counter natural.
A first solution, illustrated by
{tilde over (ω)}Earth(t)=Rx(t)ωSensor(t)
{tilde over (ω)}Earth(t)=Rx(t)RT(t)ωEarth(t)=ωEarth(t)−(ωEarth(t)·p)p
where Rx is the same as R on replacing the first column by zeros.
It is then possible to compute the displacement of the cursor Δx,Δy, 731, 732 according to any elementary surface pointed at by p through the formulae:
ΔX=GxYET{tilde over (ω)}Earth
ΔY=GyXET{tilde over (ω)}Earth
Where Gx and Gy are gains which may be a function of p.
A second solution, illustrated by
This choice makes it possible to eliminate the effect of a roll rotation of the pointer on the Δx and Δy because the surface is perpendicular to the pointer. This elementary surface forms part of a sphere centered at the pointer. The displacement of the cursor Δx,Δy, 831, 832 is then computed with the following formulae:
ΔX=YETωEarth
ΔY=XETωEarth
Let us note that this principle is general that the computed displacement Δx,Δy can subsequently be transformed so that it is suited to any surface, for example for a displacement proportional to the angular velocity, as illustrated in
ΔX=YETωEarth/√{square root over (px2+py2)}
ΔY=XETωEarth
Once ωEarth has been determined with roll removed it is possible in an equivalent manner to transform the displacement onto another surface.
a and 10b illustrate possible projections for transforming the positions/displacements of a cursor in one surface into positions/displacements in another surface in an embodiment of the invention.
Once the position of the cursor has been determined for a given surface, it is always possible to transform/project the cursor to another surface. A transformation can be composed of a sequence of translations, rotations, reflections/symmetries, or scale factors.
Transformations by perspective projection can also be applied. These transformations make it possible to project 3D pointing surfaces onto a 2D screen in such a way that the projection corresponds to the perception of the human eye from an angle of vision. Several types of perspective projection exist, for example, cavalier, frontal, oblique, aerial, isometric, descriptive geometric perspective, etc. Various tools make it possible to effectively manage these graphical projections such as OpenGL®.
The advantage of such projections is to be able to determine, on the basis of the same pointing toward a 3D surface, the displacement/the position of the cursor on screens tied to various viewpoints.
The projection is not necessarily orthogonal and it is possible to modify the metric according to need. For example, the displacement given by the angular velocity does not correspond to any geometric surface but is a perspective projection of the displacement onto a sphere.
The displacement of the cursor computed on the basis of the attitude (
As presented above, these two parameters can be determined either:
These two procedures are therefore equivalent. Indeed, knowing p1 and p2 it is possible to determine the angular velocity {grave over (ω)} assumed constant:
{tilde over (ω)}=a tan(p1,p2)*(p1p2)/dt
Where is the vector product and dt is the time interval.
Conversely, being given {tilde over (ω)}(t) and the initial attitude R1/q1 (resp. final attitude R2/q2), it is possible to determine the initial pointer p1 (resp. final pointer p2). For example, for {tilde over (ω)} constant for a time interval dt, a rotation of the pointer p1 by an angle ∥{tilde over (ω)}∥dt about the axis {tilde over (ω)} (resp. p2 by an angle −∥{tilde over (ω)}∥dt) it is possible to determine p2 (resp. p1) p2=qω(t)⊙p1⊙{tilde over (q)}ω(t) resp. p1={tilde over (q)}ω(t)⊙p2⊙qω(t).
In all the embodiments described hereinabove, the control of the cursor is computed in relative mode. It is also possible to control the cursor in absolute mode according to the principles indicated as commentary to
In certain cases, it is possible to control the cursor of a screen by using the direct coordinates of the screen. The screen is then mapped in a two-dimensional frame of reference, using for example cartesian coordinates (OE, XE, YE), cylindrical coordinates (OE, φE, YE), or spherical coordinates (OE, φE, θE), or other systems of coordinates.
The choice of the coordinate system depends essentially on the nature of the surface of the pointed-at screen, so as to facilitate the mapping of the cursor.
By way of example:
The first example of an arbitrary plane is taken purely by way of illustration. Consider an arbitrary plane defined by a 2D cartesian frame (OE, XE, YE) where
To determine the coordinates of the cursor on the screen as a function of the pointer p=[px py pz]T we use the following formulae:
In the case of a vertical plane, with OE=[G 0 0]T, XE=[0 1 0]T, YE=[0 0 −1]T, we obtain:
The second example of a vertical cylinder is taken also purely by way of illustration. Consider an arbitrary cylinder defined by a 2D cylindrical frame (OE, φE, YE) where
To determine the coordinates of the cursor on the screen as a function of the pointer p=[pxpypz]T, we then compute:
Finally, the third example of a sphere is taken also purely by way of illustration. Consider an arbitrary sphere defined by a 2D spherical frame (OE, φE, YE) where:
To determine the coordinates of the cursor on the screen as a function of the pointer p=[pxpypz]T we compute:
Once Δx and Δy have been determined, we have the choice to do either limited pointing or sliding pointing, such as are defined hereinbelow.
Let R1 and R2 be two frames tied to the earth whose origin is placed on the pointer. R1 remains invariant and undergoes only the translation of the pointer, whereas R2 undergoes the same rotation of the pointer as soon as the cursor tends to exit the screen.
Limited pointing consists in reproducing a pointing in R1, thus the region pointed at does not vary in space.
Sliding pointing consists in reproducing a pointing in R2. With this pointing the region pointed at slides in such a way that it remains facing the pointer.
R1 and R2 can be reinitialized at any moment.
The cursor of a PC is generally fed with input through the relative displacement. Limited pointing is then possible if and only if it is possible to recover the instantaneous position of the cursor on the screen. There are two means for recovering the coordinates of the cursor on the screen.
A first means is to sum without any error source the entire displacement of the cursor at the input of the PC, therefore:
A second means is to saturate the pointer by forcing for example Δx=+∞, Δy=+∞, thereby placing the cursor at the top left. The cursor is thereafter put back on the desired pixel. This second means is practical for reinitializing the pointer, but it is not practically possible to use it in continuous mode.
With limited pointing, it is desirable to have access to the absolute attitude of the pointer with no drift. The problem of drift can be reduced by a reinitialization performed from time to time. By way of example, a possible process consists in:
To reproduce a realistic absolute pointing on a given surface, it is desirable to ascertain the position/dimension and the inclination/orientation of this surface with respect to the pointer. The setting of these parameters can be calibrated at the start. For example, to define a plane screen, one points at the two ends of the diagonal as well as the normal to the screen. This exemplary embodiment is advantageous for video games where it is necessary to target/sight without showing the pointer on the screen.
To carry out sliding pointing such as defined above, it is desirable simply to feed the pointer with Δx and Δy. In this case it is assumed that the region pointed at is displayed on the screen. In the case where the cursor on the screen of the PC risks spilling over from the screen, the new region pointed at will be displayed on the screen.
It is also possible, in certain cases where a drift in yaw is present (for example with an attitude unit limited to an Accelerometer and a Gyrometer), to carry out a semi-absolute pointing in which one performs a relative pointing according to the yaw (φ) and an absolute pointing according to pitch (θ).
Various embodiments of the invention can be determined through the combination of the mode of determining the displacements of the cursor (by estimating the attitude or by using the angular velocity), of the mode of pointing (limited or sliding) and of the surface of displacement of the cursor (pointing toward a plane surface of given inclination in the terrestrial frame, toward a cylindrical surface or toward a sphere). These various combinations exhibit ergonomic advantages for certain applications.
Thus, absolute pointing toward a plane is particularly suited to video games. Absolute pointing toward a cylinder is very suited to the training games demanding speed and/or reflection. Absolute pointing toward a sphere may be advantageous for projection applications. The use of absolute pointing toward different surfaces may be advantageous for simulation exercises, for example for military use or to simulate the pointing of a laser spot on an arbitrary surface.
Sliding pointing toward a cylinder in which the displacement of the cursor is proportional to the rate of rotation of the pointer is particularly suited to a mouse application for PC or television remote control.
As a general rule one will combine the use of the estimation of the attitude with a limited pointing mode and the use of the angular velocity with a sliding pointing mode.
In essence we have described embodiments in which the pointer has an arbitrary position in the reference frame. This has enabled us to conduct the complete analytical computations. The use of the invention may easily be generalized when the pointer moves in said frame. It may also be advantageous to change projection surface in the course of one and the same sequence of use when the context of the latter evolves. It may also be advantageous to choose different projection surfaces according to the axis to be controlled, as has been illustrated and described in
The examples described hereinabove are given by way of illustration of embodiments of the invention. They do not in any way limit the field of the invention, which is defined by the claims which follow.
Number | Date | Country | Kind |
---|---|---|---|
1158041 | Sep 2011 | FR | national |
This application is a continuation of U.S. patent application Ser. No. 14/342,590, filed Mar. 4, 2014, which is the national phase application under §371 of International Patent Application No. PCT/EP2012/067156, filed Sep. 4, 2012, which claims priority to French Patent Application No. 1158041, filed Sep. 9, 2011. All of these applications are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 14342500 | Apr 2014 | US |
Child | 14926113 | US |