You can use a route file with vTypes in it as your additional file. For details, see https://sumo.dlr.de/docs/Simulation/Basic_Definition.html#input_files
Am Sa., 11. Dez. 2021 um 16:39 Uhr schrieb Brandon Cedric Patangan via sumo-user <[email protected]>: > Hi, so I tried to run the route file, but it gave me this error: > > Error: The vehicle type 'car' for vehicle 'c0' is not known. > Quitting (on error). > > I feel that this is probably because I need the additional file to define > the vTypes from the instructions given. So I hope to ask, how do I create > this additional file? It seems that in netEdit the only additional files > able to be created are for stops, and when I tried to create a new vehicle > type within it it only outputs a route file. Thank you! > > On Sat, Dec 11, 2021 at 9:55 PM Brandon Cedric Patangan < > [email protected]> wrote: > >> oh, I'm really sorry, please disregard my previous email. Looks like I >> made a typo, but I hope to ask, regarding the additional file, does it >> still need to be written out? Thanks! >> >> On Sat, Dec 11, 2021 at 8:32 PM Brandon Cedric Patangan < >> [email protected]> wrote: >> >>> Hi, I tried this: "%sumo_home%\tools\routeSampler.py" >>> --atributes="type=\"car\"" -r vehroutes.xml --prefix c --edgedata-files >>> baycarroutes.xml -o bayroutes.sampled.rou.xml but got the following >>> error: unrecognized arguments: --atributes=type="car". >>> >>> Also, regarding the additional file to define vehicle types, do i need >>> to write out or is it automatically generated? thanks! >>> >>> >>> On Sat, Dec 11, 2021 at 6:30 AM Jakob Erdmann <[email protected]> >>> wrote: >>> >>>> it must be type "type=\"car\"". See >>>> https://sumo.dlr.de/docs/Tools/Turns.html#multiple_vehicle_types >>>> >>>> Am Fr., 10. Dez. 2021 um 22:28 Uhr schrieb Brandon Cedric Patangan via >>>> sumo-user <[email protected]>: >>>> >>>>> Hello again! Had a question about routesampler, I tried using >>>>> attributes to run an edgedata file in order to define a route as being >>>>> populated by a certain number of motorcycles. I used this command: >>>>> >>>>> python "%sumo_home%\tools\routeSampler.py" -r vehroutes.xml >>>>> --edgedata-files passengercars.xml -o passengercars.sampled.rou.xml >>>>> --attributes="vType id=\"car\" vClass=\"passenger\" >>>>> >>>>> and was able to get routeSampler to write the routes. I tried to run >>>>> it in sumo though, and this is what I got: >>>>> >>>>> [image: image.png] >>>>> so I'm actually not sure what I got wrong in the command. I was able >>>>> to write the routefile, and upon checking it I found that it did write the >>>>> routes and specified vehicle id and type as well: >>>>> >>>>> [image: image.png] >>>>> >>>>> it all seemed to be well in there, and I checked the said line that >>>>> was supposed to have an error but didn't find anything. Hope someone can >>>>> clarify, thanks! >>>>> >>>>> [image: image.png] >>>>> _______________________________________________ >>>>> 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
