JHMeusener / osm2xodr

converter for OpenStreetMaps to OpenDrive roads - for use with Carla or other things
GNU General Public License v3.0
165 stars 51 forks source link

RuntimeWarning #8

Open gemyasser opened 3 years ago

gemyasser commented 3 years ago

I need help here ... @FXCarl @JHMeusener @

I am trying to convert the OSM file, ok it's converted but with this warning. I need a solution for this or at least to understand why I get this warning !?

d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\utils.py:241: RuntimeWarning: invalid value encountered in double_scalars r2 = ( y1*np.cos(hdg1) + np.sin(hdg1) * (x2-x2)-y2*np.cos(hdg1)) /((np.sin(hdg2)*np.cos(hdg1) - np.sin(hdg1) *np.cos(hdg2) )) d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\utils.py:241: RuntimeWarning: divide by zero encountered in double_scalars r2 = ( y1*np.cos(hdg1) + np.sin(hdg1) * (x2-x2)-y2*np.cos(hdg1)) /((np.sin(hdg2)*np.cos(hdg1) - np.sin(hdg1) *np.cos(hdg2) )) d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\utils.py:247: RuntimeWarning: invalid value encountered in double_scalars r1 = (-y1*np.cos(hdg2)+ y2*np.cos(hdg2) + np.sin(hdg2) *x1-np.sin(hdg2) *x2 )/(np.sin(hdg1) * np.cos(hdg2) - np.sin(hdg2) *np.cos(hdg1)) d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\arcCurves.py:95: RuntimeWarning: divide by zero encountered in double_scalars curvature = -deltaHdg / length d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\osmParsing.py:798: RuntimeWarning: invalid value encountered in double_scalars "steigung":(giveHeight(xendline,yendline,minRemoved=True)-giveHeight(xarc,yarc,minRemoved=True))/length,"length":length}) d:\osm2xodr\osm2xodr - mo7yasser\OSMParser\osmParsing.py:775: RuntimeWarning: invalid value encountered in double_scalars self.laneOffsetB = -(self.laneOffsetA-laneOffsetEnd)/length