Hello,
I could not replicate your findings using the following script using the
latest version of the client:

> traci.vehicle.setColor(veh, (0,0,255,255))
> print(traci.vehicle.getColor(veh))


> traci.vehicle.setColor(veh, traci.vehicle.getColor(veh))


> print(traci.vehicle.getColor(veh))

python 2.7 and 3.5 both show the expected output
> (0, 0, 255, 255)
> (0, 0, 255, 255)

can you give more context for reproducing the issue?
regards,
Jakob

2017-02-24 16:06 GMT+01:00 Dominik S. Buse <[email protected]>:

> Hi,
>
> there seems to be a bug in the python traci client. The function
> traci.vehicle.getColor returns the vehicle's color values as inverted.
> E.g., blue is returned as (255, 255, 0, 255) (RGBA).
> Thus the following call is not a no-op but an inversion of the vehicle's
> color (assuming vehid is a valid vehicle id):
>
> traci.vehicle.setColor(vehid, traci.vehicle.getColor(vehid))
>
> Kind regards,
> Dominik
>
> --
> Dominik Buse, M.Sc.
> Distributed Embedded Systems (CCS Labs)
> Heinz Nixdorf Institut, Paderborn University, Germany
> http://www.ccs-labs.org/~buse/
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to