Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Error when loading a instance of a new vehicle type

Then you could define
<vType id="trotinette" vClass="ignoring"/>

Am Do., 16. Mai 2019 um 16:16 Uhr schrieb Azise Oumar Diallo <diallitoz@xxxxxxxxx>:
Thanks Jan and Jakob for your answers.
Currently, a trotinette (scooter)'s user can drive (theoretically) on all lanes (car, bus, bicycle, pedestrian street) of road traffic. I wanted to implement this behavior regardless of the XML configuration (without allow this on all edges of the network). Specifically, I want for example that even in a edge allowing only bicycle, that trotinette could also circulate.

Azise

Le jeu. 16 mai 2019 à 13:55, Jakob Erdmann <namdre.sumo@xxxxxxxxx> a écrit :
To introduce a completely new vehicle class, a lot more files have to be changed than just SUMOVehicleClass and SUMOVTypeParameter because the new vehicle class must also be accounted for in generated networks.

You only need a new vClass if the access restrictions are completely different from all other classes that you wish to simulate (otherwise you can define <vType id="trotinette" vClass="bicycle"/>)
Even if you need something that is different from all other classes you can use the abstract classes "custom1" and "custom2" and configure the network according to allow these classes wherever you like.
All other attributes of a type t (length, maximum speed,...) can be set independet of the vClass.

regards,
Jakob

Am Do., 16. Mai 2019 um 13:33 Uhr schrieb <sumo@xxxxx>:
Dear Azise,

it seems that your "trotinette" is not allowed to drive over the network edge "e1". It may be because SUMO still thinks it is a bicycle and bicycles are disallowed on that edge or because you did not alter your network edges to allow this vehicle type. Try to open your test network in NETEDIT and have a look which vehicle types are (dis)allowed  on the given edge.

Jan

On Thu, 16 May 2019, at 12:06 PM, Azise Oumar Diallo wrote:
Hello,

I would like to test a new type of vehicle named trotinette that means scooter in English to implement his driving on road network.

So I created this new vType based on bicycle vType class within the files SUMOVehicleClass (.h, .cpp) and SUMOVTypeParameter (.cpp). 

Here is the error message that I get when I try loading it with sumo-gui :

Loading done.
Error: Vehicle 'vh1' has no valid route. Edge 'e1' prohibits.
Quitting (on error).

Are there any other major files to modify to make it work? 

Find attached config, net and route files.

Best regards,
Azise
_______________________________________________
sumo-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit


Attachments:
  • trotiNet.net.xml
  • troti.rou.xml
  • troti.sumocfg

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top