<div dir="auto"><div>Hi Anthony</div><div dir="auto"><br></div><div dir="auto">While I haven't used waypoint mobility model myself, I see an obvious problem in your snippet:</div><div dir="auto">The variable 'path1' isn't associated with 'walk' or 'walker' at all. It's initialized but never used.</div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div dir="auto"><div class="gmail_extra" dir="auto"><br><div class="gmail_quote">On May 31, 2017 10:40, "Anthony Dowling" <<a href="mailto:dowlinah@clarkson.edu">dowlinah@clarkson.edu</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello All,<div><br></div><div>In my research, I am working with ndnSIM, and need to use the Waypoint Mobility Model, and after reading the documentation, I believe my code is close, because it compiles, however, when I run it, the node doesn't move at all. How can I make the Waypoint Mobility Model work correctly? Code is below.</div><div><br></div><div>//############################<wbr>#################</div><div><div>  MobilityHelper walk;</div><div><br></div><div>// sets up the initial position of the walker</div><div>  walk.SetPositionAllocator ("ns3::GridPositionAllocator",</div><div>    "MinX", DoubleValue (50.0),</div><div>    "MinY", DoubleValue (20.0),</div><div>    "DeltaX", DoubleValue (20.0),</div><div>    "DeltaY", DoubleValue (20.0),</div><div>    "GridWidth", UintegerValue (3),</div><div>    "LayoutType", StringValue ("RowFirst"));</div><div><br></div><div>  ns3::WaypointMobilityModel path1;</div><div>  path1.AddWaypoint( Waypoint( Seconds(5.0) , Vector3D( 0.0, 0.0, 0.0) ));</div><div>  path1.AddWaypoint( Waypoint( Seconds(10.0) , Vector3D( 40.0, 20.0, 0.0) ));</div><div><br></div><div>  walk.SetMobilityModel("ns3::<wbr>WaypointMobilityModel");</div><div>  walk.Install(walker);</div></div><div><br></div><div>//############################<wbr>##############################<wbr>#########</div><div><br></div><div>Thanks for your time,</div><div>Anthony Dowling</div></div></blockquote></div></div></div></div>