- The error is now fixed.
- you are correct about the modes
- vType also applies if mode is 'bicycle'
- pType is the type of the person (id of a  <vType> element)
- walking is always possible

regards,
Jaob

2018-05-30 11:13 GMT+02:00 Lara CODECA <[email protected]>:

> Hello Jakob,
>
> It's happening the same thing with the intermodal counterpart:
> findIntermodalRoute()
>
> Error: Answered with error to command 0xab: Invalid vehicle type
> 'bicycle', it is not allowed on
> the start edge. Traceback (most recent call last):
>   File "person.mobilitygen.trips.py", line 590, in <module>
>     _main()
>   File "person.mobilitygen.trips.py", line 577, in _main
>     trips = _compute_trips_per_type(conf, taz_weights, buildings_weights,
> net, parkings)
>   File "person.mobilitygen.trips.py", line 473, in _compute_trips_per_type
>     config['taz'][area['to']])
>   File "person.mobilitygen.trips.py", line 378, in
> _find_allowed_pair_traci
>     modes=_modes, ptype=_ptype, vtype=_vtype)
>   File 
> "/home/drone/Applications/SUMO/sumo-git/sumo/tools/traci/_simulation.py",
> line 377, in
> findIntermodalRoute answer = self._connection._checkResult(
> tc.CMD_GET_SIM_VARIABLE,
> tc.FIND_INTERMODAL_ROUTE, "") File
> "/home/drone/Applications/SUMO/sumo-git/sumo/tools/traci/connection.py",
> line 155, in _checkResult
> result = self._sendExact() File
> "/home/drone/Applications/SUMO/sumo-git/sumo/tools/traci/connection.py",
> line 105, in _sendExact
> raise TraCIException(prefix[1], _RESULTS[prefix[2]], err) 
> traci.exceptions.TraCIException:
> Invalid
> vehicle type 'bicycle', it is not allowed on the start edge.
> Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
> Quitting (on error).
>
> Additionally, is there a place where can I find the documentation for the
> parameters of the
> function? I suppose that "modes" are "public", "bicycle", and "car". And
> if the mode is car, I can
> specify the vtype.
> But what is ptype?
> What about walking? Can it be specified or given that is the default
> fallback option, it can't?
>
> Thanks in advance!
>
> Lara
>
> On Tue, 29 May 2018 10:58:31 +0200
> Jakob Erdmann <[email protected]> wrote:
>
> > Thank you for reporting. It is fixed now (
> > https://github.com/eclipse/sumo/issues/4121).
> >
> > 2018-05-29 9:09 GMT+02:00 Lara CODECA <[email protected]>:
> >
> > > Good morning Jakob,
> > >
> > > this is the stack trace:
> > >
> > > Warning: No connection between edge '-207' and edge '-208' found.
> > > Error: Vehicle '' is not allowed to depart on any lane of its first
> edge.
> > > Quitting (on error).
> > > Traceback (most recent call last):
> > >   File "mobilitygen.trips.py", line 431, in <module>
> > >     _main()
> > >   File "mobilitygen.trips.py", line 419, in _main
> > >     trips = _compute_trips_per_type(conf, taz_weights, net, parkings)
> > >   File "mobilitygen.trips.py", line 322, in _compute_trips_per_type
> > >     config['taz'][area['to']], graph, net)
> > >   File "mobilitygen.trips.py", line 249, in _find_allowed_pair
> > >     ret = traci.simulation.findRoute(from_edge, to_edge, vtype=vType)
> > >   File "/home/drone/Applications/SUMO/sumo-git/sumo/tools/
> traci/_simulation.py",
> > > line 357, in
> > > findRoute return _readStage(self._connection._
> checkResult(tc.CMD_GET_SIM_VARIABLE,
> > > tc.FIND_ROUTE,
> > > "")) File "/home/drone/Applications/SUMO/sumo-git/sumo/tools/
> traci/connection.py",
> > > line 155, in
> > > _checkResult result = self._sendExact()
> > >   File "/home/drone/Applications/SUMO/sumo-git/sumo/tools/
> traci/connection.py",
> > > line 98, in
> > > _sendExact raise FatalTraCIError("connection closed by SUMO")
> > > traci.exceptions.FatalTraCIError: connection closed by SUMO
> > >
> > > The only thing I do in the script with TraCI is opening the connection,
> > > calling thousands of
> > > findRoute and then closing it at the end.
> > >
> > > If you want I can send you everything, but it's not going to be a small
> > > example, I tried, and just
> > > to give you something to run is going to be dozens of files.
> > >
> > > Thanks Jakob :)
> > >
> > > Regards,
> > > Lara
> > >
> > > On Mon, 28 May 2018 19:27:00 +0200
> > > Jakob Erdmann <[email protected]> wrote:
> > >
> > > > Hello,
> > > > neither of the errors you mentioned should stop sumo from working
> when
> > > > triggered via TraCI. They are expected to raise a TraCIException
> which
> > > you
> > > > can catch in your script.
> > > > Only a FatalTraCIError signals an unrecoverable error. It could help
> if
> > > you
> > > > provide a stack trace of the error from your script.
> > > > regards,
> > > > Jakob
> > > >
> > > > 2018-05-28 16:55 GMT+02:00 Lara CODECA <[email protected]>:
> > > >
> > > > > Dear All,
> > > > >
> > > > > I'm trying to use "findRoute" from a python script using TraCI.
> > > > >
> > > > > I need to see if there is a route between two edges for a
> specific
> > > vType.
> > > > >
> > > > > I'm loading a simulation using traci.start(['sumo', '-c',
> > > 'sim.sumocfg'])
> > > > > and then, I call
> > > > > traci.simulation.findRoute(from_edge, to_edge, vtype=vType) in
> order
> > > to
> > > > > find it.
> > > > >
> > > > > I solved the "Error"
> > > > > Warning: No connection between edge '218' and edge '-372' found.
> > > > > by adding <ignore-route-errors value="true"/> to the
> configuration
> > > file.
> > > > >
> > > > > Unfortunately I'm not able to handle the following one:
> > > > > Error: Vehicle '' is not allowed to depart on any lane of its
> first
> > > edge.
> > > > >
> > > > > I tried with a try-except, but given that the error is on the
> SUMO
> > > side,
> > > > > this approach is useless.
> > > > >
> > > > > I need to know if the route is possible, and in case is not,
> change
> > > edges.
> > > > > I'm using this to
> > > > > implement a mobility generator. Can I do it with findRoute and
> > > > > findIntermodalRoute or is not
> > > > > possible?
> > > > >
> > > > > I'm using:
> > > > > - Debian Unstable/Experimental
> > > > > - Eclipse SUMO Version b2f76e2749
> > > > >         Build features: Linux-4.16.0-1-amd64 Proj GUI GDAL FFmpeg
> OSG
> > > > > GL2PS SWIG
> > > > >
> > > > > Thanks in advance.
> > > > >
> > > > > Regards,
> > > > > Lara
> > > > >
> > > > > --
> > > > > Lara CODECA
> > > > > Postdoc
> > > > > Tel : 04.93.00.81.51
> > > > >
> > > > > EURECOM
> > > > > Campus SophiaTech
> > > > > http://www.eurecom.fr/
> > > > > _______________________________________________
> > > > > sumo-user mailing list
> > > > > [email protected]
> > > > > To change your delivery options, retrieve your password, or
> unsubscribe
> > > > > from this list, visit
> > > > > https://dev.eclipse.org/mailman/listinfo/sumo-user
> > > > >
> > >
> > >
> > >
> > > --
> > > Lara CODECA
> > > Postdoc
> > > Tel : 04.93.00.81.51
> > >
> > > EURECOM
> > > Campus SophiaTech
> > > http://www.eurecom.fr/
> > >
>
>
>
> --
> Lara CODECA
> Postdoc
> Tel : 04.93.00.81.51
>
> EURECOM
> Campus SophiaTech
> http://www.eurecom.fr/
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

Reply via email to