sns3 / sns3-satellite

Satellite module for ns-3 simulator
https://www.sns3.org
GNU General Public License v3.0
141 stars 58 forks source link

About using NetAnim tools in sns3 #26

Closed zhuangshangyuan closed 3 years ago

zhuangshangyuan commented 3 years ago

Hello, I try to use the NetAnim tool to realize satellite network visualization.

So in the program I added the following:

include "ns3/netanim-module.h"

AnimationInterface anim("sat.xml");

And modify the wscript file: obj = bld.create_ns3_program('sat', ['satellite','netanim']) obj.source ='sat.cc'

But there still be an error when generating the xml file, and I want to know how I should use the NetAnim tool in sns3.

Looking forward to your reply!

Greetings

zhuangshangyuan commented 3 years ago

Oh! I solved it! It only needs to add the absolute path when using the netanim-module.h header file.