4th-ndn-hackathon / ndnSIM-Mobile-Simulation-Package

ndnSIM Mobile Simulation Package
GNU General Public License v3.0
16 stars 16 forks source link

How to see what is happening in "ndn-v2v-simple.cpp" example? #9

Open Zakaria55 opened 3 years ago

Zakaria55 commented 3 years ago

Hi every one, I am working on connected vehicles via NDN and I want to run a simple example of V2V communication, so I tried to run this command to see the result of "ndn-v2v-simple.cpp" and I obtained this :

zakaria@ubuntu:~/ndnSIM/ns-3$ ./waf --run=ndn-v2v-simple --vis Waf: Entering directory /home/zakaria/ndnSIM/ns-3/build' Waf: Leaving directory/home/zakaria/ndnSIM/ns-3/build' Build commands will be stored in build/compile_commands.json 'build' finished successfully (2.358s) V2VTest Simulator

How can I see the result of the simulation and see what's exactly happening? Thanks in advance.

Zakaria

Zakaria55 commented 3 years ago

I was able to solve the problem by adding these two lines at the beginning of the main function:

CommandLine cmd; cmd.Parse(argc, argv);

Now I can see the simulation but I noticed that there is no mobility as is mentioned in the annotation. How can I enable mobility?

Thanks in advance.