From 216cd5c10c9800399ce4c11af99ee154a04b8668 Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Tue, 27 Oct 2020 18:25:53 +0100
Subject: [PATCH] Solved the error messages when processing the roadMark tag:
 all were the same.

---
 OpenRoadEd/OpenDrive/Lane.cpp               |  2 +-
 OpenRoadEd/OpenDrive/OpenDriveXmlParser.cpp | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/OpenRoadEd/OpenDrive/Lane.cpp b/OpenRoadEd/OpenDrive/Lane.cpp
index 4e40fbb..3549fa4 100644
--- a/OpenRoadEd/OpenDrive/Lane.cpp
+++ b/OpenRoadEd/OpenDrive/Lane.cpp
@@ -1506,4 +1506,4 @@ void LaneHeight::SetS(double value)
 void LaneHeight::SetInner(double value)
 {	mInner=value;	}
 void LaneHeight::SetOuter(double value)
-{	mOuter=value;	}
\ No newline at end of file
+{	mOuter=value;	}
diff --git a/OpenRoadEd/OpenDrive/OpenDriveXmlParser.cpp b/OpenRoadEd/OpenDrive/OpenDriveXmlParser.cpp
index cf93e24..ab2b3eb 100644
--- a/OpenRoadEd/OpenDrive/OpenDriveXmlParser.cpp
+++ b/OpenRoadEd/OpenDrive/OpenDriveXmlParser.cpp
@@ -783,7 +783,7 @@ bool OpenDriveXmlParser::ReadLaneWidth(Lane* lane, TiXmlElement *node)
 
 	if (checker!=TIXML_SUCCESS)
 	{
-		cout<<"Error parsing Lane Weight attributes"<<endl;
+		cout<<"Error parsing Lane Width attributes"<<endl;
 		return false;
 	}
 
@@ -811,7 +811,7 @@ bool OpenDriveXmlParser::ReadLaneRoadMark(Lane* lane, TiXmlElement *node)
 	
 	if (checker!=TIXML_SUCCESS)
 	{
-		cout<<"Error parsing Lane Weight attributes"<<endl;
+		cout<<"Error parsing Lane road mark attributes"<<endl;
 		return false;
 	}
   else
@@ -852,7 +852,7 @@ bool OpenDriveXmlParser::ReadLaneMaterial(Lane* lane, TiXmlElement *node)
 	checker+=node->QueryDoubleAttribute("roughness",&roughness);
 	if (checker!=TIXML_SUCCESS)
 	{
-		cout<<"Error parsing Lane Weight attributes"<<endl;
+		cout<<"Error parsing Lane material attributes"<<endl;
 		return false;
 	}
 
@@ -879,7 +879,7 @@ bool OpenDriveXmlParser::ReadLaneVisibility(Lane* lane, TiXmlElement *node)
 	checker+=node->QueryDoubleAttribute("right",&right);
 	if (checker!=TIXML_SUCCESS)
 	{
-		cout<<"Error parsing Lane Weight attributes"<<endl;
+		cout<<"Error parsing Lane visibility attributes"<<endl;
 		return false;
 	}
 
@@ -899,7 +899,7 @@ bool OpenDriveXmlParser::ReadLaneSpeed(Lane* lane, TiXmlElement *node)
 	checker+=node->QueryDoubleAttribute("max",&max);
 	if (checker!=TIXML_SUCCESS)
 	{
-		cout<<"Error parsing Lane Weight attributes"<<endl;
+		cout<<"Error parsing Lane speed attributes"<<endl;
 		return false;
 	}
 
@@ -919,7 +919,7 @@ bool OpenDriveXmlParser::ReadLaneAccess(Lane* lane, TiXmlElement *node)
 	checker+=node->QueryStringAttribute("restriction",&restriction);
 	if (checker!=TIXML_SUCCESS)
 	{
-		cout<<"Error parsing Lane Weight attributes"<<endl;
+		cout<<"Error parsing Lane access attributes"<<endl;
 		return false;
 	}
 
@@ -941,7 +941,7 @@ bool OpenDriveXmlParser::ReadLaneHeight(Lane* lane, TiXmlElement *node)
 	checker+=node->QueryDoubleAttribute("outer",&outer);
 	if (checker!=TIXML_SUCCESS)
 	{
-		cout<<"Error parsing Lane Weight attributes"<<endl;
+		cout<<"Error parsing Lane height attributes"<<endl;
 		return false;
 	}
 
-- 
GitLab