1

I was able to create routing config files for sumo, link them with Omnet++ and VEINS. When I ran the VEINS simulation, I see the movement of the vehicles and exchange of information between them as seen here :

enter image description here

Questions:

  1. Where can I find more exact information about the color of nodes : when the node circle is green, red, etc.?

  2. What do these blue connecting lines in the debug mode mean? Where can I find more information?

user629034
  • 659
  • 2
  • 11
  • 30
  • You are most likely running the TraCIDemo11p demo application layer from the Veins tutorial. Everything you are asking is in its source code. It's only a few dozen lines. – Christoph Sommer Nov 28 '16 at 00:24
  • Thank you! I also see the scheduled accident and accident resolved events. How can I find the configs or source of those? Sorry if the questions are basic... – user629034 Nov 28 '16 at 02:21
  • They are also in this file. Look for par() calls, as discussed in the OMNeT++ TicToc tutorial. If you are unsure about their use, just do the tutorial again. – Christoph Sommer Nov 29 '16 at 01:35

1 Answers1

0

When the node receives a message named "data" it calls onData() which, among others, does the animations you are asking for

else if (std::string(wsm->getName()) == "data") {
    onData(wsm);

  1. Where can I find more exact information about the color of nodes : when the node circle is green, red, etc.?
void TraCIDemo11p::onData(WaveShortMessage* wsm) {
    // Here is the green color for the nodes
    findHost()->getDisplayString().updateWith("r=16,green");
    // Here the blue lines are drawn
    annotations->scheduleErase(1, annotations->drawLine(wsm->getSenderPos(), mobility->getPositionAt(simTime()), "blue"));

    if (mobility->getRoadId()[0] != ':') traciVehicle->changeRoute(wsm->getWsmData(), 9999);
    if (!sentMessage) sendMessage(wsm->getWsmData());
}
  1. What do these blue connecting lines in the debug mode mean? Where can I find more information?

When a node receives a data message, a blue line is drawn by the receiving node, from itself to the node that sent the message.

user4786271
  • 1,555
  • 13
  • 18