Hello. I have three DWM1000 sensors, two anchors and one tag. To know the position of the person, I only have to obtain the distance from the person to the two anchors, but the direction is unknown, that is, it can be forward or backward. How do I know if the person is in case 1 or case 2?
Does the DWM1000 module say the address? Otherwise I think I will have to use an extra sensor. What dou you recommend?
You will need a third anchor or some other sensor(s), unless you can infer, from other information, which intersection the tag is at.
For example, if the tag starting location is known, then with two or more of the latest positions, you can predict where the next location should be. The only problem is if it stops near the line through the two anchors. Then, when it starts moving again, you don't know which side of the line it is on. Depending on your use case, that may or may not be a problem.
I have to follow the person who is the one with the tag. How do I know which of the following two points the person is on? Should I place another sensor on the robot or where?
It says that by default the location of the label will be programmed in front of the two anchors and that is what it takes, but, in my robot, the person can be in front or behind. How can I find out the correct address?
Because the robot thinks that in theory the person is in CASE 1 and in CASE 2. What is the person in reality? Let's say the person is CASE 1, how do I say that to the robot?
I don't understand the need to explain anything. Mathematically, it is impossible to solve the location problem without at least three independent distance measurements. And since none of the measurements will be exact, the solution is only approximate.
My sensors have not yet arrived, they are sent, I want to have everything ready for when they arrive, if I have to buy a 4th sensor I will buy it.
You are getting way, way ahead of yourself. It will take you a long time to learn how this equipment works, and there will be plenty of experimentation and revisions, plus chances to buy new sensors along the way.
While you are waiting for your parts to arrive, you can be studying this paper, which describes how to implement a least squares solution to the linearized trilateration problem:
There are plenty of other reference materials on line!
Write your software so that one quick press of "the button" starts and stops the rover, and a long press of "the button" tells the rover that it has started moving in the wrong direction.
I would take that +./- 10 cm with a grain of salt, but even if you believe it, it is important to understand what that means for distances from a person to the two sensors, separated for example by 20 cm on the rover.
To see what I mean, calculate some distance values to the two sensors, for different assumed orientations of the rover and a person about 5 m from the robot.
Compare the difference in estimated distances to the uncertainty of the two measurements (if the rover is pointing straight at the person, the difference is zero).
I want to be optimistic and think that the navigation can be optimized from the code.
By the way, you did not answer me, what do you think of placing 3 anchors at 30 CM each and 1 label on the person, that is a simple solution to know the exact address, right?
Not sure who you are "talking" to. If you want to address a question to a specific responder, click "reply" in the bottom right of the reply, not the "reply" at the bottom of the entire thread.
Anyway, as mentioned several times, yes, three anchors should resolve the question about whether the tag is in front of or behind the rover (and of course, the farther apart the anchor are, the better), but no, it won't be "exact." You could easily do the math to prove that, and the effect of errors in the measured distances, to yourself.
Alternatively, you could use the approach mentioned in post #14.
Hello.
U may use three sensors in 2D and 4 in 3D
The problem is solved trigonometrically,m preferrably by putting the sensorns in a line.
To know if P is behind or in front place the sensors at perimiter and out-law the soulution that does not match the perimiter.
I mean, u get two possibles. For that u use the 4 sensor to out-law the faulty one.
(P) Person
SX 1 SX 2 SX3
By measuring different time of arrival at each sensor, u use trigonometry to solve for angles.
That takes up less space and effort than least square method and can basically be done with 32 kb mem. Stydy this img REALLY carfully and u get the picture.