I would like to get the number of the lanes for a particle edge in Veins.
I implemented the getLaneNumber(EdgeId) TraCI command as illustrated in Edge Value Retrieval. My implementation is:
int32_t TraCICommandInterface::Road::getLaneNumber(){
return traci->genericGetInt(CMD_GET_EDGE_VARIABLE, roadId, VAR_LANE_INDEX,
RESPONSE_GET_EDGE_VARIABLE);
}
But, I got the following error:
TraCI server reported error executing command 0xaa ("Get Edge Variable: unsupported variable 0x52 specified").
Any idea why 0x52 is not supported for get edge variable although command 0x52 is listed in TraCI wiki?