|
CARLA
|
Sets actors' custom depth stencil value for semantic segmentation according to their meshes. More...
#include <Tagger.h>
Public Member Functions | |
| ATagger () | |
Static Public Member Functions | |
| static FLinearColor | GetActorLabelColor (const AActor &Actor, const crp::CityObjectLabel &Label) |
| static crp::CityObjectLabel | GetLabelByFolderName (const FString &String) |
| Method that computes the label corresponding to a folder path. | |
| template<typename T> | |
| static crp::CityObjectLabel | GetLabelByPath (const T *Object) |
| Method that computes the label corresponding to an specific object using the folder path in which it is stored. | |
| template<typename T> | |
| static crp::CityObjectLabel | GetLabelByPath (TObjectPtr< T > Object) |
| Method that computes the label corresponding to an specific object using the folder path in which it is stored. | |
| static FString | GetTagAsString (crp::CityObjectLabel Tag) |
| Transform a CityObjectLabel into a string. | |
| static crp::CityObjectLabel | GetTagFromName (const FName &Tag) |
| Transform a tag name into a CityObjectLabel. | |
| static crp::CityObjectLabel | GetTagFromString (FString Tag) |
| Transform a string into a CityObjectLabel. | |
| static crp::CityObjectLabel | GetTagOfTaggedComponent (const UPrimitiveComponent &Component) |
| Retrieve the tag of an already tagged component. | |
| static void | GetTagsOfTaggedActor (const AActor &Actor, TSet< crp::CityObjectLabel > &Tags) |
| Retrieve the tags of an already tagged actor. | |
| static bool | IsThing (const crp::CityObjectLabel &Label) |
| static bool | MatchComponent (const UPrimitiveComponent &Component, crp::CityObjectLabel Tag) |
| Return true if Component has been tagged with the given Tag. | |
| static void | SetStencilValue (UPrimitiveComponent &Component, const uint32 ActorID, const crp::CityObjectLabel &Label, const bool bSetRenderCustomDepth) |
| static void | TagActor (const AActor &Actor, bool bTagForSemanticSegmentation) |
| Set the tag of an actor. | |
| static void | TagActorsInLevel (ULevel &Level, bool bTagForSemanticSegmentation) |
| static void | TagActorsInLevel (UWorld &World, bool bTagForSemanticSegmentation) |
| Set the tag of every actor in level. | |
Private Attributes | |
| bool | bTagForSemanticSegmentation = false |
| bool | bTriggerTagObjects = false |
Sets actors' custom depth stencil value for semantic segmentation according to their meshes.
Non-static functions present so it can be dropped into the scene for testing purposes.
| ATagger::ATagger | ( | ) |
Definition at line 313 of file Tagger.cpp.
|
static |
Definition at line 97 of file Tagger.cpp.
References CastEnum().
|
static |
Method that computes the label corresponding to a folder path.
Definition at line 28 of file Tagger.cpp.
References carla::rpc::Bicycle, carla::rpc::Bridge, carla::rpc::Buildings, carla::rpc::Bus, carla::rpc::Car, carla::rpc::Dynamic, carla::rpc::Fences, carla::rpc::Ground, carla::rpc::GuardRail, carla::rpc::Motorcycle, carla::rpc::None, carla::rpc::Other, carla::rpc::Pedestrians, carla::rpc::Poles, carla::rpc::RailTrack, carla::rpc::Rider, carla::rpc::RoadLines, carla::rpc::Roads, carla::rpc::Rock, carla::rpc::Sidewalks, carla::rpc::Sky, carla::rpc::Static, String, carla::rpc::Terrain, carla::rpc::TrafficLight, carla::rpc::TrafficSigns, carla::rpc::Train, carla::rpc::Truck, carla::rpc::Vegetation, carla::rpc::Walls, and carla::rpc::Water.
Referenced by GetLabelByPath().
|
inlinestatic |
Method that computes the label corresponding to an specific object using the folder path in which it is stored.
Definition at line 81 of file Tagger.h.
References GetLabelByFolderName(), and carla::rpc::None.
Referenced by GetLabelByPath(), and TagActor().
|
inlinestatic |
Method that computes the label corresponding to an specific object using the folder path in which it is stored.
Definition at line 128 of file Tagger.h.
References GetLabelByPath().
|
static |
Transform a CityObjectLabel into a string.
Definition at line 269 of file Tagger.cpp.
References CARLA_GET_LABEL_STR, Other, and TrafficLight.
Referenced by ATagger_SetLabelTag(), FCarlaServer::FPimpl::BindActions(), CarlaGetRelevantTagAsString(), CVarOpenDriveStreetFurniture(), GetTagFromName(), UObjectRegister::RegisterTrafficLight(), and TagActor().
|
static |
Transform a tag name into a CityObjectLabel.
Definition at line 192 of file Tagger.cpp.
References GetTagAsString(), GetTagFromString(), and carla::rpc::Rock.
Referenced by GetTagOfTaggedComponent().
|
static |
Transform a string into a CityObjectLabel.
Definition at line 235 of file Tagger.cpp.
References carla::rpc::Bicycle, carla::rpc::Bridge, carla::rpc::Buildings, carla::rpc::Bus, carla::rpc::Car, carla::rpc::Dynamic, carla::rpc::Fences, carla::rpc::Ground, carla::rpc::GuardRail, carla::rpc::Motorcycle, carla::rpc::None, carla::rpc::Other, carla::rpc::Pedestrians, carla::rpc::Poles, carla::rpc::RailTrack, carla::rpc::Rider, carla::rpc::RoadLines, carla::rpc::Roads, carla::rpc::Rock, carla::rpc::Sidewalks, carla::rpc::Sky, carla::rpc::Static, carla::rpc::Terrain, carla::rpc::TrafficLight, carla::rpc::TrafficSigns, carla::rpc::Train, carla::rpc::Truck, carla::rpc::Vegetation, carla::rpc::Walls, and carla::rpc::Water.
Referenced by ATagger_SetLabelTag(), ARayCastSemanticLidar::ComputeRawDetection(), GetTagFromName(), and FCarlaShowOnlyFilter::ParseLabels().
|
static |
Retrieve the tag of an already tagged component.
Definition at line 213 of file Tagger.cpp.
References GetTagFromName().
Referenced by URayTracer::CastRay(), ARayCastSemanticLidar::ComputeRawDetection(), ACarlaGameModeBase::EnableOverlapEvents(), UBoundingBoxCalculator::GetBBsOfActor(), UBoundingBoxCalculator::GetBBsOfSkeletalMeshComponents(), UBoundingBoxCalculator::GetBBsOfStaticMeshComponents(), CaService::GetStationType(), GetTagsOfTaggedActor(), UBoundingBoxCalculator::GetVehicleBoundingBox(), UCarlaEpisode::IsWalkerInsideBuilding(), MatchComponent(), URayTracer::ProjectPoint(), UObjectRegister::RegisterISMComponents(), UObjectRegister::RegisterVehicle(), and FCarlaShowOnlyFilter::Rescan().
|
static |
Retrieve the tags of an already tagged actor.
CityObjectLabel::None is not added to the array.
Definition at line 221 of file Tagger.cpp.
References GetTagOfTaggedComponent(), and carla::rpc::None.
Referenced by FActorRegistry::MakeCarlaActor(), and UCarlaEpisode::SerializeActor().
|
static |
Definition at line 83 of file Tagger.cpp.
References carla::rpc::Bicycle, carla::rpc::Bus, carla::rpc::Car, carla::rpc::Motorcycle, carla::rpc::Pedestrians, carla::rpc::Rider, carla::rpc::TrafficLight, carla::rpc::TrafficSigns, carla::rpc::Train, and carla::rpc::Truck.
|
inlinestatic |
Return true if Component has been tagged with the given Tag.
Definition at line 61 of file Tagger.h.
References GetTagOfTaggedComponent().
Referenced by LineTrace().
|
static |
Definition at line 63 of file Tagger.cpp.
References CastEnum().
Referenced by FCarlaServer::FPimpl::BindActions(), and TagActor().
|
static |
Set the tag of an actor.
If bTagForSemanticSegmentation true, activate the custom depth pass. This pass is necessary for rendering the semantic segmentation. However, it may add a performance penalty since occlusion doesn't seem to be applied to objects having this value active.
Definition at line 130 of file Tagger.cpp.
References ATagger_SetLabelTag(), bTagForSemanticSegmentation, GetLabelByPath(), GetTagAsString(), carla::rpc::Pedestrians, carla::rpc::Rider, and SetStencilValue().
Referenced by ALargeMapManager::ConvertDormantToActiveActors(), UTaggerDelegate::OnActorSpawned(), UActorDispatcher::SpawnActor(), TagActorsInLevel(), TagActorsInLevel(), and AWalkerBase::TagWheelchair().
|
static |
Definition at line 185 of file Tagger.cpp.
References bTagForSemanticSegmentation, and TagActor().
|
static |
Set the tag of every actor in level.
If bTagForSemanticSegmentation true, activate the custom depth pass. This pass is necessary for rendering the semantic segmentation. However, it may add a performance penalty since occlusion doesn't seem to be applied to objects having this value active.
Definition at line 177 of file Tagger.cpp.
References bTagForSemanticSegmentation, and TagActor().
Referenced by ACarlaGameModeBase::BeginPlay(), ACityMapGenerator::GenerateRoadMap(), ACarlaGameModeBase::OnLevelAddedToWorld(), ALargeMapManager::OnLevelAddedToWorld(), and ACarlaGameModeBase::OnLoadStreamLevel().
|
private |
Definition at line 155 of file Tagger.h.
Referenced by TagActor(), TagActorsInLevel(), and TagActorsInLevel().