0

我想使用ns3中的矩阵传播损失模型来修复节点之间的传播损失。我使用 SetLoss() 修复了节点之间的传播损失,但出现程序错误。 https://www.nsnam.org/doxygen/classns3_1_1_matrix_propagation_loss_model.html#a16fd1f9be7b7246423818632d710947d void SetLoss (Ptr< MobilityModel > a, Ptr< MobilityModel > b, double loss, bool symmetric=true)

输出错误

ytc@ytc-VirtualBox:~/ns3-802.11ad$ ./waf --run "evaluate_simple_service_period --simulationTime=2 --pcap=true"
Waf: Entering directory `/home/ytc/ns3-802.11ad/build'
Waf: Leaving directory `/home/ytc/ns3-802.11ad/build'
Build commands will be stored in build/compile_commands.json
'build' finished successfully (0.798s)
assert failed. cond="uid != 0", msg="Assert in TypeId::LookupByName: ns3::MatrixPropagationLossModel::SetLoss(wifiNodes.Get (0)->GetObject<MobilityModel> (), wifiNodes.Get (1)->GetObject<MobilityModel> (), DoubleValue (50)) not found", file=../src/core/model/type-id.cc, line=834
terminate called without an active exception
Command ['/home/ytc/ns3-802.11ad/build/scratch/evaluate_simple_service_period', '--simulationTime=2', '--pcap=true'] terminated with signal SIGIOT. Run it under a debugger to get more information (./waf --run <program> --command-template="gdb --args %s <args>").

源代码 https://github.com/ns3-765/matrixpropagationloss/blob/master/evaluate_simple_service_period.cc

注意对不起,要从下面的站点在ns3上运行802.11ad需要构建 https://github.com/wigig-tools/ns3-802.11ad 似乎是setloss的一般用法错误

4

0 回答 0