Skip to content

Commit d3824ec

Browse files
yhrBlyron
yhr
authored andcommitted
revert, merge bush to vege label
1 parent f849d6f commit d3824ec

File tree

4 files changed

+1
-6
lines changed

4 files changed

+1
-6
lines changed

LibCarla/source/carla/image/CityScapesPalette.h

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ namespace detail {
5050
{230u, 150u, 140u}, // rail track = 27u
5151
{180u, 165u, 180u}, // guard rail = 28u
5252
{180u, 130u, 70u}, // rock = 29u
53-
{90u, 0u, 90u}, // bush = 30u
5453
};
5554

5655
} // namespace detail

LibCarla/source/carla/rpc/ObjectLabel.h

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ namespace rpc {
4646
RailTrack = 27u,
4747
GuardRail = 28u,
4848
Rock = 29u,
49-
Bush = 30u,
5049

5150
Any = 0xFF
5251
};

PythonAPI/carla/src/World.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,6 @@ void export_world() {
229229
.value("Rider", cr::CityObjectLabel::Rider)
230230
.value("Train", cr::CityObjectLabel::Train)
231231
.value("Rock", cr::CityObjectLabel::Rock)
232-
.value("Bush", cr::CityObjectLabel::Bush)
233232
.value("Any", cr::CityObjectLabel::Any)
234233
;
235234

Unreal/CarlaUnreal/Plugins/Carla/Source/Carla/Game/Tagger.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ crp::CityObjectLabel ATagger::GetLabelByFolderName(const FString &String) {
5656
else if (String == "Train") return crp::CityObjectLabel::Train;
5757
else if (String == "Rock") return crp::CityObjectLabel::Rock;
5858
else if (String == "Stone") return crp::CityObjectLabel::Rock;
59-
else if (String == "Bush") return crp::CityObjectLabel::Bush;
59+
else if (String == "Bush") return crp::CityObjectLabel::Vegetation;
6060
else return crp::CityObjectLabel::None;
6161
}
6262

@@ -229,7 +229,6 @@ crp::CityObjectLabel ATagger::GetTagFromString(FString Tag)
229229
if(Tag.Contains("Rider")) return crp::CityObjectLabel::Rider;
230230
if(Tag.Contains("Train")) return crp::CityObjectLabel::Train;
231231
if(Tag.Contains("Rock")) return crp::CityObjectLabel::Rock;
232-
if(Tag.Contains("Bush")) return crp::CityObjectLabel::Bush;
233232
return crp::CityObjectLabel::None;
234233
}
235234

@@ -268,7 +267,6 @@ FString ATagger::GetTagAsString(const crp::CityObjectLabel Label)
268267
CARLA_GET_LABEL_STR(Train)
269268
CARLA_GET_LABEL_STR(Rider)
270269
CARLA_GET_LABEL_STR(Rock)
271-
CARLA_GET_LABEL_STR(Bush)
272270

273271
#undef CARLA_GET_LABEL_STR
274272
}

0 commit comments

Comments
 (0)