Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

met an error when i used function getCompleteRedYellowGreenDefinition in matlab #28

Open
sjh30 opened this issue Jul 30, 2024 · 0 comments

Comments

@sjh30
Copy link

sjh30 commented Jul 30, 2024

i copied the code in the traci4matlab example traci_test2.m
And i met the error when i used the fuction traci.trafficlights.setCompleteRedYellowGreenDefinition('0',tlsRYGDefinition{1});
Here is the example code:
tlsRYGDefinition = traci.trafficlights.getCompleteRedYellowGreenDefinition('0')
traci.trafficlights.setCompleteRedYellowGreenDefinition('0',tlsRYGDefinition{1});

I used the code in the same way,but it went wrong.
And here is the wrong message:
错误使用 traci.sendExact (第 46 行)
74 194 255 Error set program 4.5 parameter (next) must be a compound (list of ints).

出错 traci.trafficlights.setCompleteRedYellowGreenDefinition (第 58 行)
traci.sendExact();

出错 TACIR (第 139 行)
traci.trafficlights.setCompleteRedYellowGreenDefinition(tlsID,myRYGDefinition);

Can this function be used in the old sumo version? Or this function can not be used all the time?
If i want to use it in the matlab .which version should i download.Because it seems like this function can not be used in my version :1.19

**SUMO-version:1.19

**operating system:windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant