LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-08-2019, 01:12 AM   #1
bharaths248
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Rep: Reputation: Disabled
Need help to resolve "error when calling class $cls: $args" when i try to run my .tcl file. could you please help me to resolve.


Hi All,
I am very new to NS2. I am getting error error "ns: _o716 setdest 793979.48 1465851.53 0.00: " when i try to run my .tcl file. could you please help me to resolve.
ns: _o716 setdest 793979.48 1465851.53 0.00:
(_o716 cmd line 1)
invoked from within
"_o716 cmd setdest 793979.48 1465851.53 0.00"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o716" line 2)
(SplitObject unknown line 2)
invoked from within
"_o716 setdest 793979.48 1465851.53 0.00"
Attached Files
File Type: txt vanet_tcl.txt (2.5 KB, 100 views)

Last edited by bharaths248; 03-08-2019 at 02:05 AM.
 
Old 03-08-2019, 07:58 AM   #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
Welcome to LQ.

Testing ...
Code:
$ ns235-64-orig bharaths-vanet.tcl 
num_nodes is set 100
.
INITIALIZE THE LIST xListHead
couldn't read file "mobility.tcl": no such file or directory
I.e. the movement file is missing.

It's a huge area.
But anyway, if at all possible with "a million meters", x and y must be some larger than the max "setdest value".
Suggest :
set opt(x) 900000
set opt(y) 1510000

EDIT : Confirm → works OK with a random movement file, max x: 801806.63 , max y: 1506654.91

-

Last edited by knudfl; 03-08-2019 at 08:54 AM.
 
1 members found this post helpful.
Old 03-16-2019, 04:34 AM   #3
bharaths248
LQ Newbie
 
Registered: Mar 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
x,y, setdest values are generated using sumo 0.25.0

Hi,

thank you so much for replying.. it works..

as you said for the setdest values greater than x and y are throwing error..

i have a doubt. there are 100 nodes and multiple setdest values. should x and y values be greater than all the setdest values in the file?

file size is more than 2mb i cannot attach the file. i will copy paste the data here.. could you please suggest how to get proper values for x and y in SUMO..


Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

Testing ...
Code:
$ ns235-64-orig bharaths-vanet.tcl 
num_nodes is set 100
.
INITIALIZE THE LIST xListHead
couldn't read file "mobility.tcl": no such file or directory
I.e. the movement file is missing.

It's a huge area.
But anyway, if at all possible with "a million meters", x and y must be some larger than the max "setdest value".
Suggest :
set opt(x) 900000
set opt(y) 1510000

EDIT : Confirm → works OK with a random movement file, max x: 801806.63 , max y: 1506654.91

-

Last edited by bharaths248; 03-17-2019 at 10:42 PM. Reason: removed the code
 
Old 03-16-2019, 07:38 AM   #4
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
Re #3 : Please do not quote entire posts. A "one word reference" will do.

And : Please edit post #3 to use CODE TAGS around the "setdest snippet"
http://www.linuxquestions.org/questi....php?do=bbcode
I.e. write [code]code text[/code]
Editing : That's the 'Edit' button in post #3.


Quote:
should x and y values be greater than all the setdest values in the file
Yes. See post #2. Why do you think you can go outside the communication area ?

( Some types of ns2 simulation : X, Y settings are ignored.)

-
 
  


Reply

Tags
ns2



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] Error:: "wrong # args: should be "set varName ?newValue?" " while running TCL script rc49 Linux - Newbie 2 09-15-2016 12:01 AM
[SOLVED] "error when calling class OldSim: simple.tcl" problem aradhi Linux - Networking 1 05-03-2016 09:59 AM
set x args... && shift vs set -- args... leniviy Linux - Software 1 11-13-2012 04:17 AM
NS2 (v2.34) sim.tcl: error when calling class edison_0927 Linux - Newbie 0 05-30-2012 09:01 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:58 PM.

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