Fix SemLidar (correction of the last commit)

This commit is contained in:
Daniel Santos-Olivan 2020-10-06 10:46:02 +02:00 committed by Marc Garcia Puig
parent 49e5ef05a7
commit 509ed941dd
1 changed files with 1 additions and 3 deletions

View File

@ -165,11 +165,9 @@ void ARayCastSemanticLidar::ComputeRawDetection(const FHitResult& HitInfo, const
Detection.object_tag = static_cast<uint32_t>(HitInfo.Component->CustomDepthStencilValue);
if (actor != nullptr) {
Detection.object_tag = static_cast<uint32_t>(crp::CityObjectLabel::None);
FActorView view = Registry.Find(actor);
if(view.IsValid())
const FActorInfo* ActorInfo = view.GetActorInfo();
Detection.object_idx = view.GetActorId();
}
else {
UE_LOG(LogCarla, Warning, TEXT("Actor not valid %p!!!!"), actor);