[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] dealing with errors (getParameterWithKey)
|
Hi Ali,
have you tried the latest version 1.9.1?
For me it works with a recent build version (v1_9_1+0299-ed28f7acbb)
if step == 10:
print(traci.junction.getIDList())
print(traci.junction.getParameterWithKey('gneJ21','shape'))
print(traci.junction.getShape('gneJ21'))
gives
(':cluster_cluster_gneJ30_gneJ4_gneJ18_gneJ19_10_0',
'cluster_cluster_gneJ30_gneJ4_gneJ18_gneJ19', 'gneJ21', 'gneJ26',
'gneJ31', 'gneJ32', 'gneJ33', 'gneJ6', 'gneJ7', 'gneJ8')
('shape', '')
((13.97, 74.9), (17.27, 74.98), (14.07, 74.9), (13.97, 74.9))
Regards, Harald
Am 13.05.21 um 14:23 schrieb ali mirzaei:
Hi Harald,
I have just installed the 1.8.0 version, not any other one. Does it
put me into trouble in this case?
Sincerely,
Ali
On Thu, May 13, 2021 at 12:13 PM Harald Schaefer <fechsaer@xxxxxxxxx> wrote:
Hi Ali,
usually this is a version mismatch between traci and sumo.
Have you two versions of sumo?
Uninstall the old ones or make sure that SUMO_HOME points to the newer
installation.
Greetings, Harald
Am 13.05.21 um 00:19 schrieb ali mirzaei:
Hello everyone,
I don't know how to deal with the following functions and their
subsequent errors:
1- print(traci.junction.getParameterWithKey('j1','shape'))
Error: Answered with error to command 0xa9: Get Junction Variable:
unsupported variable 0x3e specified
2- print(traci.junction.getshape('j1'))
AttributeError: 'JunctionDomain' object has no attribute 'getshape'
Any help would be appreciated.
Regards,
Ali
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user