Adding a POI with TraCI::POIScope

121 views Asked by At

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.

1

There are 1 answers

2
Michael On

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