开发者

How to calculate where each sensor is when I have only few variables

开发者 https://www.devze.com 2023-02-17 20:32 出处:网络
Suppose I have 3 sensors: sensor1, sensor2 and sensor3. The only variables I know are: Distance from sensor1 to origin is 36.05

Suppose I have 3 sensors: sensor1, sensor2 and sensor3.

The only variables I know are:

Distance from sensor1 to origin is 36.05
Distance from sensor2 to origin is 62.00
Distance from sensor3 to origin is 63.19
Distance from sensor1 to sensor2 is 61.03
Distance from sensor开发者_Python百科1 to sensor3 is 90.07
Distance from sensor2 to sensor3 is 59.50

This is how it would look like if you had the positions:

How to calculate where each sensor is when I have only few variables

How can I calculate the position of every point using only those variables?

This is not homework, just curiosity.


You cannot find the position of the points exactly, as any rotation around the origin, as well as symmetry still give the same distances.

Do you want a way to find all the possible results? Finding the points is pretty straightforward, but do you need the method to be robust on noise?


This process is called trilateration. As others have noted, finding absolute, unambiguous positions for the sensors is not possible without more information - you'll need the positions of three non-coincident, non-colinear sensors in 2D, 4 non-coincident, non-coplanar sensors in 3D, to resolve all rotation/reflection ambiguities.

There's been an enormous amount of research into this problem in the field of wireless sensor network localisation - dealing with incomplete, noisy range measurements, unreliable communication and highly constrained resources make it interesting.

This might be an apt approach - the basic idea is to build up a system of located nodes piecewise - start with a seed formation of 3 or 4 nodes with well-defined relative locations and add nodes one by one as their locations become unambiguously computable relative to already-located nodes.

The anchor nodes with known locations can be used as the seed for system growth if possible, or used to compute a corrective transform after all nodes have been located.


The problem as posed is impossible without more information. If you add more information and some noise, then it is doable. See Finding a point that best fits the intersection of n spheres discusses how to solve that type of problem.


Look at these images.

How to calculate where each sensor is when I have only few variables

And

How to calculate where each sensor is when I have only few variables

You will see that the triangle can rotate freely (so no "fixed" position exists), and also the third intersensor distance is not needed in the general case, as it is determined by the other two distances.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号