How to generate a network animation for a WAVE network simulation

27 views
Skip to first unread message

omidimaru

unread,
Jun 22, 2022, 10:11:13 AM6/22/22
to ns-3-users
Hi everyone,

I'm working on a WAVE simulation and the normal AnimationInterface anim("blah.xml") just before the simulator starts just plain isn't working with the WaveNetDevice devices. I keep getting the following error:

msg="Incompatible types. (feed to "c++filt -t" if needed)
got=CallbackImpl<void,std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >,ns3::Ptr<ns3::Packet const>>
expected=CallbackImpl<void,std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >,ns3::Ptr<ns3::Packet const>,double>", +0.000000000s -1 file=./ns3/callback.h, line=1582
msg="when connecting to /NodeList/0/DeviceList/0/$ns3::WaveNetDevice/PhyEntities/0/$ns3::WifiPhy/PhyTxBegin", +0.000000000s -1 file=./ns3/traced-callback.h, line=151
terminate called without an active exception

I've tried introducing this animation XML generation to the given wave examples in src/wave/examples and its the same result so its not just something to do with my own code. I can see that the callback is obviously missing the expected double, but I've got no clue how to resolve the problem.

Does anyone have a workaround to get the AnimationInterface to work with a WaveNetDevice?

Thanks.
Ben
Reply all
Reply to author
Forward
0 new messages