How to integrate NS3 with sumo

146 views
Skip to first unread message

Dhruv Agarwal

unread,
Dec 14, 2022, 2:24:11 AM12/14/22
to ns-3-users
HI
I am trying to do customisation in v2v-emergencyVehicleAlert-80211p.cc , How can we get real time data of cars eg.(position, speed, coordinates), also how can i change the alerts printed on sumo-gui.

Please help me.

Thank you

Shehzad Rizwan

unread,
Dec 14, 2022, 2:37:44 AM12/14/22
to ns-3-...@googlegroups.com
Hi.
     Is anyone working on emergency warning or alert message dissemination in VANETs and can share code in NS3.

--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ns-3-users/170b3d58-8acf-4608-83a1-c0d2cc5f7aa8n%40googlegroups.com.


--
Best Regards,
Shahzad Rizwan
Assistant Professor
COMSATS University, Islamabad
Attock Campus, Punjab, PAKISTAN

Dhruv Agarwal

unread,
Dec 14, 2022, 2:59:52 AM12/14/22
to ns-3-users
i also have same query 

Sheikh Sam

unread,
Dec 16, 2022, 5:12:02 PM12/16/22
to ns-3-...@googlegroups.com
Have you got any screen-shot to share ? so i can have a better idea. I do have idea about the tracking mis-configuration error 

Many Thanks 


Breno Melo

unread,
Jan 26, 2023, 6:31:10 AM1/26/23
to ns-3-users
Perhaps you have found an answer to your question. For those who will see this post in the future, you may follow:

Ns2MobilityHelper ns2 = Ns2MobilityHelper (path_tcl_file);
ns2.Install ();

Ptr<MobilityModel> mob = nodeContainer.Get (node_id)->GetObject<MobilityModel> ();

double lat = mob->GetPosition().x;
double lon = mob->GetPosition().y;

OR

Vector coords = mob->GetPosition() ;
Vector velocity = mob->GetVelocity();
Reply all
Reply to author
Forward
0 new messages