在NS3中执行Randomwalk2dmobility时发生错误

问题描述

我是NS3的新手。我想了解Randomwalk2d模块中切换的执行状态并将其可视化。认值为两个Ue和两个enb,但是在执行过程中总是会发生错误。谁能帮我解决问题?
这是我的代码链接https://drive.google.com/file/d/163NQOyvs0bTh2J4P9_vpS4Y7iqocB3HJ/view?usp=sharing
当我执行命令:./waf --run scratch/lte_handover --visualize时,出现以下错误

../scratch/lte_handover.cc:In funtion 'int main(int,char**)':
../scratch/lte_handover.cc:296:78: error: expected ')' before ';' token
"Bounds",RectangleValue (Rectangle (0,2000,2000)));
^
构建失败
->“ lte_handover”中的任务失败,退出状态为1(使用-v运行以显示更多信息)
按照说明输入命令:./waf --run scratch/lte_handover -v,然后出现以下信息

  • 对象'SuidBuild_task'(
    {tap-creator'
  • 中定义的{task 139759060979784:SuidBuild_task->})
  • 对象'SuidBuild_task'(
    {tap-creator'
  • 中定义的{task 139759060980008:SuidBuild_task->})
  • 对象'SuidBuild_task'(
    在'tap-creator'中定义的{task 139759065638504:SuidBuild_task->})

解决方法

似乎上面的那一行中有一个额外的)。在注释所有行时,您没有关闭此命令

ueMobility.SetPositionAllocator ("ns3::RandomRectanglePositionAllocator",// <-- close
ueMobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel","Bounds",RectangleValue (Rectangle (0,2000,2000)));