ns-3 - 在 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,0,2000)));
^
Build failed
->task in 'lte_handover' failed with exit status 1 (运行 -v 显示更多信息)
按照说明输入命令 : ./waf --run scratch/lte_handover -v
,出现以下信息
- 在“tap-creator”中定义的对象“SuidBuild_task”(
{task 139759060979784: SuidBuild_task -> }) - 在“tap-creator”中定义的对象“SuidBuild_task”(
{task 139759060980008: SuidBuild_task -> }) - 在“tap-creator”中定义的对象“SuidBuild_task”(
{task 139759065638504: SuidBuild_task -> })
解决方案
似乎您)
在上面的那一行中有一个额外的。您没有在评论所有行时关闭此命令
ueMobility.SetPositionAllocator ("ns3::RandomRectanglePositionAllocator", // <-- close
ueMobility.SetMobilityModel ("ns3::RandomWalk2dMobilityModel","Bounds", RectangleValue (Rectangle (0,2000,0,2000)));
推荐阅读
- c# - 无法在nuget包中安装
- velo - 4 用于过滤转发器的复选框组
- mysql - 将 MySQL 查询转换为 SQL Server
- bash - 打开终端时“没有这样的文件或目录”
- android - 是否可以在 Android 上的 React-native 中以编程方式隐藏键盘上方的工具栏?
- javascript - 使用 ReactJS 向 Rails 后端提交表单
- python - 为什么我的包占用这么多内存
- azure - 我们可以自动缩放连接到应用程序网关的 Azure 容器实例吗
- google-bigquery - Spotfire - Biquery - Simba JDBC
- java - 发送消息后,套接字神秘地从哈希图中删除