<div dir="ltr">Spyridon,<div><br></div><div>That idea worked perfectly. Thank you very much.</div><div><br></div><div>Anthony</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jun 10, 2017 at 2:43 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Anthony,<br>
<br>
I was wondering if you could build some simple API to pass a pointer to the instance of the mobility helper from your simulation scenario to your application. Then, you could use the GetDistanceSquaredBetween method to get the distance between 2 nodes or some other provided API of the NS-3 mobility helper:<br>
<br>
<a href="https://www.nsnam.org/doxygen/classns3_1_1_mobility_helper.html#a4471ab3605ba031e02ee90fc43bf8c5d" rel="noreferrer" target="_blank">https://www.nsnam.org/doxygen/<wbr>classns3_1_1_mobility_helper.<wbr>html#<wbr>a4471ab3605ba031e02ee90fc43bf8<wbr>c5d</a><br>
<br>
Thank you,<br>
<br>
Spyridon (Spyros) Mastorakis<br>
Personal Website: <a href="http://cs.ucla.edu/~mastorakis/" rel="noreferrer" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br>
Internet Research Laboratory<br>
Computer Science Department<br>
UCLA<br>
<div class="HOEnZb"><div class="h5"><br>
> On Jun 10, 2017, at 10:14 AM, Anthony Dowling <<a href="mailto:dowlinah@clarkson.edu">dowlinah@clarkson.edu</a>> wrote:<br>
><br>
> Hello all,<br>
><br>
> I realize now that I worded this poorly. What I need to find is a way to access the location of a node from within an application. If someone has experience or an idea on how I can do that, it would be much appreciated.<br>
><br>
> Thanks,<br>
> Anthony Dowling<br>
> Clarkson University<br>
><br>
> On Fri, Jun 9, 2017 at 5:51 PM, Anthony Dowling <<a href="mailto:dowlinah@clarkson.edu">dowlinah@clarkson.edu</a>> wrote:<br>
> John,<br>
><br>
> Yes, I'm trying to access the node container from within a custom application, so I can access the nodes mobility model to extract it's location.<br>
><br>
> On Jun 9, 2017 5:41 PM, "John Baugh" <<a href="mailto:jpbaugh@umich.edu">jpbaugh@umich.edu</a>> wrote:<br>
> Anthony,<br>
><br>
> Do you have a NodeContainer?<br>
><br>
> John<br>
><br>
> On Jun 9, 2017 3:51 PM, "Anthony Dowling" <<a href="mailto:dowlinah@clarkson.edu">dowlinah@clarkson.edu</a>> wrote:<br>
> Hello All,<br>
><br>
> I am working on a way to put the location coordinates of a node into the name of an interest packet to streamline forwarding in an adhoc environment. However, I am having trouble finding a way to get a reference to the node the application is on from within the application. Could someone help me with this?<br>
><br>
> Thanks for your time,<br>
> Anthony Dowling<br>
><br>
<br>
</div></div></blockquote></div><br></div>