It may help to make the Geforce the default adapter. On my system, sumo-gui
was using  the integrated graphics adapter by default and this had a huge
impact on running time. (open the nvidia system control panel (should be
available from a right click on the desktop background) go to 3D settings
and select nvidia as your preferred graphics processor).
There is still a known issue where 'show-route' drops the gui refresh rate
while the simulation is running but at least you should have no problem
seeing routes in a stopped simulation.

Am Fr., 17. Feb. 2023 um 13:48 Uhr schrieb Ruud van Gaal <
[email protected]>:

> That was it indeed, thanks very much for the fast response!
> I did try visualizing the route in sumo-gui, but that dropped framerate to
> under 1 per second (in netedit the route is shown with decent framerate,
> and I have an nVidia Geforce RTX2080). I could see it was on the route
> though, it just didn't want to move.
>
> Ruud
>
>
> On Fri, Feb 17, 2023 at 1:14 PM Jakob Erdmann <[email protected]>
> wrote:
>
>> Most likely, the last call to setSpeed is keeping the vehicle from
>> moving. To hand speed control back to SUMO, call setSpeed(vehID, -1).
>> You can check whether the route was set correctly in sumo-gui:
>> https://sumo.dlr.de/docs/sumo-gui.html#showing_routes_and_route-related_information
>>
>> Am Fr., 17. Feb. 2023 um 12:56 Uhr schrieb Ruud van Gaal <
>> [email protected]>:
>>
>>> Hi,
>>>
>>> I'm creating an application where I can either control a SUMO car from
>>> my program, or let SUMO drive autonomously over a route.
>>> When my program is in control I call Vehicle::moveToXY() and
>>> Vehicle::setSpeed() to overrule the position. This works ok. But when I try
>>> to hand control back to SUMO (not calling moveToXY/setSpeed anymore) it
>>> just sits there without moving.
>>>
>>> My vehicle is define in the .rou.xml file like this:
>>>
>>>
>>> *<vehicle id="ego" type="Ego_Car" route="r_1" depart="0.00"
>>> departLane="free" color="blue"/>*
>>>
>>> I tried explicitly setting the route ID:
>>>
>>>
>>> *Vehicle::setRouteID(egoName, routeID);*
>>>
>>> but that didn't help. Any idea how I can detect what is causing the
>>> vehicle not to follow the route anymore? Is it even possible after a call
>>> to Vehicle::moveToXY() to put the vehicle back on a route, or should I
>>> respawn the vehicle somehow from scratch? (even then I'd need to inject the
>>> latest position at least once)
>>>
>>> Thanks,
>>> Ruud van Gaal
>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to