Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-dev] Integrating with C++

It sounds as if you are encountering undefined behavior. Try building with clang and undefined-behavior checks:

Am Mi., 18. Dez. 2019 um 20:43 Uhr schrieb Jaeger Bomb <jaegerbomb23@xxxxxxxxx>:

I currently am developing an application which is tightly coupled with SUMO to simulate traffic in a custom environment.  I don't want to use the TRACI protocol (for overhead speed an latency).. so I have started using the sumolib library to read and write information.  There are quite a few things that the libsumo can't read from the simulation, so I have been accessing that data directly from the MSNet instance that is running.  I keep getting strange behaviors.. specifically in accessing pointers in the vehicle.  When I get the edge from the current lane the vehicle is on (lane->getEdge()), sometimes it returns garbage.  However, when I comment out, build, then uncomment and build again, it works fine.  I have been round and round trying to determine why this data is only corrupted occassionaly.  I don't believe I'm multi-threading, and I'm calling the same type of things that libsumo calls.  Is there a reason someone couldn't have their own MSNet that they read / write from?  Or am I missing an important step?

sumo-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top