1

我正在尝试使用 TraCI 集成 sumo 和 NS2,但找不到错误。
命令:

sumo-gui -n /home/user/Desktop/sumo/map.net.xml --remote-port 8888 &
ns simulation.tcl

这将打开 SUMO 界面并且地图打开没有问题,但是当我尝试开始模拟时它返回:

Loading net-file from '/home/user/Desktop/sumo/map.net.xml'...done(1142ms).
Loading done.
Simulation started with time: 0.00
Error: Requested command not implemented (1): Command not implemented in sumo
Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).

在终端中出现此消息:

Error in method TraCIClient::extractCommandStatus, Server returned error [] Command not implemented in sumo

使用的版本:
SUMO sumo 版本 0.17.1
NS-2 版本 2.34
Ubuntu 12.04

经过一些更改和补丁(TraCI)后,它会在 make 命令上返回一堆错误,例如:

traci-client/TraCIClient.o:TraCIClient.cc:function TraCIClient::connect(): error: undefined reference to 'tcpip::Socket::connect()'

有人可以指出我做错了什么吗?

4

0 回答 0