Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Help with JAVA interface

Hi Ashfaq,

This sounds like locale issues, where the operating system expects '750,11' for example instead of '750.11'. Perhaps you could try setting the 'Decimal symbol' in your Control Panel's 'Region' settings?

Cheers,
Ruud


On Tue, Jun 13, 2023 at 3:22 PM <ashfaq@xxxxxxxxxxxxxxxxx> wrote:
Hi,
 
I have the following sumo Config(https://github.com/RISE-Dependable-Transport-Systems/SUFI/blob/master/Examples/1.%20LC-Assertive%20Parameter/SumoRun.config.sumocfg) file which works perfectly well(and as intended) when I run it using 'sumo" or "Sumo-gui', and using the python sumo libraries. However, if I run it using the JAVA libsumo interface(according to the example code here https://sumo.dlr.de/docs/Libsumo.html) I get the following error:
 
 
Error: Attribute 'netOffset' in definition of a location Invalid Number Format (double) 0.00.
Error: Attribute 'convBoundary' in definition of a location Invalid Number Format (double) -0.00.
Error: Attribute 'origBoundary' in definition of a location Invalid Number Format (double) -10000000000.00.
Error: Attribute 'speed' in definition of lane 'E11_0' Invalid Number Format (double) 36.00.
Error: Attribute 'length' in definition of lane 'E11_0' Invalid Number Format (double) 750.11.
Error: Attribute 'shape' in definition of lane 'E11_0' Invalid Number Format (double) 0.00.
Error: Shape of lane 'E11_0' is broken.
Can not build according edge.
Error: Attribute 'shape' in definition of junction 'gneJ11' Invalid Number Format (double) -0.01.
Error: Attribute 'x' in definition of junction 'gneJ11' Invalid Number Format (double) -0.00.
Error: Attribute 'y' in definition of junction 'gneJ11' Invalid Number Format (double) 99.75.
Error: Attribute 'shape' in definition of junction 'gneJ12' Invalid Number Format (double) 1000.02.
Error: Attribute 'x' in definition of junction 'gneJ12' Invalid Number Format (double) 1000.02.
Error: Attribute 'y' in definition of junction 'gneJ12' Invalid Number Format (double) 101.46.
Error: Attribute 'shape' in definition of junction 'gneJ13' Invalid Number Format (double) 750.12.
Error: Attribute 'x' in definition of junction 'gneJ13' Invalid Number Format (double) 750.11.
Error: Attribute 'y' in definition of junction 'gneJ13' Invalid Number Format (double) 101.03.
Error: Unknown from-node 'gneJ11' for edge 'E11'.
Exception in thread "main" java.lang.IllegalArgumentException: Process Error
at org.eclipse.sumo.libsumo.libsumoJNI.Simulation_start__SWIG_7(Native Method)
at org.eclipse.sumo.libsumo.Simulation.start(Simulation.java:68)
at Test.main(Test.java:8)


What could I be missing? How can I debug this issue?


Thank you.
//Ashfaq
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top