Commit 6b7ec1f8 authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Add arc geometry case to OpenDriveXmlParser

parent 00f89af2
......@@ -337,6 +337,10 @@ bool OpenDriveXmlParser::ReadPlanView(Road* road, TiXmlElement *node)
{
ReadGeometryBlock(road, subNode,3); //load a polynom spline block
}
else if (subNodeType->ValueStr().compare("arc")==0)
{
ReadGeometryBlock(road, subNode,4); //load a arc block
}
else
cout<<"Unsupported geometry type for road " << road->GetRoadName() << ": " << subNodeType->ValueStr() << endl;
......@@ -370,6 +374,8 @@ bool OpenDriveXmlParser::ReadGeometryBlock (Road* road, TiXmlElement *&node, sho
break;
case 3:
ReadGeometry(geomBlock, node, 4);
case 4:
ReadGeometry(geomBlock, node, 2);
break;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment