Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Funny behavior, varying with --log

- adding a --log option should really not affect the simulation behavior
- the error message looks as if the map-matching from x,y position to road edge somehow failed. The best way to diagnose this, would be by providing the .net.xml file (or a subpart of the full network) and the coordinates that were passed to moveToXY for reproducing the error.
- my gut feeling is that version mismatch doesn't play into the problem you are observing, though it probably woudn't hurt to clean out any leftovers from an older version and rebuilt your app.

regards,
Jakob


Am Di., 21. Feb. 2023 um 15:29 Uhr schrieb Ruud van Gaal <r.vangaal@xxxxxxxxxx>:
Hi,

I'm trying to make a handover between SUMO-controlled and human-controlled vehicles. I use Vehicle::moveToXy() for that. When switching back to SUMO-controlled, I already learned to call Vehicle::setSpeed(id, -1) to get it to drive.
Now I'm getting funny results though, depending on the arguments I use to run SUMO. This is an example message in sumo-gui (note that the 'dist' here is a strange value):

Warning: Vehicle 'ego' moved by TraCI from 3400.37,1908.14 to 3400.37,1908.14 (dist 1973.84) with implied speed of 19738.40 (exceeding maximum speed 55.56). time=18.10.
Warning: Vehicle 'ego' moved by TraCI from 3400.37,1908.14 to 3400.37,1908.14 (dist 1973.84) with implied speed of 19738.40 (exceeding maximum speed 55.56). time=18.20.
Warning: Vehicle 'ego' performs emergency braking on lane '-15#1_1' with decel=9.00, wished=4.50, severity=1.00, time=18.30.

This changes when I remove '--log sumo_lastrun.log' from the arguments (which should not affect behavior, but it does and consistently so) when running, I get:

Warning: Vehicle 'ego' performs emergency braking on lane '-1300#1_1' with decel=132.50, wished=4.50, severity=28.44, time=15.60.

where edge '-1300#1_1' (it's an OpenDrive import) is nowhere near the edge (kilometers away). It then stops following the route with this emergency brake, while if I add the '--log' argument again, it continues driving on the route.

I recently updated to SUMO v1.16.0; could it be that using an older v1.15.0 library to link my application with could cause these kinds of behaviors? (different binary communication protocols or such). I also saw on another occasion the human-controlled vehicle changing size and heading erratically.

Thanks,
Ruud


_______________________________________________
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