Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mobile_robotics
ADC
libraries
OpenRoadEd
Commits
6b7ec1f8
Commit
6b7ec1f8
authored
Sep 20, 2022
by
Fernando Herrero
Browse files
Add arc geometry case to OpenDriveXmlParser
parent
00f89af2
Changes
1
Hide whitespace changes
Inline
Side-by-side
OpenRoadEd/OpenDrive/OpenDriveXmlParser.cpp
View file @
6b7ec1f8
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment