LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-31-2022, 12:03 PM   #16
shiyar
LQ Newbie
 
Registered: Jun 2022
Posts: 13

Original Poster
Rep: Reputation: 0

when I run the tcl file for 3d movement, the following error appears:
nour@ubuntu:~/Desktop/geo3D-ex-4$ ns235-geo3D wireless3D.tcl

(_o10 cmd line 1)
invoked from within
"_o10 cmd load_cube 1500 1500 1500 1"
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 "_o10" line 2)
(SplitObject unknown line 2)
invoked from within
"$topo load_cube $val(x) $val(y) $val(z) 1"
(file "wireless3D.tcl" line 47)
nour@ubuntu:~/Desktop/geo3D-ex-4$

Last edited by shiyar; 10-31-2022 at 02:40 PM.
 
Old 10-31-2022, 01:55 PM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #16

https://docs.google.com/document/d/1...it?usp=sharing
→ Conditions for ns2 → An (old) 'Linux OS' installed to a hard disk partition.

?Which OS are you using? Name and version, please.
( My test OS: No errors, the executable 'ns' is created OK.)

-
 
Old 11-01-2022, 04:16 AM   #18
shiyar
LQ Newbie
 
Registered: Jun 2022
Posts: 13

Original Poster
Rep: Reputation: 0
this is Name OS and version:
nour@ubuntu:~/Desktop$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
nour@ubuntu:~/Desktop$
 
Old 11-01-2022, 06:44 AM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #16, #18 : Ubuntu 18.04

Testing : ns235-geo3D wireless3D.tcl : No errors

Your errors: Seems you are using a copy of ns (ns235-geo3D) with no "geo3D".
I.e. your error output is as the result from a stock ns-2.35 with no modifications.

You are supposed to unpack a new ns-allinone-2.35_gcc5.tar.gz
https://drive.google.com/file/d/0B7S...FDb7ul0VFk6FZQ
.... into a new directory, and start from scratch ...
You can have as many ns-allinone-2.xx as you want, at the same time
https://docs.google.com/document/d/1...it?usp=sharing
Example
/home/name/ns2/geo+olsr/ns-allinone-2.35
/home/name/ns2/geo/ns-allinone-2.35
/home/name/ns2/AA/ns-allinone-2.xx
.
/home/name/ns2/ZZ/ns-allinone-2.xx

-
 
Old 11-01-2022, 12:07 PM   #20
shiyar
LQ Newbie
 
Registered: Jun 2022
Posts: 13

Original Poster
Rep: Reputation: 0
it works for 3D movement thank you soo much.
 
Old 11-03-2022, 12:52 PM   #21
shiyar
LQ Newbie
 
Registered: Jun 2022
Posts: 13

Original Poster
Rep: Reputation: 0
My research is to improve the performance of the OLSR protocol using the ant algorithm.
I made the modification to the ant algorithm by entering the node velocity factor and the third dimension z.
How can I make these modifications to the OLSR protocol and its implementation?
can you help me please?
 
Old 11-04-2022, 04:11 AM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #16

`ns235-geo-olsr-64´ is a copy of my simulation example command.
I don't think you have this particular executable.
As with the previously discussed setdest3D/setdest3d, please use the command you actually have.

HOWTO
Type ns235-<TAB>
... to show your installed options (If any "ns235-...." command is available.)

-
 
Old 11-28-2022, 02:17 PM   #23
shiyar
LQ Newbie
 
Registered: Jun 2022
Posts: 13

Original Poster
Rep: Reputation: 0
When I modify the olsr code and execute the tcl file, the results remain the same as before.
Are there any instructions that I should implement after modifying the olsr code?
can you help me please.
 
Old 11-30-2022, 08:54 AM   #24
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #23

A modification may require three tings further to add :
1. "Tcl Hook" line(s) in the C++ code
2. Some lines in tcl/lib/ns-** files
3. New commands / lines in your simulation.tcl

-
 
  


Reply

Tags
fanet, geo3d, ns2, olsr



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
Willingnes parameter change in the protocol OLSR NS2 ramzes_ek Linux - Newbie 1 10-29-2023 02:25 PM
Running SPAN protocol on ns2 !! errors !! Hi, I am trying to SPAN protocol on ns2.28 using cygwin on windows 10 phyotay3 Linux - Wireless Networking 2 10-23-2019 08:11 AM
How i can add Malicious Nodes in ZRP and OLSR Routing Protocol NS-2.35? rizkampleng Linux - Software 3 12-24-2015 01:34 PM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:59 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