Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] Error with SUMO and Veins simulation, Wrong position in requestMessage after dispatching command 195
  • From: Thodoris Zerlentis <zerlentis@xxxxxxxx>
  • Date: Fri, 27 Nov 2020 19:42:30 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XtgFwTR0skMCSSld4Q2Op3U3igqgyyhCVfKq2XJg6PM=; b=n6lOUKwg0ePBT4oAyNb1Qv5vDWf2LQJZIh2QLgmOHEwp7FrWrcXJlAdNVniVyQqDB6DSp+ydzN4hqPJftORn2Sf2J1OE8FEETu/J+D+S9QdHPGK+621MsKWXmWeuiXNwmWcSGUgnUIscigjnIE6kK8ju49AJM5wbeTJnXMjoXFahnKmUQWOEU8lM5JN2AnhM+hXMqh6BKoc+eF6RDBt/kka3CACj/+dTqExjJEusdmXjBnrWIQasy2hhvzLxOPrsT4ytxFhzO1ARVQOWps9295X33mUFqvzIEHazw+rDAWpyhDyKQYMFySzDdIHsnY0UJTCoQglyAiS3QHmH+eFpuQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NU/qN1MCZ7mbujBJLzAyEsRyU75xRyyY286ayrhKcZ5Hd5GXRRM1T0wZVDwFX3bIBrO4bqPhbmPemqy5NCOc0dWEvBFhOjG9AbV0Pz2CwDz7CUbudZtw5BrOBNTjg6VeTOJURh45eodAe3AsBjCNvZ4M6hfrn8hRbwWp17is/QsWMhSVgp+h8SL4wyVlCPEB1z+SRkVzyNOUJVJ6vwfZ8CkwZKvgNFE9vtqy7JjnnnTouAC0NYQlaokWp1/aFj7CvcJabR+CjxfWkZbg2Ci+dLpEElmNKrcGy5oeGvFOuoq+O8ZCxsjeumpiSQr/KlO53Y5wzebx+7cD7TPssUFrZw==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHWxPOEBLk/mjZl0kej7egbQ2dcdQ==
  • Thread-topic: Error with SUMO and Veins simulation, Wrong position in requestMessage after dispatching command 195

Greeting everyone,
I am trying to implement a TraCi command for my sumo  scenario (traci.lane.setDisallowed) while using veins. I created a new command in the TraciCommandInterface.cpp like:
void TraCICommandInterface::Lane::setDisallowed(std::list<std::string>  disallowedClasses)  {
TraCIBuffer buf = connection->query(CMD_SET_LANE_VARIABLE, TraCIBuffer() << LANE_DISALLOWED << laneId << TYPE_STRINGLIST << disallowedClasses); ASSERT(buf.eof());
}
and called like:
std::list<std::string> disallowedClasses = {"all"};
if (simTime()==20) {
TraCICommandInterface* cInt = getCommandInterface();
cInt->lane("ed_1_0").setDisallowed(disallowedClasses);
}

The problem is that i get the error:
Answered with error to command 0xc3: Wrong position in requestMessage after dispatching command 195. Expected command length was 38 but 18 Bytes were read.
By disabling the "wrong position...." command at TraciAPI i can force the lane to be dissallowed but some error keep apearing (without terminating my simulation thought)

Is there something wrong with the way i implemented the command? and why that error occures? How can i fix it?



Back to the top