简体   繁体   English

CARLA - 创建自定义语义标签不起作用

[英]CARLA - Create Custom semantic tags Does not work

i followed the instructions on Create semantic tags to create my custom tags.我按照创建语义标签的说明创建我的自定义标签。

  1. I created two new folders, ChevronSign and YellowLine我创建了两个新文件夹,ChevronSign 和 YellowLine
  2. Then i added the tags to ObjectLabel.h in LibCarla/source/carla/rpc然后我将标签添加到ObjectLabel.h LibCarla/source/carla/rpc中的 ObjectLabel.h
  3. Then i edited Tagger.cpp in Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game然后我在Unreal/CarlaUE4/Plugins/Carla/Source/Carla/Game中编辑了Tagger.cpp
  4. And finally defined a color code in CityScapesPalette.h in LibCarla/source/carla/image .最后在LibCarla/source/carla/imageCityScapesPalette.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:我尝试了什么:

  1. I changed the color of a default label and checked if the color would change.我更改了默认 label 的颜色并检查颜色是否会改变。 It did not.它没。
  2. I tried to rebuild carla with 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;
  1. So i checked if there are other ObjectLabel.h files in my system and customized all of them as the first one.所以我检查了我的系统中是否还有其他ObjectLabel.h文件,并将它们全部自定义为第一个。 I found 3 of them.我找到了其中的 3 个。 enter image description here在此处输入图像描述

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM