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