Skip to content

Commit

Permalink
message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktschwab committed Dec 10, 2023
1 parent 603cbd9 commit 87bfe22
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ class ModelingRulesEvaluator(val parameters: RoadspacesEvaluatorParameters) : Ab
.getOrElse { throw it }
}

val location = "from ${laneId.toIdentifierText()} to ${successorLaneId.toIdentifierText()}"
val location = "${laneId.toIdentifierText()} to successive ${successorLaneId.toIdentifierText()}"

val leftLaneBoundaryTransitionDistance = laneLeftLaneBoundaryPoint.distance(laneLeftLaneBoundarySuccessorPoint)
if (leftLaneBoundaryTransitionDistance >= parameters.laneTransitionDistanceTolerance) {
val infoValues = mapOf("euclideanDistance" to leftLaneBoundaryTransitionDistance)
messageList += DefaultMessage(
"LeftLaneBoundaryTransitionGap",
"Left boundary of lane should be connected to its successive lane (euclidean distance: $leftLaneBoundaryTransitionDistance, successor: $successorContactStart).",
"Left boundary of lane should be connected to its successive lane (euclidean distance: $leftLaneBoundaryTransitionDistance).",
location,
Severity.WARNING,
wasFixed = false,
Expand All @@ -121,7 +121,7 @@ class ModelingRulesEvaluator(val parameters: RoadspacesEvaluatorParameters) : Ab
val infoValues = mapOf("euclideanDistance" to rightLaneBoundaryTransitionDistance)
messageList += DefaultMessage(
"RightLaneBoundaryTransitionGap",
"Right boundary of lane should be connected to its successive lane (euclidean distance: $rightLaneBoundaryTransitionDistance successor: $successorContactStart).",
"Right boundary of lane should be connected to its successive lane (euclidean distance: $rightLaneBoundaryTransitionDistance).",
location,
Severity.WARNING,
wasFixed = false,
Expand Down

0 comments on commit 87bfe22

Please sign in to comment.