Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
I faced the SUMO error for SUMO error for command 171: Position conversion requires a source position and a position type as parameter. when I executed convertRoad() in Main.java at TraaS folder
_it.polito.appeal.traci.TraCIException: SUMO error for command 171: Position conversion requires a source position and a position type as parameter.
at de.tudresden.sumo.util.Query.queryAndVerify(Query.java:87)
at de.tudresden.sumo.util.Query.queryAndVerifySingle(Query.java:217)
at de.tudresden.sumo.util.CommandProcessor.do_job_get(CommandProcessor.java:363)
at it.polito.appeal.traci.SumoTraciConnection.do_job_get(SumoTraciConnection.java:376)
at Main.main(Main.java:80)_
Dear @mkrumnow, @behrisch , @namdre,
convertRoad
I faced the SUMO error for SUMO error for command 171: Position conversion requires a source position and a position type as parameter. when I executed convertRoad() in Main.java at TraaS folder
convertGeo & convert2D (success)
So far, I have already succeed to run the convertGeo() funcrion by running the following line of code.
As I want to implement converRoad with the same logic of convertGeo, but I falied. The sumo-gui show the message:
Therefore, I found several bugs on SumoCommand.java and Simulation.java, thus I re-write parts of the above two files.
1.Simulation.java
edited part
2.SumoCommand.java
3.Traci.java
Finally,
the console show the error:
_it.polito.appeal.traci.TraCIException: SUMO error for command 171: Position conversion requires a source position and a position type as parameter. at de.tudresden.sumo.util.Query.queryAndVerify(Query.java:87) at de.tudresden.sumo.util.Query.queryAndVerifySingle(Query.java:217) at de.tudresden.sumo.util.CommandProcessor.do_job_get(CommandProcessor.java:363) at it.polito.appeal.traci.SumoTraciConnection.do_job_get(SumoTraciConnection.java:376) at Main.main(Main.java:80)_
ps. This is the link of my workspace of eclispe.
Thanks for your patience! Kang Yen