Commit 8e015d91 authored by Uwe Woessner's avatar Uwe Woessner
Browse files

fixed copy-paste typo in GetOrientation


Signed-off-by: Uwe Woessner's avatarhpcwoess <woessner@hlrs.de>
parent 06077355
......@@ -255,12 +255,12 @@ std::optional<double> EgoAgent::GetLaneCurvature(double distance, int relativeLa
double EgoAgent::GetLaneDirection(int relativeLane) const
{
return world->GetLaneWidth(GetRoadId(), GetLaneIdFromRelative(relativeLane), GetMainLocatePosition().roadPosition.s);
return world->GetLaneDirection(GetRoadId(), GetLaneIdFromRelative(relativeLane), GetMainLocatePosition().roadPosition.s);
}
std::optional<double> EgoAgent::GetLaneDirection(double distance, int relativeLane) const
{
return world->GetLaneWidth(wayToTarget, rootOfWayToTargetGraph, GetLaneIdFromRelative(relativeLane), GetMainLocatePosition().roadPosition.s, distance).at(0);
return world->GetLaneDirection(wayToTarget, rootOfWayToTargetGraph, GetLaneIdFromRelative(relativeLane), GetMainLocatePosition().roadPosition.s, distance).at(0);
}
const GlobalRoadPosition& EgoAgent::GetMainLocatePosition() const
......
Markdown is supported
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