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

simulation.convertRoad() from SUMO simulation by TraaS #5478

Closed
YenKang opened this issue Apr 15, 2019 · 0 comments

Comments

@YenKang
Copy link

commented Apr 15, 2019

Dear @namdre ,
After I checked the your advice of solving unsupported variable 0x42, I fixed this bug by editing the Simulation.java.

my edited code:

return new SumoCommand(Constants.CMD_GET_SIM_VARIABLE,
				Constants.POSITION_CONVERSION, x, array,
				Constants.RESPONSE_GET_SIM_VARIABLE, 
				Constants.POSITION_ROADMAP);

However, when I executed this line of code in my Main.java, the console of SumoGui show the this message "Error: Storage::readChar(): invalid position"?

conn.do_job_get(Simulation.convertRoad(240.5204, -4.8, "false"))

How can I correctly get the data of edgeID, landPosition and landIndex after executing the convertRoad() function?

Thanks for your help!
Kang Yen

@namdre namdre added the c:traci label Apr 23, 2019

@namdre namdre self-assigned this Apr 23, 2019

namdre added a commit that referenced this issue Apr 23, 2019

@namdre namdre closed this in a7222e7 Apr 23, 2019

namdre added a commit that referenced this issue Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.