与traci :: poiscope添加poi

发布于 2025-01-26 08:09:26 字数 494 浏览 3 评论 0原文

当我尝试通过Traci将POI添加到车辆时,我会收到此错误消息。

<!> Error: libsumo::TraCIException: ..  
Answered with error to command (199), [description: Could not add PoI.]

std::string imgFile = "img.png";
poiScope->add("POI1", mVehicleController->getPosition().x.value(), mVehicleController->getPosition().y.value(), standardColor, "png", 1, imgFile, 40, 40, 1);

我已经检查了通过的值,它们是正确的。

免责声明:这是一个动脉模拟,但是由于它本质上是一条静脉,所以我添加了标签。

I get this error message when I try to add a POI to a vehicle through TraCI.

<!> Error: libsumo::TraCIException: ..  
Answered with error to command (199), [description: Could not add PoI.]

std::string imgFile = "img.png";
poiScope->add("POI1", mVehicleController->getPosition().x.value(), mVehicleController->getPosition().y.value(), standardColor, "png", 1, imgFile, 40, 40, 1);

I have checked the passed values and they are correct.

Disclaimer: This is an artery simulation, but since it's essentially a fork of veins I added the tag.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

三寸金莲 2025-02-02 08:09:26

如果已经有另一个具有相同ID的POI,则此错误显示。

This error shows up if there already is another POI with the same id.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文