I tried to establish a connection through TRACL command in the TRaCICommandInterface.cc and TraciCommandInterface.h (SetAcceleration)
This is my code in the cc file:
void TraCICommandInterface::Vehicle::setAcc(double Acc, double Dur)
{
uint8_t commandType = TYPE_COMPOUND;
int count = 2;
uint8_t variableId = VAR_ACCELERATION;
TraCIBuffer buf = traci->connection.query(CMD_SET_VEHICLE_VARIABLE,
TraCIBuffer() << variableId << nodeId << commandType <<count <<static_cast<uint8_t>(TYPE_DOUBLE) << Acc << static_cast<uint8_t>(TYPE_DOUBLE)<<Dur);
ASSERT(buf.eof());
}
and in the .h file:
void setAcc(double Acc, double Dur);
and Im getting this error:
A runtime error occurred:
TraCI server reported status 255 executing command 0xc4 ("Change Vehicle State: unsupported variable 0x72 specified").
What does he mean by unsupported variable 0x72 even though its clearly in the sumo documentation that the setAcceleration variable is 0x72 in the change vehicle state? link for that: https://sumo.dlr.de/docs/TraCI/Change_Vehicle_State.html