Traci4matlab:如何解决“使用traci.socket出错”?

时间:2019-09-12 10:42:11

标签: matlab

我是traci4matlab的新用户。在我通过插件在matlabR2019a中安装traci4matlab之后。我试图运行traci_test.m。但是发生了错误: 剂量有人知道如何解决吗?谢谢!

使用traci.Socket / connect时出错(第25行) 发生Java异常: java.net.ConnectException:连接被拒绝:connect

at java.net.DualStackPlainSocketImpl.connect0(Native Method)

at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)

at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)

at java.net.Socket.connect(Socket.java:589)

at java.net.Socket.connect(Socket.java:538)

matlab.internal.lang.fwdSubsref中的错误(第6行)     [varargout {1:nargout}] = subsref(A,s);

traci.init错误(第65行)         connections(label).connect(host,port);

traci_test错误(第24行) [traciVersion,sumoVersion] = traci.init();

0 个答案:

没有答案