Yes, each edge is modeled with constant width.. If you need to model changing widths, you currently have to split the road into several edges. However, unless you use the new sublane model of SUMO (release soon in 0.27.0), vehicles will ignore edge-widths anyway. regards, Jakob
2016-07-04 9:33 GMT+02:00 Marcus Müller <[email protected]>: > Hello Jakob, > > it helps me a lot to know that is not a built in feature yet and thank you > very much for your recommandation. I'll have a look how the function works. > I guess this means that each road is assumed to be perfect with a constant > width. > > Thank you again, > Marcus > > Am 04.07.2016 um 09:05 schrieb Jakob Erdmann <[email protected]>: > > Hello, > there is no API for retrieving road boundaries at the moment. Netconvert > computes them dynamically using the function > src/utils/geom/PositionVector::move2side(). You could just port the code to > matlab. > regards, > Jakob > > 2016-06-30 15:19 GMT+02:00 Marcus Müller <[email protected]>: > >> Dear Sumo experts, >> >> I am looking for a way to reconstruct the SUMO road geometry within an >> external Matlab script as good as possible. As the getShape method of the >> lane-class provides 'only' a line of support points along which the lane >> runs I wonder whether it is possible to determine the exact positions of >> the (left and right) borders of a road? >> As roads and especially junctions don't look the same all over the >> network, >> I would like to retrieve as many coordinates as possible describing the >> actual geometry of the edges, lanes and junctions surrounding a randomly >> selected vehicle. >> >> I'm thinking about subscribing to edges and junctions and by that >> retrieving all lanes and junctions around my car. Next I would like to >> retrieve a list of x and y points which describe the shape of the road or >> lane and the junction(s). Plotting all points should lead to the contours >> of the roads and junctions close to my car. >> >> Is there a way to do this programatically? >> >> Thank you very much, >> >> Marcus >> >> ------------------------------------------------------------------------------ >> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San >> Francisco, CA to explore cutting-edge tech and listen to tech luminaries >> present their vision of the future. This family event has something for >> everyone, including kids. Get more information and register today. >> http://sdm.link/attshape >> _______________________________________________ >> sumo-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/sumo-user >> > > ------------------------------------------------------------------------------ Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San Francisco, CA to explore cutting-edge tech and listen to tech luminaries present their vision of the future. This family event has something for everyone, including kids. Get more information and register today. http://sdm.link/attshape _______________________________________________ sumo-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sumo-user
