0

A vehicle entering the simulation must send a "Hello beacon" to form a cluster.

If there is already a vehicle, it will respond with another "Hello beacon".

How can this be done in the veins?

I saw this previous post, but I don't know if my case is the same:

How to send beacon with viens

The post has been edited to add the comment image below:

Error image

campos
  • 153
  • 2
  • 12
  • In what way is your case different? – Christoph Sommer Sep 18 '19 at 12:45
  • I thought my case would be different because HELLO Beacon would only have the vehicle ID, position and type. I created a ClusterHelloBeacon.msg message by extending WaveShortMessage. From this message the files ClusterHelloBeacon_m.h and ClusterHelloBeacon_m.cc were created. However when implementing the use of the message the error of the attached figure is displayed. – campos Sep 18 '19 at 13:34
  • The error was because this line " `wsm->setWsmData(mobility->getRoadId().c_str());` " was missing. But I don't know what this line does. – campos Sep 23 '19 at 17:08

0 Answers0