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
