Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Question on Vehicle.isStopped (traci command)

Hello,
there was a bug in TraaS which is no fixed (https://github.com/eclipse/sumo/issues/4883)
thank you for reporting this issue.
regards,
Jakob


Am Mi., 5. Dez. 2018 um 12:44 Uhr schrieb sung hyun Jang <xddugi@xxxxxxxxx>:
Dear Sumo users

I have an issue with traci command (Vehicle.isStopped)
Now, I am running a sumo simulation with JAVA for the evaluation of traffic signal control.
In order to calculate the number of stops for each vehicles running in the network, I used "Vehicle.isStopped" as the following.

boolean vehStop = (boolean) conn.do_job_get(Vehicle.isStopped(vehID));

I got an Error message as below.

it.polito.appeal.traci.TraCIException$UnexpectedData: Unexpected : expected 7, got 9
 at de.tudresden.sumo.util.Query.verify(Unknown Source)
 at de.tudresden.sumo.util.CommandProcessor.do_job_get(Unknown Source)
 at it.polito.appeal.traci.SumoTraciConnection.do_job_get(Unknown Source)
 at com.sitraffic.shared.sab2.SumoEvaluation.secvehCalculate(SumoEvaluation.java:54)
 at com.sitraffic.shared.sab2.SumoRunner.run(SumoRunner.java:55)
 at com.sitraffic.shared.sab2.SumoRunner.main(SumoRunner.java:30)

Also, I used (int) Vehicle.getStopStage(vehID). It gave me the same Error.
I wonder if I did something wrong or Traas has an issue. Please help me!!!

I am looking forward to your reply.

Best regards,
Sunghyun Jang


 
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top