LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2015, 12:48 PM   #1
rc49
Member
 
Registered: May 2015
Posts: 45

Rep: Reputation: Disabled
issue in running setdest in ns2.35,,ubuntu 12.04 32bit


i m trying to create node mobility using RandonWayPoint mobility...if i use setdest version 1 then gives "setdest: setdest.cc:595: void Node::RandomSpeed(): Assertion `speed != 0.0' failed.
Aborted (core dumped)" ,,,but i still tried this scnerio,,,nodes does not move,,they r only placed randomly

if i use setdest version 2 then it gives "The program 'setdest' is currently not installed. You can install it by typing:
sudo apt-get install ns2"

i also follow instructions in README file in setdest folder...it gives "nothing to do ,,"
no use... i m stuck here...please help

Last edited by rc49; 08-26-2015 at 01:01 PM. Reason: information missing
 
Old 08-26-2015, 03:01 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Mobility : http://www.isi.edu/nsnam/ns/doc/node172.html
>>> "16.1.2 Creating Node movements".


RandonWayPoint : http://sys.cs.uos.de/bonnmotion/
BonnMotion v2.1.3 http://sys.cs.uos.de/bonnmotion/src/...tion-2.1.3.zip


-
 
Old 07-19-2022, 03:13 AM   #3
lamduong
LQ Newbie
 
Registered: Jul 2022
Location: Hà Nội
Posts: 2

Rep: Reputation: 0
Hello
You try to run :~/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ ./setdest
and you see .
":usage:

<original 1999 CMU version (version 1)>
./setdest -v <1> -n <nodes> -p <pause time> -M <max speed>
-t <simulation time> -x <max X> -y <max Y>

OR
<modified 2003 U.Michigan version (version 2)>
./setdest -v <2> -n <nodes> -s <speed type> -m <min speed> -M <max speed>
-t <simulation time> -P <pause type> -p <pause time> -x <max X> -y <max Y>
(Refer to the script files make-scen.csh and make-scen-steadystate.csh for detail.) "

If you run the commmand :/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ ./setdest -v 1 -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test.tcl
setdest: setdest.cc:595: void Node::RandomSpeed(): Assertion `speed != 0.0' failed.
Aborted (core dumped)

Because :

<original 1999 CMU version (version 1)>
./setdest -v <1> -n <nodes> -p <pause time> -M <max speed>
-t <simulation time> -x <max X> -y <max Y>

if you copy the example in file "README" of setdest file in "ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest"

"Example: ./setdest -v 1 -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 >
scen-20-test.tcl"

and run you will and run you will get an error :
"setdest: setdest.cc:595: void Node::RandomSpeed(): Assertion `speed != 0.0' failed.
Aborted (core dumped)"

Because the max speed is -M not -s so that you can fix it by replacing -s to -M .

"/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ ./setdest -v 1 -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 > scen-20-test.tcl"
"/ns-allinone-2.35/ns-2.35/indep-utils/cmu-scen-gen/setdest$ ./setdest -v 1 -n 20 -p 2.0 -M 10.0 -t 200 -x 500 -y 500 > scen-20-test.tcl"
and you run this will be fine

You can change the file name "scen-20-test.tcl" or format the way you want to save.

How to set Destination of Mobile nodes and Traffic Generation in ns2 | NS2 Tutorial 20 Engineering Clinic Youtube
 
Old 07-19-2022, 10:35 AM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Welcome to LQ and the Programming forum!

You have posted to a thread which has been inactive for seven years. If you have a similar problem or wish to share information with others, please consider opening your own thread with your specific context to make it easier for others to find.

Please wrap your code and data snippets inside [CODE]...[/CODE] tags. Doing so will preserve indentation and provide other visual clues which make it easier for others to comprehend. You may write those yourself as shown, or use the # button available with Advanced edit options. (A complete list of BBCode tags is always available via a link near the bottom of every thread view).

Also, forum rules do not permit advertising, which includes promotion of personal blogs and programming projects. Please visit http://www.linuxquestions.org/advertising/ for more information on advertising. Feel free to contact the forum admin if you have any questions about this policy.
 
1 members found this post helpful.
  


Reply

Tags
ns2, randonwaypoint, ubuntu 12.04



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] URGENT: NS2.35 Mobility "setdest" Problem digitalcryptic Linux - Newbie 2 09-11-2015 02:49 AM
Error when use command setdest to make node movement in ns2 kien2106 Linux - Networking 2 05-18-2014 10:21 PM
[SOLVED] Setdest Command not found in NS2.33 vishalpolara Linux - Newbie 4 01-12-2013 02:50 AM
how to access setdest function in ns2 naren123.k Programming 1 04-26-2011 03:39 PM
Fedora 13 32bit and then Linux Mint 32bit and then Ubuntu 10.04 32bit ciao303 Linux - Newbie 3 08-09-2010 11:03 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration