0

I'm facing the problem in title with sumo 1.2.0. I'm using TRAAS in java and I'm sending the following command to sumo and I don't know how to specify this bitset and it gives me the error Error: Answered with error to command 0xa4: Retrieval of neighboring vehicles needs bitset to specify mode. I have also tried with byte instead of int and it didn't work:

public static SumoCommand getNeighbors(String vehID, int mode) {

        Object[] array = new Object[]{mode};
        return new SumoCommand(Constants.CMD_GET_VEHICLE_VARIABLE, Constants.VAR_NEIGHBORS, vehID, array, Constants.RESPONSE_GET_VEHICLE_VARIABLE, Constants.TYPE_STRINGLIST);

    }

I'm sending the mode as an integer, for example mode=3 which is 101. And also, based on vehicle value retrieve document, I should get the response as String List. But when you check the traci document they receive it as string list of pairs.

0 Answers0