Review changes.
This commit is contained in:
parent
08fd7585e5
commit
f324c73b10
|
@ -253,21 +253,6 @@ void ACarlaGameModeBase::DebugShowSignals(bool enable)
|
|||
FColor(0, 255, 0),
|
||||
true
|
||||
);
|
||||
|
||||
FString Text;
|
||||
Text += "Id: ";
|
||||
Text += FString(ODSignal->GetSignalId().c_str());
|
||||
Text += FString(" - Name: ");
|
||||
Text += FString(ODSignal->GetName().c_str());
|
||||
|
||||
// UKismetSystemLibrary::DrawDebugString (
|
||||
// World,
|
||||
// Location + Up * 250.0f,
|
||||
// Text,
|
||||
// nullptr,
|
||||
// FLinearColor(0, 255, 0, 255),
|
||||
// 100000000.0
|
||||
// );
|
||||
}
|
||||
|
||||
TArray<const cre::RoadInfoSignal*> References;
|
||||
|
|
|
@ -38,19 +38,6 @@ void CarlaRecorderStates::Add(const CarlaRecorderStateTrafficLight &State)
|
|||
|
||||
void CarlaRecorderStates::Write(std::ofstream &OutFile)
|
||||
{
|
||||
// some check
|
||||
float value = 0.0f;
|
||||
for (auto &state : StatesTrafficLights)
|
||||
{
|
||||
if (value == 0.0f && state.ElapsedTime != 0.0f)
|
||||
value = state.ElapsedTime;
|
||||
else if (value != 0.0f && state.ElapsedTime != 0.0f && value != state.ElapsedTime)
|
||||
{
|
||||
// error
|
||||
UE_LOG(LogCarla, Warning, TEXT("Some traffic light has different time than others: %f - %f"), value, state.ElapsedTime);
|
||||
}
|
||||
}
|
||||
|
||||
// write the packet id
|
||||
WriteValue<char>(OutFile, static_cast<char>(CarlaRecorderPacketId::State));
|
||||
|
||||
|
|
Loading…
Reference in New Issue