Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got unknown variable error when subscribed the next tls variable #15785

Open
feng-jialong opened this issue Nov 26, 2024 · 0 comments
Open

Got unknown variable error when subscribed the next tls variable #15785

feng-jialong opened this issue Nov 26, 2024 · 0 comments
Assignees

Comments

@feng-jialong
Copy link

The next tls variable of an vehicle can be accessed using command traci.vehicle.getNextTLS. However, when I try to subscribe the variable ID (0x70, 112, traci.constants.VAR_NEXT_TLS) corresponding to this command, it come out an error:

FatalTraCIError: Unknown variable 70 or invalid type 0f.

Bellow are codes this error located:

self.conn.junction.subscribeContext(
    objectID=self.temp_junction_id,
    domain=traci.constants.CMD_GET_VEHICLE_VARIABLE,
    dist=1e8,
    varIDs=[
        traci.constants.VAR_NEXT_TLS,
    ]
)

Is this variable ID not yet supported subscription? Or maybe I did something wrong?

SUMO-version: Eclipse SUMO sumo Version 1.20.0

operating system: Windows 11 Professional 10.0.22631

@feng-jialong feng-jialong changed the title FatalTraCIError: Unknown variable 70 or invalid type 0f Got unknown variable error when subscribed the next tls variable Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants