Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Lane choice when stopping beside the road
  • From: <Maria.Armellini@xxxxxx>
  • Date: Thu, 19 Nov 2020 22:36:58 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:8JC0PBbx4Nq0sj8U/V8xRLH/LSx+4OfEezUN459isYplN5qZr8q/bnLW6fgltlLVR4KTs6sC17OJ9fm7BidZu87JmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MRe7oR/MusQYg4ZuJbs9xgXVrnBVZ+lY2GRkKE6JkR3h/Mmw5plj8ypRu/Il6cFNVLjxcro7Q7JFEjkoKng568L3uxbNSwuP/WYcXX4NkhVUGQjF7Qr1UYn3vyDnq+dywiiaPcnxTbApRTSv6rpgRRH0hCsbMTMy7WfagdFygq1GuhKsvxxxzZDJboGJOvRwfa3dctEbRWVdUclcTDZODp++b4YVE+YNIfhUoo/grFUOtxu+AgysCfvoxzFPnHD2x6w63P47HQzaxgwgGswBsHDQrNX0MqcSUPu4w7TMzTXZdf9ZxCny5ZHOfxs8rv6CQah+ftDNyUkzCQzFlFOQpJTnMj6WyukAs2aW4vZvWOyvhWMqqw9/rySry8ool4TFmJ4Zx1/a+Ct3xIs4KsO0RVN0bNOlH5ZdqT2WOol5T84+RWxjpSg0yroDuZGhfSgKzowqyAPba/ydaYSH/wzsWeCMKjl7nHJoYK+ziwqo/US9yeDxWdO43EtEoydGiNXAqG4B2wTO5sWFVPdx5Fmt1SuV2wzO6OxJIFo4mbfdJpU82LA/jIATvl7GHiLunUX2i7KZeVs89+iz7uTnfq3mppiBN49okg3+Mrohmsi4AekgPAYAWWaV9+u82rPj+kP3Q7JEgOconqXHv57VJNoWqrS4Aw9TzoYj8QywAy2739Qch3kLNk9Kdwyfg4joPVHBPuz4AO+ij1iwijtn2vPLM7L7DpnQIHXOk63tcahj50JEzQo819Ff55ZaCrEbJ/LzX1f8utvCAR8jMgy72fzrBcln1oMbR22PBquZMKLUsV+J/e8gPu2MZJUPtDngNfcp/+TugmMhmV8BYamp2oMaaGulHvRjJEWVeGfsgswfHmcQpQcxUvDliFmDUT5LfHa9Qbgw5jYhCIKpXs//QdX5m6GE22KmBZBMTm1NDlGUCnqucJ+LDaQiciWXd5tEmyYFXP6IUYos0RWvsg7Sx759aObZrH5L/an/3cR4srWA3So58iZ5WpyQ
  • Ironport-sdr: WcukrENF5vjbPtZWpTsfH9MNx/MJCSBj2xQuz4R0TUF9CArxhSmfoBrnWlV9vpC/zGdXxAMVGc f7mgU42VymJw==
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWvsA21oaw1cqzZkWfSS2nMA69YqnQCZMS
  • Thread-topic: [sumo-user] Lane choice when stopping beside the road

Hi Chris,

You could write a python script and use sumolib for that. You can check which is the first lane of the edge that allows the vClass that you need by using the commands getEdge(), getLane() and allows(). See https://sumo.dlr.de/docs/Tools/Sumolib.html and https://sumo.dlr.de/daily/pydoc/sumolib.html

I think that the option of only defining the edge for the stop and that the vehicle then automatically selects the lane located at the most right is not yet implemented in sumo.

Regards,
Giuliana
Von: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> im Auftrag von Chris Abraham <chrisbrhm@xxxxxxxxx>
Gesendet: Donnerstag, 19. November 2020 23:05:48
An: sumo-user@xxxxxxxxxxx
Betreff: [sumo-user] Lane choice when stopping beside the road
 
Hi all,

I would like define a taxi which make a few stops *beside* some edges. So I defined my stops with `parking="true"` as shown below:

`< stop lane="edge_0" until="50.00" parking="true" />`

However, when I ran the simulation, I got an error saying that the taxi is not allowed to stop on lane `edge_0`. I realised that `edge_0` is a sidewalk which doesn't allow taxis. However `edge_1` is a road and it does allow taxis. So I redefine the above stop, but with `lane="edge_1"`. When I rerun the simulation it then works.

I would like to find out if there is an easier way than redefining the lane index for each and every stop that encounters an error. I want my taxis to stop *beside* the edges, so it shouldn't matter what lane the I select... It would be nice if I could just define the *edge* rather than the *lane* when defining the stop (i.e. `< stop edge="edge" until="50.00" parking="true" />`).

Please see the attached figure if my explanation didn't make sense.

Chris

Back to the top