Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Adding POI With TraCI

Hello everyone,

I tried to add POI in SUMO through TraCI, with my own ImgFile.

traci.poi.add("POI1", 1242, 1666, imgFile="/home/ubuntu/red.bmp",
width=100, height=100)

However, I got: TypeError: add() got an unexpected keyword argument 'imgFile'.
When I tried this instead:

traci.poi.add("POI1", 1242, 1666, color=(255, 0, 0))
traci.poi.setImageFile("POI1", "/home/ubuntu/red.bmp")

I got: AttributeError: 'PoiDomain' object has no attribute 'setImageFile'.

Am I doing something wrong?
Any help is greatly appreciated. Thank you.


Kind Regards,
George


Back to the top