LOCATION SYSTEM

Abstract: A location system for objects having location devices (16) as a means for repeatedly interrogating the location devices on each object to provide position signals. A means (18) to detect the position signals are provided. The position of each object and the area associated with each object are determined from the position signals and stored. The system is then able to determine the relative locations of the thus determined objects and associated areas.

Description: LOCATION SYSTEM This invention relates to a location system and, in particular, to a system which can be used to support personalisation and mobility in typical office environments and in particular to systems of the type disclosed in our British Patent Application No. GB-A-2320089. It is desirable in a system such as a computer network to have information about location of all the equipment attached to the network and also information about the locations of people using the network and their particular needs at any given time. Usually, the people using the network are mobile but the equipment is fixed. However, in systems such as radio networks, portable equipment can be part of the network and communicates with the network by radio, and even in wired networks equipment can usually be moved around or rotated. Location systems give absolute information about the locations of objects in space. Typically, the users of information systems are interested in relative location information. This must be derived from the absolute information about objects and persons in space which is the primary data generated by a location system. For example, the sentences "the person is at position p" and "the workstation is at position g, facing in direction d" give absolute location information. However, "the person at position p is able to use the workstation at position q" gives relative location information. In order to make a location system valuable to the users of information systems such as computer networks, a method of deriving relative location information from absolute location information is required. A preferred embodiment of the present invention enables relative location information to be derived from absolute location information by expressing the relative location information in terms of spatial containment and overlapping relationships. These can be calculated using absolute location information. For example, to determine the truth of the sentence "the workstation can be used by the person", a shape c is used to represent the area of space in which the workstation can be used, and another shape p to represent the person. We can then say that the workstation can be used by the person if, and only if, the space c contains the space p. By using this absolute location information to fix the locations of c and p, the truth value of the relative location sentence can then be determined. In practice, it is necessary to monitor movements of people and objects so that the system can be notified whenever some relative location information becomes true or false. For example, it is necessary to be notified whenever the person p moves into or out of the space in which he can use the workstation c. If there were, for example, 1000 objects such as workstations attached to a network, each of which has an associated area of space, whenever a person moves there are potentially 1000 relative location statements which could become true or false. To evaluate the truth values of all these statements by calculating the associated containment relationships each time a person or object moves would be too expensive in terms of computing power and a method of indexing the spaces is required so that large numbers of containment relationships can be calculated cheaply. The invention is defined in the appended claims to which reference should now be made. A preferred embodiment of the invention will now be described in detail by way of example with reference to the figures in which: Figure 1 shows the spaces surrounding a workstation and person represented in a quad tree structure; Figure 2 shows a room containing a workstation and person in an embodiment of the invention; and Figure 3 shows a flowchart showing the steps performed in an embodiment of the invention. A preferred embodiment of the present invention operates by using a containment index in a system whereby spaces can be inserted, moved or deleted in a tree structured store. The process of insertion, movement or deletion of spaces is termed an operation on the store. Whenever an operation is performed on the store, four kinds of events are generated. These are as follows: i) positive containment events which are generated for all pairs of spaces s and s' where s now contains s ' and did not before the last operation on the store; ii) negative containment events which are generated for all pairs of spaces s and s ' where s does not now contain s ' and did before the last operation on the store; iii) positive overlapping events which are generated for all pairs of spaces s and s ' where s now overlaps s ' and did not before the last operation on the store; iv) negative overlapping events which are generated for all pairs of spaces s and s ' where s does not now overlap s ' and did before the last operation on the store. The value of using a containment index lies in the fact that an individual operation on the store can be done in time largely independent of the number of spaces in the store whilst still calculating all the changes in value of the containment and overlapping relationships between spaces in the store. Therefore, the time taken to calculate the truth values of the relative statements would be fairly constant whether there were 100, 1000 or 10000 workstations in a system. The indexing process operates by representing spaces in what is known as a quad tree. This is a known data structure in which a space is broken down into squares approximating the space. Initially, this can be thought of as defining a minimum size of square and representing the shape using these squares and then replacing the small squares with larger squares wherever this is possible so that maximal cover of the space is defined with the smallest number of squares or quad tree cells, as they are known, which covers the whole of the area. This is called maximal cover because it contains the largest cells necessary to cover s. Indexing of the spaces can then be based on two theorems about the maximal cover of the spaces. The maximal cover of a polygon is generated in the following manner. Suppose we have some suitably large quadtree of extending from a bottom left-hand extreme of (0,0) to a top- right-hand extreme of (n-l,n-l), where n is a suitably large power of 2. The maximal cover of a space is essentially an approximation to the space m terms of quadtree cells. This section describes how to generate the maximal cover of an arbitrary polygon containing only cells in the quadtree which are at least as large as r x r (which is some power of 2 less than 2-to-the-n) . Incidentally, this points to a further benefit of our approach in that we can trade off accuracy against performance by merely varying the value of r - bigger values give smaller numbers of cells m the maximal covers which results in faster performance (but worse accuracy) . First, find the smallest cell, of size bigger than at least r x r, in the quadtree which completely contains the space to be indexed. This can be done by the following method: 1. Find the point (xmin, ymin) , where xmm is the smallest value of the x coordinate for any vertex in the sequence of vertices defining the polygon, and similarly ymin is the smallest value of the y coordinate for any vertex in the sequence of vertices defining the polygon. 2. Find the point (xmax,ymax), where xmax is the greatest value of the x coordinate for any vertex in the sequence of vertices defining the polygon, and similarly ymax is the greatest value of the y coordinate for any vertex m the sequence of vertices defining the polygon. 3. The quadtree cell qO, of size r x r which contains (xmm, ymin) is the square whose bottom left-hand point is at coordinates (x in* (xmin/r) , ym n* (ymin/r) ) , and whose top right-hand point is at coordinates (xmm* (xmin/r) +r-l, ymin* (ymin/r) +r-l) . 4. Now we can perform the following process (expressed m pseudocode) which will set Q to be the smallest quadtree cell which completely contains the space to be covered: Q: = qO while Q does not contain the point (xmax, ymax) do Q: = the parent quadtree cell of Q. Having found a cell m the quadtree which completely contains the space to be indexed, we can generate the smallest set of quadtree cells of size greater than or equal to r which completely covers the given space. This can be done by the following method: We first define the notions of containment and overlapping for polygons and quadtree cells. A polygon p contains a quadtree cell q if and only if p contains an arbitrary point in q (this can be calculated using a standard algorithm) and no line n the perimeter of p intersects a line m the perimeter of q (this can be calculated using a standard algorithm) . A polygon p overlaps a quadtree cell q if and only if some line m the perimeter of p intersects a line in the perimeter of q, or q contains p. An arbitrary polygon p and quadtree cell q may therefore be related in one of three ways: p contains q, p overlaps q or p is disjoint from q (this last case obtaining when p neither overlaps nor contains q) . Now call the space to be indexed P and consider a variable Q whose value is initially set to be the minimal cell in the quadtree which completely contains P. We generate the maximal cover of P by recursively splitting up the quadtree cell Q into a set of descendant quadtree cells as follows: Assume there is a set S which will be built up into the maximal cover of P. This set is initially empty. Note that we know that P overlaps Q initially, because Q contains P. Note also that each quadtree cell q has 4 children, which we call qO, ql, q2 and q3. We generate the set S using the recursive procedure generate, which is expressed in psuedocode as follows: generate (q: quadtree cell) is if P contains q then S: = S U {q} else if P overlaps q then if q is smaller than 2r x 2r then S: = S U {q} else generate (qO ) generate (ql ) generate (q2) generate (q3 ) end if end if. The procedure call generate (Q) will terminate with the set S containing all the quadtree cells and only tne quadtree cells in the maximal cover of P. A space, such as the area surrounding a workstation, is shown in Figure 1 represented with maximal cover from a quad tree. In this, the workstation area is divided into three sizes of squares labelled 2, 4, and 6. Not all of the squares are labelled in the Figure. The total space represents the area in which the workstation is useable. A person 8 is shown also formed of quad tree squares. In this example, the person is presently outside the useable area for the workstation, i.e., the screen region. The indexing method used for finding the relative locations of objects is based on two theorems about the maximal covers of spaces. These are: 1) The containment indexing theorem: this states that a space s is contained in a space t if, and only if, for each cell in the maximal cover of s, there exists exactly one cell in the maximal cover of space t which contains x or is equal to x. li ) The overlap indexing theorem- spaces s and t overlap if and only if there exists two cells x and y in the maximal covers of s and t respectively such that x is equal to y or x contains y, or y contains x . Suppose that we have implemented a function called index which calculates the maximal cover of any space. To index spaces in a tree, we maintain a representation of the quadtree where each node is annotated with the set of indexed spaces whose index contains that node. To index a space s we calculate the nodes in index s and add s to the annotation of each node. The function indexed returns the set of indexed spaces for any node m the quadtree, and the function mdex_coun t returns the number of cells m the index of a space (i.e., mdex__coun t=# (index s) ) . From the containment indexing theorem, we can see that given spaces t and s, if s is contained in t then each cell in index s is a descendant of exactly one cell in index t; so, if we search each of the trees rooted at a cell of index t we should visit each member of index s exactly once. If we maintain an associative array coun t to count the number of times we visit a space we can calculate the set of "contained" spaces contained by t by searching each of the trees rooted at a cell of index t and for each cell y that we visit, incrementing the value of coun t [s] for each space s in indexed y, and returning those spaces s for which coun t [s] = ιndex_count s. The algorithm can be expressed in this pseudocode: count :=0 contained: =0 foreach x e index t foreach y e descendants x foreach s e indexed y count [s] := count [s]+l if count [s]=ιndex_count s then contaιned:=contamed U {s} We can use a similar algorithm to calculate the set of "contained" spaces which contain the space t, this time by touring the ancestors of t: count : =0 containers: =0 foreach x e index t foreach y e ancestors x foreach s e indexed y count [s ] := count [s]+l if count [s] = mdex_count t then contamers:=contaιners U {s} From the overlap indexing theorem, we can see that given spaces t and s, if s overlaps t then some cell in index s is either a descendant or an ancestor of some cell in index t; so, if we search each of the trees rooted at a cell of index t and all of the ancestors of index t we should visit some member of index s. We can express the algorithm in this pseudocode : over lapped: =0 foreach x e index t foreach y e ancestors x U descendants x foreach s e indexed y overlapped: -overlapped U {s}. An optimisation is to calculate all three values as part of the insertion and deletion process. The changes in the values when a space is moved can be calculated by deleting the space at the old position and inserting the space at the new position. The deletion operation generates the sets contained, containers and overlapped; the insertion operation generates the sets contained' , containers' and overlapped' . So when a space s moves, the positive and negative containment and overlapping events can be generated by evaluating the following expressions: contained - (contained n contained') is the set of all spaces which have stopped being contained by s; contained' - (contained n contained'" is the set of all spaces which have just become contained by s; containers - (containers n containers' ) is the set of all spaces which have stopped being containers of s; containers' - (containers n containers' ) is the set of all spaces which have just become containers of s; overlapped - (overlapped n overlapped' ) is the set of all spaces which have stopped overlapping s; overlapped' - (overlapped n overlapped' ) is the set of all spaces which have just started overlapping s. Figure 2 shows physically how the system might operate.. It represents the inside of a room 10 which contains a workstation 12 and a person 14. Fitted to either side of the workstation 12 are position indicators 16 which send signals identifying uniquely each position indicator. A position indicator is also attached to the person 14. Signals transmitted by the position indicator 16 are detected by a number of sensors 18 located in the room. These may be ultrasonic detectors which interrogate indicators on objects and people at regular intervals. Position is computed trigonometrically from the time taken for signals to reach the sensors 18. Signals detected can then be sent back to a control unit 20 associated with the computer network. Thus, the absolute location information of the indicator 16 is derived from the sensors 18 by the control unit 20 which is able to use this for detecting whether or not e.g., the person is in an area which enables him sitting in it to use the workstation 12. The control unit will preferably poll the sensors 18 to transmit interrogation signals one at a time to the position indicators. Each position indicator in the room will respond by sending a response back to the sensor. The distance of the object from the sensor can then be determined from the total time taken for a response to arrive after the interrogation signal has been transmitted. The interrogation signal may be a broadcast signal to all position indicators. However, this may lead to contention m the responses. It is therefore preferably directed to each position indicator one at a time using an identifier for that position indicator. To get an accurate position signal, responses are required at three sensors at different locations. Positions can be determined for any number of position indicators and may be determined in either two or three dimensions . The position indicators 16 are also carried by people moving around in the building between rooms such as room 10 which have workstations or other equipment connected to the computer network located within them. Typically, these sensors on people will be interrogated more regularly than the sensors on workstations. At the control unit 20, the information from the position sensors is used to represent the workstation space and a person space and the space associated with any person in the room 10 in a form similar to that shown in Figure 1. These typed containment events can then be used by the computer network to deliver application software as necessary. For example, a software application can be given a designation called "Follow Me". The user of that application can then move from workstation to workstation throughout a building and when he becomes close to or moves into the accessible area of a particular workstation, the application will be loaded to that workstation and he can continue to use the application. The callback registration storage and lockup step 36 uses the typed containment events and contacts the appropriate applications with the relevant relative location information, thereby enabling the system to support mobile personalised software applications in box 38. This describes a test system in which the indexing system is used to provide "Follow Me" X computer sessions. A user has an X Window System desktop running on an XRFB server. RFB stands for "remote frame buffer". The XRFB server sends low-level display information to a remote machine running an RFB display server and receives keyboard and mouse input from that machine. This enables a person to use that remote machine as though it is running their X desktop locally. There is a control interface on the XRFB server which enables an application to change the remote display server to which the XRFB server sends low-level display information and from which it receives keyboard input; using this interface an application can control where the physical view of an X desktop is located. There are several machines running RFB display servers. Each of these machines is tracked by an ultrasonic location system of the type discussed above which generates a stream of location and orientation events for each of the machines. For each machine these events are translated into a stream of location and orientation events for a space which represents the space around the machine in which the screen is readable. A person is also tracked by the ultrasonic location system, which generates a stream of location and orientation events for the person. These events are translated into a stream of location and orientation events for a small space which contains the person. Whenever any of these spatial location and orientation events occurs, the corresponding space is indexed (reindexed) in the spatial index at its new position. The application which provides mobile X desktops registers for a callback whenever the area around a person becomes completely contained by the area in which a machine's screen is visible. When this happens, the Follow Me application is called back by the spatial index with the information about which machine's screen area the person has moved into. The application sends a command to the XRFB server to send display output to, and receive keyboard and mouse input from, the machine whose screen area the person has moved into. The application which provides mobile X desktops also registers for a callback whenever the area around a person ceases to overlap the area in which a machine's screen is visible. When this happens, the Follow Me application is called back by the spatial index with the information about which machine's screen area the person has ceased to overlap. The application sends a command to the XRFB server to stop sending display output to, and receiving keyboard and mouse input from, the machine whose screen area the person has moved away from. (The reason for using positive containment and negative overlapping events is that this provides a degree of hysteresis, thus avoiding undesirable behaviour when a person stands on the boundary of a display area) . Using this system we can see that as a person walks up to a machine, his X desktop will physically appear on that machine and as he walks away his desktop will disappear again. The indexing system could be used in any application which needs to evaluate spatial containment and overlapping relations in real time. Apart from support for mobile applications, which we have described here, other possible applications involve navigating remote-controlled vehicles around complex environments and any other systems which would benefit from this type of evaluation. Other example applications involve spaces which are not in the real world such as support for detecting when objects stand in some relation to each other in a shared virtual environment or a video game (e.g., performing collision detection for complex shapes) . Thus, it will be appreciated that a location system of the type described above can be extremely useful in network systems where it is desirable for people to have access to the network from more than one location. The ability of the embodiment of the invention to load up personalised application software onto a terminal will lead to a significant reduction in logging on time to workstations. Clearly, when a person comes into the useable area, the system can be configured to automatically log-in as that person. Furthermore, when he moves away, it can be made to automatically log-out, thus improving on the security problems associated with conventional workstations where users have to physically log-in and log-out and a user who does not log-out but moves away from his workstation leaves possibly confidential information available to other persons.

Claims: CLAIMS : 1. A method for locating objects which carry location devices comprising the steps of: a) repeatedly interrogating the location devices on each object to provide position signals; b) detecting position signals provided by the location .devices; c) determining from the position signals the position of each object and an area associated therewith; d) storing position and area data for each object; e) determining the relative locations of the thus determined objects and associated areas. 2. A method according to claim 1 in which at least some of the objects have at least two location devices and including the step of determining the orientation of such objects . 3. A method according to claim 1 in which the step of determining the relative location of users comprises determining whether an object has moved since it was last interrogated and, if it has moved, determining whether it now overlaps or is within an area associated with another object. 4. A method according to claim 3 further comprising determining whether an object which previously overlapped or was contained within an area associated with another object now falls outside that area. 5. A method according to any preceding claim in which some of the objects are computer terminals and other objects are people. 6. A location system for objects which carry location devices comprising: a) means for repeatedly interrogating the location devices on each object to provide position signals; b) means to detect the position signals; c) means for determining from the position signals the position of an object and an area associated with each object from the position signals; d) means for storing position and area data for each object; e) means for determining the relative location of the thus determined objects and associated areas. 7. A location system according to claim 6 in which at least some of the objects have at least two location devices and the system includes means for determining the orientation of such objects. 8. A location system according to claim 6 or 7 in which the means for determining the relative locations of areas comprises means for determining whether the object has moved since it was last interrogated, and means for determining whether its area overlaps or is within an area associated with any other object. 9. A location system according to claim 8 comprising means for determining whether an object that previously overlapped or was contained within an area associated with another object now falls outside that area. 10. A location system according to any of claims 6 to 9 in which some of the objects are computer terminals and other objects are people. 11. A location system for objects comprising: means for determining the absolute locations of the objects; means for deriving spatial data associated with the objects; and means for deriving relative location data from the spatial data. 12. A location system according to claim 11 in which the means for determining the absolute locations of objects comprises a position indication system including sensors carried by objects. 13. A location system for objects comprising: a) a position indication system for providing position signals for location devices carried by objects; b) means for determining from the position signals the position of an object and an area associated therewith; c) means for storing position and area data for each object; and e) means for deriving the relative locations of the thus determined objects and associated areas.

Inventors: STEGGLES PETER JOSEPH, STEGGLES, PETER, JOSEPH
Applicants: AT & T LAB CAMBRIDGE LTD, STEGGLES PETER JOSEPH, AT & T LABORATORIES CAMBRIDGE LIMITED, STEGGLES, PETER, JOSEPH
Application year: 1999
Main classification: G01S5
IPC codes: G01S5, G01S15