arduino-dw1000 icon indicating copy to clipboard operation
arduino-dw1000 copied to clipboard

DWM1000 robotics

Open FXUDarkNova opened this issue 5 years ago • 15 comments

I am looking to use 3 anchors and 1 tag to make a robot follow me I have got the 3 anchors setup and two sending the information to one main anchor. I am know stuck on where to go from here using the data I am collecting could someone point me in the right direction?

FXUDarkNova avatar Aug 30 '19 10:08 FXUDarkNova

Thank you I shall take a look would you recommend only using two anchors instead of 3?

FXUDarkNova avatar Sep 03 '19 12:09 FXUDarkNova

I guess the math is a bit simpler when using only two anchors, so I would say yes. You can always add the third anchor later. Be aware that using only two anchors you get two solutions for the equation. One in front of the robot, one behind.

nxdefiant avatar Sep 03 '19 17:09 nxdefiant

Slightly confused looking at your code and the diagram is using two anchors not used to determine left and right? Not front and back?

FXUDarkNova avatar Sep 03 '19 17:09 FXUDarkNova

It is the intersection of two spheres of range so two possible solutions. With 3 the ambiguity is resolved.

On Tue, Sep 3, 2019, 10:08 AM FXUDarkNova [email protected] wrote:

Slightly confused looking at your code and the diagram is using two anchors not used to determine left and right? Not front and back?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/thotro/arduino-dw1000/issues/304?email_source=notifications&email_token=AGI5J4GASYALX7CJGY7VF7TQH2KYFA5CNFSM4ISMAKNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5Y4R5Q#issuecomment-527550710, or mute the thread https://github.com/notifications/unsubscribe-auth/AGI5J4DJQJN5UXM3KIWNSFLQH2KYFANCNFSM4ISMAKNA .

rbrtwtrs avatar Sep 03 '19 19:09 rbrtwtrs

Indeed, I have the two assumptions that the tracking starts in front of the robot and that the robots does everything successfully for the tracked object to stay in front.

nxdefiant avatar Sep 03 '19 19:09 nxdefiant

Ok makes sense just one question when you do t = dist_right2 - a_r2 is that working out turn?

FXUDarkNova avatar Sep 04 '19 10:09 FXUDarkNova

Sorry, I did not understood your question (not a native speaker here)

nxdefiant avatar Sep 04 '19 16:09 nxdefiant

It’s ok iv worked that bit out i am confused as x cords seems to be working as Y cords very confusing

FXUDarkNova avatar Sep 04 '19 16:09 FXUDarkNova

Yeah, for some reason I decided to use two different coordinate systems. This is why it is turned later with x, y = (y, -x)

ROS has "x" as forward and "y" as left axis while I use the "y" as forward and "x" as right axis.

nxdefiant avatar Sep 04 '19 16:09 nxdefiant

I have that bit in my I’m doing it in c language and all I get is x y having same values just y is negative

FXUDarkNova avatar Sep 04 '19 16:09 FXUDarkNova

I recommend to visualize the values, it helps a lot. I have that "VISUALIZE" in my script for that.

nxdefiant avatar Sep 04 '19 16:09 nxdefiant

Ok thank you I will give it ago

FXUDarkNova avatar Sep 04 '19 16:09 FXUDarkNova

Hello, I have been working dwm1000 module. I would like to know about tag 1 and anchor3. I just want to get collection of positions and distance between tag and anchors. I have make condition with distance along with heading to get navigation of motor. For kind information I want know motor movement as per distance and position of anchors. I am looking dwm1000 source code for Robot. Could you please share source code.

nilesh999 avatar Dec 01 '22 23:12 nilesh999

I am working with Arduino and dwm1000 for tag and anchors

nilesh999 avatar Dec 01 '22 23:12 nilesh999