<html><head><meta http-equiv="Content-Type" content="text/html charset=GB2312"><base href="x-msg://70/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>NS-3's python bindings (e.g., visualizer) are not very user friendly and require quite a bit magic.</div><div><br></div><div>The simplest way, just before running scenario, </div><div><br></div><div>cd /home/ndnSIM/</div><div>./waf shell</div><div>cd /home/ndnSIM/ndnSIM-sample-topologies</div><div>./waf --run ndn-grid-topo-plugin --vis</div><div><br></div><div>(or with LD_LIBRARY_PATH, but I don't think it's necessary)</div><div><br></div><div>If it still not working, check again what ./waf configure in /home/ndnSIM/ndnSIM-sample-topologies is telling.  Does it complain about visualizer or it shows "yes"?</div><div><br></div><div>---</div><div>Alex</div><div><br></div><div><div>On Mar 6, 2013, at 4:48 PM, aaronishere <<a href="mailto:aaronishere@qq.com">aaronishere@qq.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.5; font-family: Î¢ÈíÑźÚ; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; margin: 10px; "><div>Hi, Alex</div><div>Sorry to bother you again</div><div>I'm still not clear about how to use the topology</div><div>I copied the ndn-grid-topo-plugin under the file .../ndnSIM-sample-topologies/scenario and changed it like below :</div><div> </div><div><div>int</div><div>main (int argc, char *argv[])</div><div>{</div><div>  ......</div><div>  RocketfuelWeightsReader  topologyReader ("", 25);</div><div>  topologyReader.SetFileName ("topologies/bw-delay-rand-1/1221.r0-conv-annotated.txt");</div><div>  topologyReader.Read ();</div><div>  ......</div><div>  // Getting containers for the consumer/producer</div><div>  Ptr<Node> producer = Names::Find<Node> ("bb-781");</div><div>  NodeContainer consumerNodes;</div><div>  consumerNodes.Add (Names::Find<Node> ("leaf-4349"));</div><div> ......</div><div>}</div><div> </div><div>but typed LD_LIBRARY_PATH=/usr/local/lib ./waf --run ndn-grid-topo-plugin --vis , it showed</div><div> </div><div><div>Waf: Entering directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>Waf: Leaving directory `/home/ndnSIM/ndnSIM-sample-topologies/build'</div><div>'build' finished successfully (0.024s)</div><div>assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::VisualSimulatorImpl not found", file=../src/core/model/type-id.cc, line=419</div><div>terminate called without an active exception</div><div> </div><div>Thanks a lot! </div></div><div> </div></div><hr align="left" size="1" style="width: 210px; height: 1px; "><div><span>Aaron</span></div>_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></body></html>