I tried before, once this is the standard for the bus additional file. It does not work either, unfortunately. It returns the exactly same error.
Is there a way to maybe load this bus route in the beginning (in the sumocfg file) but in a stand-by mode, just waiting to be actually added to the simulation? On Thu, Apr 16, 2015 at 1:35 PM, Jakob Erdmann <[email protected]> wrote: > The error message indicates that the route is not known. It looks as if > the additional file isn't loaded into sumo. Try defining a <vehicle .../> > inside that file and see whether it appears in the simulation. > > 2015-04-16 13:41 GMT+02:00 Deborah Perrotta <[email protected]>: > >> I don't understand why mine is not... My additional file looks like this: >> >> <additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> xsi:noNamespaceSchemaLocation="http://sumo.sf.net/xsd/additional_file.xsd >> "> >> >> <busStop id="OUT Warren St @ Kearsarge Ave" lane="8639780#1_0" >> startPos="10" endPos="25" lines="28"/> >> <busStop id="Warren St @ Dabney PI" lane="8639780#4_0" startPos="35" >> endPos="50" lines="28"/> >> (...) >> <route id="28_out" edges="-8643840#0 -116884900#0 (...)"/> >> <stop busStop="OUT Dudley Station" duration="20"/> >> <stop busStop="OUT Warren St @ Kearsarge Ave" duration="20"/> >> (...) >> </route> >> </additional> >> >> The command I'm trying is: >> >> traci.vehicle.add('230000','28_out'); >> >> And the error I get is: >> >> Error: Answered with error to command 0xc4: Invalid route '28_out' for >> vehicle: '230000' >> >> I tried this route and it is valid. Can you see where is my mistake? >> >> Thank you again. >> >> On Thu, Apr 16, 2015 at 12:31 PM, Jakob Erdmann < >> [email protected]> wrote: >> >>> the code >>> traci.vehicle.add("testVeh", "withStop") >>> works as well in my test. >>> >>> 2015-04-16 13:05 GMT+02:00 Deborah Perrotta <[email protected]>: >>> >>>> Thank you for your answer. >>>> >>>> So it is not possible to actually add a bus and its route to the >>>> simulation (e.g. using traci.vehicle.add('testVeh', 'withStop'), but only >>>> to transform an already existent vehicle in the bus itself? >>>> >>>> On Thu, Apr 16, 2015 at 8:17 AM, Jakob Erdmann < >>>> [email protected]> wrote: >>>> >>>>> The additional file looks like this: >>>>> <busStop id="busstop1" lane="2fi_0" startPos="20" endPos="30" >>>>> lines="foo"/> >>>>> <route id="withStop" edges="2fi 2si 1o 1fi 1si 3o 3fi 3si 4o 4fi >>>>> 4si"> >>>>> <stop busStop="busstop1" duration="10"/> >>>>> </route> >>>>> >>>>> the traci code is: >>>>> traci.vehicle.setRouteID("testVeh", "withStop") >>>>> >>>>> Note, that the vehicle "testVeh" must be one the first edge of route >>>>> "withStop" for this to work. >>>>> regards, >>>>> Jakob >>>>> >>>>> 2015-04-15 10:57 GMT+02:00 Deborah Perrotta <[email protected] >>>>> >: >>>>> >>>>>> Hi Jakob, >>>>>> It just says it was not possible to add that route. >>>>>> In your tests, the bus stops are loaded as well? Can you show me how >>>>>> your additional file is composed? >>>>>> Thank you, >>>>>> Deborah. >>>>>> Em 15/04/2015 09:14, "Jakob Erdmann" <[email protected]> >>>>>> escreveu: >>>>>> >>>>>>> Hello, >>>>>>> using a route that is defined in an additional file is working in >>>>>>> our tests. What error message do you get? >>>>>>> regards, >>>>>>> Jakob >>>>>>> >>>>>>> 2015-04-14 19:23 GMT+02:00 Deborah Perrotta < >>>>>>> [email protected]>: >>>>>>> >>>>>>>> Hi everyone, >>>>>>>> >>>>>>>> I'm starting to work in TraCI now using TraCI4Matlab and I'm >>>>>>>> actually >>>>>>>> struggling with adding a bus route during the simulation. I have the >>>>>>>> additional file for a bus with the stops and edges of the route, >>>>>>>> and I >>>>>>>> would like to know how can I add this bus to the simulation using >>>>>>>> TraCI4Matlab. >>>>>>>> >>>>>>>> I tried using the "add vehicle" command, but it asks for a route ID >>>>>>>> and >>>>>>>> despite trying to change the additional file to name the route, it >>>>>>>> didn't >>>>>>>> work. >>>>>>>> >>>>>>>> Thank you in advance, >>>>>>>> >>>>>>>> -- >>>>>>>> Deborah Perrotta >>>>>>>> PhD Researcher - MIT Portugal >>>>>>>> http://pt.linkedin.com/in/deborahperrotta/ >>>>>>>> >>>>>>>> ------------------------------------------------------------------------------ >>>>>>>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT >>>>>>>> Develop your own process in accordance with the BPMN 2 standard >>>>>>>> Learn Process modeling best practices with Bonita BPM through live >>>>>>>> exercises >>>>>>>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- >>>>>>>> event?utm_ >>>>>>>> >>>>>>>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF >>>>>>>> _______________________________________________ >>>>>>>> sumo-user mailing list >>>>>>>> [email protected] >>>>>>>> https://lists.sourceforge.net/lists/listinfo/sumo-user >>>>>>>> >>>>>>> >>>>>>> >>>>> >>>> >>>> >>>> -- >>>> Deborah Perrotta >>>> PhD Researcher - MIT Portugal >>>> http://pt.linkedin.com/in/deborahperrotta/ >>>> >>> >>> >> >> >> -- >> Deborah Perrotta >> PhD Researcher - MIT Portugal >> http://pt.linkedin.com/in/deborahperrotta/ >> > > -- Deborah Perrotta PhD Researcher - MIT Portugal http://pt.linkedin.com/in/deborahperrotta/ ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
