Hello,
the argument imgFile as well as the method setImageFile are only available
in sumo version 1.2.0 or greater.
regards,
Jakob

Am Do., 6. Feb. 2020 um 03:52 Uhr schrieb E Huan Chen <
[email protected]>:

> 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
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to