[英]CARLA - Create Custom semantic tags Does not work
i followed the instructions on Create semantic tags to create my custom tags.我按照创建语义标签的说明创建我的自定义标签。
ObjectLabel.h
in LibCarla/source/carla/rpc
ObjectLabel.h
LibCarla/source/carla/rpc
中的 ObjectLabel.hTagger.cpp
in Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game
Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game
中编辑了Tagger.cpp
CityScapesPalette.h
in LibCarla/source/carla/image
.LibCarla/source/carla/image
的CityScapesPalette.h
中定义了一个颜色代码。 I moved the assets in the according directory, and they appear black, so no label.我移动了相应目录中的资产,它们显示为黑色,因此没有 label。 Moving the assets in one of the default folders works just fine, the semantic tag gets displayed correct.
在默认文件夹之一中移动资产工作得很好,语义标签显示正确。
What i tried:我尝试了什么:
make CarlaUE4Editor
, and an error because of the new tags:make CarlaUE4Editor
重建 carla,但由于新标签而出现错误:/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/Tagger.cpp:48:67: error: no member named 'ChevronSign' in 'carla::rpc::CityObjectLabel'
else if (String == "ChevronSign") return crp::CityObjectLabel::ChevronSign;
/carla/Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game/Tagger.cpp:49:67: error: no member named 'YellowLine' in 'carla::rpc::CityObjectLabel'
else if (String == "YellowLine") return crp::CityObjectLabel::YellowLine;
ObjectLabel.h
files in my system and customized all of them as the first one.ObjectLabel.h
文件,并将它们全部自定义为第一个。 I found 3 of them.Then the i ran make CarlaUE4Editor
sucessfully.然后我成功地运行了
make CarlaUE4Editor
。 But the Semantic Tags still don't work.但是语义标签仍然不起作用。
Does anyone know which mistake i made?有谁知道我犯了哪个错误? Is there a mistake in the documentation ?
文档中有错误吗?
Thanks in advance!提前致谢!
I found the mistake.我发现了错误。 I just had to upgrade from carla 0.9.9 to 0.9.10.
我只需要从 carla 0.9.9 升级到 0.9.10。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.