Bonnmotion mobility movement

117 views
Skip to first unread message

azeez

unread,
Feb 26, 2024, 4:13:04 PM2/26/24
to ns-3-users
Hi all,

I am using Bonnmotion to create ns_movement file to use it in ns3. I tried multiple mobility models:
  1. Nomadic mobility.
  2. RPGM.
  3. Gauss-Markov.
  4. Random waypoint.
For the nomadic, I encounter this error:
warning: MobileNode: trying to insert waypoint in the past <1>.
While for the rest of the mobility models, the node stays static, fixed at the same location.
How can I use fix it? is there any parameter that must be identical except the node number?

Best regards

Tommaso Pecorella

unread,
Feb 26, 2024, 8:49:23 PM2/26/24
to ns-3-users
Hi,

no idea, to see if it's a problem in BM or in ns-3 we'd need to have both the BM parameters you used and/or the traces you're trying to import in ns-3, and possibly a script to show the problem.

azeez

unread,
Feb 27, 2024, 6:18:31 AM2/27/24
to ns-3-users
Hi Mr. Tommaso,

I am trying to use Bonnmotion to create a mobility that suits the FANETs.
The ns-3 parameters are: nodes= 20, time = 100
The BM parameters are as in this command line: ./bm -f model3 Nomadic -n 20 -d 100 -x 500 -y 500 -z 500 -l 10 -h 20 -a 5 -r 1 -s 6 -c 30 -R 200

azeez

unread,
Feb 27, 2024, 7:34:56 AM2/27/24
to ns-3-users
Please note that the nodes are sticking to the initial position.
As you can see here, node 0 is X=84.5337, Y=235.826, Z=8.39115.
How can we fix it?

please find the attached .csv file for the location read and .ns_movements file generated by BM.
position_data2.csv
model3.ns_movements

Tommaso Pecorella

unread,
Feb 27, 2024, 10:23:32 AM2/27/24
to ns-3-users
\facepalm on

Your movement file shows clearly that nodes start moving after second 12. The other file shows them standing still up to second 9.

I.e., your simulation is too short.

\facepalm off

azeez

unread,
Feb 29, 2024, 5:42:30 AM2/29/24
to ns-3-users
Hi Mr. Tommaso,

As per your advice, I made the simulation time = 100 for ns3 as it was in the movement file.
I made the simulation time 100s and it still stuck at the same location.
It just read the initial position.
I used the same movement file I already attached before.
Please see the attached csv file.


Thanks.
position_data2.csv

Tommaso Pecorella

unread,
Mar 1, 2024, 9:55:22 AM3/1/24
to ns-3-users
Please attach the script you're using, not only the movement file.

azeez

unread,
Mar 11, 2024, 5:16:07 AM3/11/24
to ns-3-users
Hi Mr. Tommaso,

I have attached the script and the movement file along with ns_movement file.
I am trying to do 3D node movement ( X, Y, Z )
Once i execute the file this comment appear:
Line has not correct number of parameters (corrupted file?): $ns_ at 4.8079418459760745 "$node_(1) setdest 77.44834255048075 188.42586833487042 10.0 173.792771532414"
But the 2D (X, Y) seems to be working fine.

I have come across the ns2 mobility helper documentation and this what i have found:
$node set X_ x1
$node set Y_ y1
$node set Z_ z1
$ns at $time $node setdest x2 y2 speed
$ns at $time $node set X_ x1
$ns at $time $node set Y_ Y1
$ns at $time $node set Z_ Z1

Note that in ns-3, movement along the Z dimension is not supported.

I did not understand how it does not support the Z dimension movement?
How I can use it for 3D movement?

ns2-mobility-trace.cc
model5 (1).movements
model5.ns_movements
Reply all
Reply to author
Forward
0 new messages