<div dir="ltr">Hi, <div>Try to use constant mobility model for your static nodes, as follows:</div><div><i><b>  Ptr<ConstantPositionMobilityModel> Mobility0 = CreateObject<ConstantPositionMobilityModel> ();<br>  Mobility0->SetPosition (Vector (0, 0, 0));<br>  dev0->GetPhy ()->SetMobility (Mobility0);</b></i><br></div><div>Then, you can retrieve the position of these nodes.</div><div>Hope this helps,</div><div>Sincerely</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 16 nov. 2020 à 03:16, zhenliu0603--- via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu">ndnsim@lists.cs.ucla.edu</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div><span></span>Hi, everyone,</div>
<div>      I want to get the position of nodes. I got the positon of mobile node using <i>node->GetObject<ns3::MobilityModel> ()->GetPosition() . </i>But I found  that it can't be used for the position of the non-mobile nodes. So if I use <i>NodeContainer nodes; nodes.Create(3); </i>instead of topology map, how do I get the position of these nodes?</div><div><br></div><div>Thanks,</div><div>LiuZhen</div><hr style="width:210px;height:1px" color="#b5c4df" size="1" align="left">
<div><span><div style="margin:10px;font-family:verdana;font-size:10pt"><div><a href="mailto:zhenliu0603@163.com" target="_blank">zhenliu0603@163.com</a></div></div></span></div>
</div>_______________________________________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Mr DJAMA Adel<br></div><div>Phd student </div><div>Ecole Militaire Polytechnique</div><div>Algiers 16046, ALGERIA</div></div></div>