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

invalid error when calling traas Simulation.getDistanceRoad #4603

Closed
namdre opened this issue Sep 15, 2018 · 3 comments

Comments

@namdre
Copy link
Contributor

commented Sep 15, 2018

Simulation.getDistanceRoad("4400311#0", 5.1, "-28235416#0", 90, true)

Error: Answered with error to command 0xab: Invalid lane index 102 for 4400311#0 pos 0.00

@namdre namdre added this to the 1.0.1 milestone Sep 15, 2018

@namdre

This comment has been minimized.

Copy link
Contributor Author

commented Sep 15, 2018

looks like a problem with endianness or similar.
for the same call on tests/sumo/net2.net.xml

python:  traci.simulation.getDistanceRoad("SC", 5.2 , "CN", 9.0, True)
traas: conn.do_job_get(Simulation.getDistanceRoad("SC", 5.2, "CN", 9.0, true)

python / traas payload:

83 00 00 00 00 0F 00 00 00 03 04 00 00 00 02 53 43 40 14 CC CC CC CC CC CD 00 04 00 00 00 02 43 4E 40 22 00 00 00 00 00 00 00 01                        
83 00 00 00 00 0F 00 00 00 03 04 00 00 00 02 53 43 00 40 14 CC CC CC CC CC CD 04 00 00 00 02 43 4E 00 40 22 00 00 00 00 00 00 01 
@namdre

This comment has been minimized.

Copy link
Contributor Author

commented Sep 15, 2018

it's simpler: traas sends the lane index and the position in the wrong order

@namdre namdre closed this in 684c6c2 Sep 15, 2018

@namdre

This comment has been minimized.

Copy link
Contributor Author

commented Sep 15, 2018

it wasn't noticeable when positions were integers because then the byte interpreted as lane index was 0.

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.