Saying "Happy New Year" in ns-3 way

127 views
Skip to first unread message

Charles Pandian

unread,
Dec 26, 2021, 7:12:32 AM12/26/21
to ns-3-...@googlegroups.com
Dear ns-3-users,

Even though I am not civilized enough to say "wish messages" to people, let me try to deliver a "Happy New Year"  wish message to the members of  ns-3 user group and the ns-3 developers in an ns-3 way.

A Python Script for Generating an ns-2 Mobility Trace File

A python script was from the ideas mentioned in [4].  This python script will convert a text message into appropriate node locations and create a mobility scenario file from it. The nodes are started to move from a random location and finally form a text message at the end of the mobility.

You can see this python script at the following link:

ns-3 Drone Display Simulation using ns-2 Mobility Trace File

Or you may simply download the attached mobility file (mobility.txt) and use it along with the following simulation.

A Simple ns-3 Simulation for Drone Show

The following ns-3 simulation script presents the idea of creating a 'drone show' using ns-2 mobility trace file.

#include "ns3/core-module.h"
#include "ns3/mobility-module.h"
#include "ns3/ns2-mobility-helper.h"
#include "ns3/netanim-module.h"

using namespace ns3;

int main (int argc, char *argv[])
{
// Create Ns2MobilityHelper with the specified trace log file as parameter
Ns2MobilityHelper ns2 = Ns2MobilityHelper ("mobility.txt");
// Create Moble nodes.
NodeContainer MobileNodes;
MobileNodes.Create (464);
// configure movements for each node, while reading trace file
ns2.Install ();
AnimationInterface anim ("SimpleNS3DroneShowSimulationWith-ns2-mobility-trace.xml");
Simulator::Stop (Seconds (100));
Simulator::Run ();
return 0;
}

 
image.png

See the attached gif animation of the NetAnim Ouput.

The following is the 3D output of a  scenario under NetSimulyzer :
image.png

This idea can be used to design and test automated drone shows under ns-3 simulator.

Finally, thank you,  Mr. Tom and other Developers as well as the Contributors of ns-3 for their generous contribution to ns-3 community.

  😊Happy New Year 2022.😊
 

References

  1. https://en.wikipedia.org/wiki/Drone_display
  2. Using ns-2 Mobility Traces in ns-3 Simulation – A Simplified Example
  3. ns-3 VANET Simulation – 3D Visualization of 2D Gridway Mobility using NetSimulyzer
  4. Generate pixel matrices from characters in string

Charles Pandian,

mobility.txt
HappyNewYear2022.gif

Li, Ye

unread,
Dec 26, 2021, 9:12:09 AM12/26/21
to ns-3-...@googlegroups.com
This is fascinating!

Happy New Year, fellow ns-3 users!

--
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/CAHXeiM8xfx3uHh%2B3N0HfR51Ovid4YxFmKtxtri%3D36TkzV4Opbg%40mail.gmail.com.


--
LI, Ye
School of Information Science and Technology
Nantong University
Nantong 226019, Jiangsu Province, China

Charles Pandian

unread,
Dec 26, 2021, 10:35:58 AM12/26/21
to ns-3-...@googlegroups.com

Shilpi Mittal

unread,
Dec 26, 2021, 9:56:17 PM12/26/21
to ns-3-...@googlegroups.com
Really it's amazing. Happy new year to you too.

Kindly share more knowledge about mobility as I need to work on it. 

Plz suggest readings/videos and codes for better understanding.


Charles Pandian

unread,
Dec 26, 2021, 10:32:53 PM12/26/21
to ns-3-...@googlegroups.com
You may find my implementation of CircleMobilityModel at my Merge Request 821 at ns3-dev.
https://gitlab.com/nsnam/ns-3-dev/-/merge_requests/821

you may read about its implementation details and another model on my blogs:

Implementation of Circle Mobility Model for ns-3 and Visualizing it in 3D

Model for ns-3 and Visualizing it in 3D along with Circle Mobility
 

Charles Pandian,


Shilpi Mittal

unread,
Dec 28, 2021, 10:19:24 PM12/28/21
to ns-3-...@googlegroups.com
Hi Charles,

Plz help me to suggest a way to implement mobility on a single node around the grid. 

Thanks in advance

Reply all
Reply to author
Forward
0 new messages