Hi Michael,

it actually works, except for the stops at bus stops. Is there a way to
force the added bus performing a specific route to stop at the bus stops?

Thank you again,
Deborah.

On Mon, Apr 20, 2015 at 10:09 PM, Michael Behrisch <
[email protected]> wrote:

> Hi Deborah,
> so I think this sounds perfectly reasonable. If you just preload all
> route files as additional files and modify the routes such that they
> contain the stops it should work.
>
> Regards,
> Michael
>
> Am 20.04.2015 um 13:43 schrieb Deborah Perrotta:
> > Hi Michael,
> >
> > I haven't defined the vType BUS in this file (let's call it route_28)
> > because it was already defined in the first file in the role of
> additional
> > files. So I have 6 different routes, and in order to load them all as
> > additional files in the beginning, only the first route has the vType BUS
> > defined. (previously, I had the vType defined in all files, but they
> cannot
> > be loaded together due to the error that "already a vType BUS is
> defined").
> >
> > Nevertheless, just to make a test, I changed route_28 file to account for
> > vType BUS definition, and ran the simulation without this file. Later, I
> > tried to add it through TraCI and it returned again that 28_out is an
> > invalid route for vehicle 240000. I also performed another test with the
> > unchanged route_28 file (which means not accounting for defining vType
> > BUS), where I loaded it in the beginning, removed through TraCI and added
> > it back including the vType on the command. I could add a bus to the
> 28out
> > route but it did not perform the stops at bus stops...
> >
> > Summarizing the problem, I believe that if the bus route file is not
> loaded
> > in the beginning as an additional file, it is not available to be later
> > included in the simulation. However, in case I define the vType BUS in
> all
> > my additional files with bus routes, I cannot load them in the beginning
> > due to "vType BUS already defined" error. I appreciate again your inputs
> on
> > this matter.
> >
> > Best,
> > Deborah.
> >
> > On Sun, Apr 19, 2015 at 6:32 PM, Michael Behrisch <
> > [email protected]> wrote:
> >
> >> Hi Deborah,
> >> are you still trying via XML or are you already using TraCI? Your XML
> >> file did not define the vType BUS, so this could not work. If you use it
> >> from TraCI you need to specify the vType explicitly when calling the
> >> vehicle.add method (and it still needs to be defined before in the XML).
> >> Furthermore if you want the route to always contain the stops you need
> >> to specify the stops inside the route:
> >> <route id="28out" edges="..."/>
> >>    <stop busStop=...
> >> </route>
> >>
> >> Regards,
> >> Michael
> >>
> >> Am 17.04.2015 um 19:35 schrieb Deborah Perrotta:
> >>> Hi Michael,
> >>>
> >>> thank you for your answer. I performed this adjustment in the
> additional
> >>> file and it worked somehow, as a vehicle was added with id 240000 and
> >>> respecting route28. However, the vehicle was loaded as a passenger car
> >> and
> >>> was not performing the stops at bus stops. I guess it is a new problem
> >> now:
> >>> how to load the vehicle in this route as a bus and respecting bus
> >>> parameters defined in the additional file?
> >>>
> >>> Answering your second question, I didn't disabled it and I was getting
> >> the
> >>> same message as you did, I guess: Error: Answered with error to command
> >>> 0xc4: Invalid route '28out' for vehicle: '240000'.
> >>>
> >>> Cheers,
> >>> Deborah.
> >>>
> >>> On Fri, Apr 17, 2015 at 5:23 PM, Michael Behrisch <
> >>> [email protected]> wrote:
> >>>
> >>>> Hi,
> >>>> the reason is simple, a nested route definition ignores the route id.
> >>>> You need to define the route outside the vehicle and it should work.
> >>>> Try something like
> >>>> <route id="28out" edges="..."/>
> >>>> <vehicle id="240000" type="BUS" depart="0" color="1,1,0"
> route="28out">
> >>>>   <stop busStop=...
> >>>> </vehicle>
> >>>>
> >>>> It is odd however that the XML schema checking did not fail here. It
> >>>> should have told you that a route id is not valid here. Did you
> >>>> explicitly disable schema checking?
> >>>>
> >>>> Regards,
> >>>> Michael
> >>>>
> >>>> Am 17.04.2015 um 13:07 schrieb Deborah Perrotta:
> >>>>> Hi Michael,
> >>>>> it was just an excerpt indeed. Please see bellow one of my additional
> >>>> files
> >>>>> for a bus route I'm using. You can see that the vehicle is defined,
> >> which
> >>>>> is different from the previous excerpt.
> >>>>>
> >>>>> <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"/>
> >>>>> <busStop id="Warren St @ Circuit St" lane="8639780#5_0" startPos="25"
> >>>>> endPos="40" lines="28"/>
> >>>>> <busStop id="OUT Warren St @ Waverly St" lane="8639780#5_0"
> >>>> startPos="160"
> >>>>> endPos="175" lines="28"/>
> >>>>> <busStop id="OUT Warren St @ Woodbine St" lane="8647878#1_0"
> >>>> startPos="10"
> >>>>> endPos="25" lines="28"/>
> >>>>> <busStop id="Warren St @ ML King Blvd" lane="8647878#2_0"
> >> startPos="105"
> >>>>> endPos="120" lines="28"/>
> >>>>> <busStop id="Warren St @ Townsend St" lane="-8646989+-8648449#13_0"
> >>>>> startPos="10" endPos="25" lines="28"/>
> >>>>> <busStop id="Warren St @ Waumbeck St" lane="-8648449#8_0"
> startPos="5"
> >>>>> endPos="20" lines="28"/>
> >>>>> <busStop id="Warren St @ Brunswick St" lane="-8648449#4_0"
> startPos="5"
> >>>>> endPos="20" lines="28"/>
> >>>>> <busStop id="Warren St @ Crawford St" lane="-8648449#1_0"
> startPos="10"
> >>>>> endPos="25" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Wayne St" lane="8649124#4_0"
> startPos="55"
> >>>>> endPos="70" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Seaver St" lane="8649124#6_0"
> >> startPos="35"
> >>>>> endPos="50" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Columbia Rd" lane="8644670#0_0"
> >>>> startPos="10"
> >>>>> endPos="25" lines="28"/>
> >>>>> <busStop id="OUT Blue Hill Ave @ Charlotte St" lane="8644670#1_0"
> >>>>> startPos="160" endPos="175" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ American Legion Hwy" lane="8644670#5_0"
> >>>>> startPos="20" endPos="35" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Angell St" lane="8644670#6_0"
> >> startPos="85"
> >>>>> endPos="100" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Harvard St" lane="8644670#8_0"
> >> startPos="20"
> >>>>> endPos="35" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Paxton St" lane="8644670#10_0"
> >>>> startPos="235"
> >>>>> endPos="250" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Greenock St" lane="8644670#15_0"
> >>>> startPos="10"
> >>>>> endPos="25" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Hansborough St" lane="8644670#18_0"
> >>>>> startPos="45" endPos="60" lines="28"/>
> >>>>> <busStop id="OUT Blue Hill Ave @ Morton St" lane="8644670#25_0"
> >>>>> startPos="10" endPos="25" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Goodale St" lane="8644670#27_0"
> >>>> startPos="10"
> >>>>> endPos="25" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Wellington Hill St" lane="8644670#28_0"
> >>>>> startPos="145" endPos="160" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ Mattapan St" lane="8644670#31_0"
> >>>> startPos="70"
> >>>>> endPos="85" lines="28"/>
> >>>>> <busStop id="OUT Blue Hill Ave @ Almont St" lane="8644670#35_0"
> >>>>> startPos="10" endPos="25" lines="28"/>
> >>>>> <busStop id="OUT Blue Hill Ave @ Woodhaven St" lane="34729472_0"
> >>>>> startPos="5" endPos="20" lines="28"/>
> >>>>> <busStop id="OUT Blue Hill Ave @ Babson St" lane="8652272#0_0"
> >>>>> startPos="100" endPos="115" lines="28"/>
> >>>>> <busStop id="OUT Blue Hill Ave @ Mattapan Sq" lane="8652272#1_0"
> >>>>> startPos="145" endPos="160" lines="28"/>
> >>>>> <busStop id="Blue Hill Ave @ River St" lane="8642290_0" startPos="10"
> >>>>> endPos="25" lines="28"/>
> >>>>>  <vehicle id="240000" type="BUS" depart="0" color="1,1,0">
> >>>>> <route id="28out" edges="-8643840#0 -116884900#0 8649570#0 8639780#0
> >>>>> 8639780#1 8639780#2 8639780#3 8639780#4 8639780#5 8639780#6 8647878#0
> >>>>> 8647878#1 8647878#2 8651522#0 8651522#2 8651522#3 8651522#4
> >>>>> -8646989+-8648449#13 -8648449#12 -8648449#11 -8648449#9 -8648449#8
> >>>>> -8648449#7 -8648449#6 -8648449#5 -8648449#4 -8648449#2 -8648449#1
> >>>> 8649124#0
> >>>>> 8649124#1 8649124#2 8649124#3 8649124#4 8649124#5 8649124#6 8646757#0
> >>>>> 8646757#1 8639091 8644670#0 8644670#1 8644670#2 8644670#3 8644670#5
> >>>>> 8644670#6 8644670#7 8644670#8 8644670#10 8644670#11 8644670#12
> >> 8644670#13
> >>>>> 8644670#14 8644670#15 8644670#16 8644670#17 8644670#18 8644670#19
> >>>>> 8644670#20 8644670#21 8644670#22 8644670#23 8644670#24 8644670#25
> >>>>> 8644670#26 8644670#27 8644670#28 8644670#29 8644670#30 8644670#31
> >>>>> 8644670#32 8644670#33 8644670#34 8644670#35 8644670#37 34729472
> >>>> 34729473#0
> >>>>> 34729473#1 8652272#0 8652272#1 8652272#2 8652272#3 8652272#4
> 211852999
> >>>>> 9114615#0 9113783 9113906#4 8642290 8651547#0 211852997#0
> >> 211852997#1"/>
> >>>>> <stop busStop="OUT Dudley Station" duration="20"/>
> >>>>> <stop busStop="OUT Warren St @ Kearsarge Ave" duration="20"/>
> >>>>> <stop busStop="Warren St @ Dabney PI" duration="20"/>
> >>>>> <stop busStop="Warren St @ Circuit St" duration="20"/>
> >>>>> <stop busStop="OUT Warren St @ Waverly St" duration="20"/>
> >>>>> <stop busStop="OUT Warren St @ Woodbine St" duration="20"/>
> >>>>> <stop busStop="Warren St @ ML King Blvd" duration="20"/>
> >>>>> <stop busStop="Warren St @ Townsend St" duration="20"/>
> >>>>> <stop busStop="Warren St @ Waumbeck St" duration="20"/>
> >>>>> <stop busStop="Warren St @ Brunswick St" duration="20"/>
> >>>>> <stop busStop="Warren St @ Crawford St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Wayne St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Seaver St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Columbia Rd" duration="20"/>
> >>>>> <stop busStop="OUT Blue Hill Ave @ Charlotte St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ American Legion Hwy" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Angell St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Harvard St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Paxton St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Greenock St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Hansborough St" duration="20"/>
> >>>>> <stop busStop="OUT Blue Hill Ave @ Morton St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Goodale St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Wellington Hill St" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ Mattapan St" duration="20"/>
> >>>>> <stop busStop="OUT Blue Hill Ave @ Almont St" duration="20"/>
> >>>>> <stop busStop="OUT Blue Hill Ave @ Woodhaven St" duration="20"/>
> >>>>> <stop busStop="OUT Blue Hill Ave @ Babson St" duration="20"/>
> >>>>> <stop busStop="OUT Blue Hill Ave @ Mattapan Sq" duration="20"/>
> >>>>> <stop busStop="Blue Hill Ave @ River St" duration="20"/>
> >>>>> <stop busStop="Mattapan Station - South Busway" duration="20"/>
> >>>>> </vehicle>
> >>>>> </additional>
> >>>>>
> >>>>> Thank you in advance,
> >>>>> Deborah.
> >>>>>
> >>>>> On Thu, Apr 16, 2015 at 9:40 PM, Michael Behrisch <
> >>>>> [email protected]> wrote:
> >>>>>
> >>>>>> Hi Deborah,
> >>>>>> can you share a completely working excerpt of your scenario? there
> >> seems
> >>>>>> to be a typo (or errors due to the omissions) in the lines you sent:
> >>>>>>>>>>> <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 route element is closed twice and also not all bus stops are
> >>>> defined.
> >>>>>>
> >>>>>> Regards,
> >>>>>> Michael
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> >
>
>


-- 
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

Reply via email to