|
@@ -161,6 +161,8 @@ bool OpenDriveXmlWriter::WriteRoad(TiXmlElement *node, Road *road)
|
|
|
WriteLanes(nodeRoad, road);
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
//Proceed to Objects
|
|
|
WriteObjects(nodeRoad, road);
|
|
|
|
|
@@ -697,21 +699,29 @@ bool OpenDriveXmlWriter::WriteLaneOffset(TiXmlElement *node, LaneOffset *laneOff
|
|
|
TiXmlElement* nodeLaneSection = new TiXmlElement("laneOffset");
|
|
|
node->LinkEndChild(nodeLaneSection);
|
|
|
|
|
|
- std::stringstream ss;
|
|
|
- ss << setprecision(16) << setiosflags (ios_base::scientific) << s;
|
|
|
- nodeLaneSection->SetAttribute("s",ss.str());
|
|
|
+ nodeLaneSection->SetDoubleAttribute("s",laneOffset->GetS());
|
|
|
+ nodeLaneSection->SetDoubleAttribute("a",laneOffset->Geta());
|
|
|
+ nodeLaneSection->SetDoubleAttribute("b",laneOffset->Getb());
|
|
|
+ nodeLaneSection->SetDoubleAttribute("c",laneOffset->Getc());
|
|
|
+ nodeLaneSection->SetDoubleAttribute("d",laneOffset->Getd());
|
|
|
+
|
|
|
+// std::stringstream ss;
|
|
|
+// ss << setprecision(16) << setiosflags (ios_base::scientific) << s;
|
|
|
+// nodeLaneSection->SetAttribute("s",ss.str());
|
|
|
+
|
|
|
+
|
|
|
+// ss << setprecision(16) << setiosflags (ios_base::scientific) << laneOffset->Geta();
|
|
|
+// nodeLaneSection->SetAttribute("a",ss.str());
|
|
|
|
|
|
- ss << setprecision(16) << setiosflags (ios_base::scientific) << laneOffset->Geta();
|
|
|
- nodeLaneSection->SetAttribute("a",ss.str());
|
|
|
|
|
|
- ss << setprecision(16) << setiosflags (ios_base::scientific) << laneOffset->Getb();
|
|
|
- nodeLaneSection->SetAttribute("b",ss.str());
|
|
|
+// ss << setprecision(16) << setiosflags (ios_base::scientific) << laneOffset->Getb();
|
|
|
+// nodeLaneSection->SetAttribute("b",ss.str());
|
|
|
|
|
|
- ss << setprecision(16) << setiosflags (ios_base::scientific) << laneOffset->Getc();
|
|
|
- nodeLaneSection->SetAttribute("c",ss.str());
|
|
|
+// ss << setprecision(16) << setiosflags (ios_base::scientific) << laneOffset->Getc();
|
|
|
+// nodeLaneSection->SetAttribute("c",ss.str());
|
|
|
|
|
|
- ss << setprecision(16) << setiosflags (ios_base::scientific) << laneOffset->Getd();
|
|
|
- nodeLaneSection->SetAttribute("d",ss.str());
|
|
|
+// ss << setprecision(16) << setiosflags (ios_base::scientific) << laneOffset->Getd();
|
|
|
+// nodeLaneSection->SetAttribute("d",ss.str());
|
|
|
|
|
|
return true;
|
|
|
}
|