fixed spelling.

This commit is contained in:
Axel 2020-08-19 17:33:22 +02:00 committed by Marc Garcia Puig
parent cc4f86b8d6
commit ba812e75a3
3 changed files with 8 additions and 8 deletions

View File

@ -41,8 +41,8 @@ void UStopSignComponent::InitializeSign(const carla::road::Map &Map)
// Get 90% of the half size of the width of the lane
float BoxSize = static_cast<float>(
0.9*Map.GetLaneWidth(signal_waypoint)*0.5);
// Prevent a situation where the road width is 0
// This could happen in a lane that is just appearing
// Prevent a situation where the road width is 0,
// this could happen in a lane that is just appearing
BoxSize = std::max(0.01f, BoxSize);
// Get min and max
double LaneLength = Map.GetLane(signal_waypoint).GetLength();

View File

@ -43,8 +43,8 @@ void UTrafficLightComponent::InitializeSign(const carla::road::Map &Map)
// Get 90% of the half size of the width of the lane
float BoxSize = static_cast<float>(
0.9f*Map.GetLaneWidth(signal_waypoint)*0.5);
// Prevent a situation where the road width is 0
// This could happen in a lane that is just appearing
// Prevent a situation where the road width is 0,
// this could happen in a lane that is just appearing
BoxSize = std::max(0.01f, BoxSize);
// Get min and max
double LaneLength = Map.GetLane(signal_waypoint).GetLength();

View File

@ -41,8 +41,8 @@ void UYieldSignComponent::InitializeSign(const carla::road::Map &Map)
// Get 90% of the half size of the width of the lane
float BoxSize = static_cast<float>(
0.9*Map.GetLaneWidth(signal_waypoint)/2.0);
// Prevent a situation where the road width is 0
// This could happen in a lane that is just appearing
// Prevent a situation where the road width is 0,
// this could happen in a lane that is just appearing
BoxSize = std::max(0.01f, BoxSize);
// Get min and max
double LaneLength = Map.GetLane(signal_waypoint).GetLength();
@ -107,8 +107,8 @@ void UYieldSignComponent::InitializeSign(const carla::road::Map &Map)
auto NextWaypoint = CurrentWaypoint;
float BoxSize = static_cast<float>(
0.9*Map.GetLaneWidth(NextWaypoint)/2.0);
// Prevent a situation where the road width is 0
// This could happen in a lane that is just appearing
// Prevent a situation where the road width is 0,
// this could happen in a lane that is just appearing
BoxSize = std::max(0.01f, BoxSize);
float UEBoxSize = 100*BoxSize;
GenerateCheckBox(Map.ComputeTransform(NextWaypoint), UEBoxSize);