-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FlyNetSim.py #2
Comments
Thanks Toby for pointing out the mistakes. I will correct those in the code and instructions. Apart from the syntactical issues, some other functional issues may arise as some people tried out different cases. I have a plan to release an improved version of it. However, it may take a while, as I moved to other projects and have to manage time to work on it. |
Thank you for getting back to me,
I understand other projects take priority. The simulator does not seem to be working/ communicating with ns3. If it helps for any future work I'm on Mint 19.3 Cinnamon and have followed the instructions and have correct a couple of the paths.
Best of luck with everything
…________________________________
From: Sabur Baidya <[email protected]>
Sent: Saturday, 29 February 2020, 18:50
To: saburhb/FlyNetSim
Cc: Tedz10F; Author
Subject: Re: [saburhb/FlyNetSim] FlyNetSim.py (#2)
Thanks Toby for pointing out the mistakes. I will correct those in the code and instructions. Apart from the syntactical issues, some other functional issues may arise as some people tried out different cases. I have a plan to release an improved version of it. However, it may take a while, as I moved to other projects and have to manage time to work on it.
Thanks,
Sabur
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#2?email_source=notifications&email_token=AOQQGMYTLTZRQ7Y7MRLYC6LRFFMG7A5CNFSM4K64S6JKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENMC2UY#issuecomment-592981331>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AOQQGMZCGGYE3ITIYJUBDRDRFFMG7ANCNFSM4K64S6JA>.
|
@Tedz10F, @alicesquivel , could you please run "FlyNetSim_direct_no_ns3.py" that directly connects GCS and UAV bypassing ns-3. If that works fine, you can confirm that problem could be from ns-3. Also while running, do run with "-v 3" to print with verbose mode. @alicesquivel, your log doesn't look like ns-3 problem, as it shows "CONTROL: sending" and "CONTROL: message received". That means the first command from GCS goes through the ns-3 and reaches the UAV. However, at the UAV, it shows the error in Mavlink connection which is the connection of Ardupilot and the simulated vehicle. You probably need to debug your Ardupilot simulator separately. You can read more about that here : https://ardupilot.org/dev/docs/sitl-simulator-software-in-the-loop.html. |
Hi @saburhb, Thanks for following up! I got this error when I run ---> python FlyNetSim_direct_no_ns3.py -v 3 I will try debugging my Ardupilot simulator separately and then come back here! Thanks again! Alicia |
Hello @saburhb @alicesquivel , I did test the FlyNetSim_direct_no_ns3.py with the following results: Do you have any suggestions to integrate NS3? I am happy to manually install/configure it if you are able to let us know what NS builds/modules you used. Again, thank you for your time with this! Best Regards, |
Since the FlyNetSim_direct_no_ns3.py works fine and the code FlyNetSim.py is failing, the problem should be indeed from ns-3. I would suggest you to try two things:
|
Hi @Tedz10F, I got this error, in the Network Simulator: What do you think it is? An ns-3 problem? Thanks for all your comments and help! :D |
@alicesquivel .. The "address already in use" error comes from the port number which is still active by some other process. It could be caused by running the FlyNetSim multiple times and if the last process did not close the sockets gracefully; Or the port number is used by some other process in the same machine. The probability of the first reason is high. |
Hey @saburhb, I looked for that to comment it out, but I didn't find it. Thanks for all your help!! |
I think I found the file in the czmq folder. I commented out the #include <syslog.h> line, but I'm still getting the same issue. Is there a specific czmq version I need to use? I have this folder in the home folder (ns-3.27/). I followed this for the installation: Any comments or suggestions are more than welcome!! :)))) Thanks!!! |
@alicesquivel |
Great!!! I will run some experiments and try to integrate a map UI. I will let you know about my experiments! |
Hello @saburhb I get error like no candidate for czmq and libczmq4. I tried to add other repositories but no luck. Can you please tell me how to resolve this? |
@durgesh2020 |
Thank you so much for reply. Is it necessary to load both version 3 and 4 of czmq? |
@durgesh2020 |
Hi @alicesquivel @saburhb , |
Hi @alicesquivel @saburhb , |
Hello,
Firstly thank you for all of the detailed instructions, I'm currently undertaking an Undergraduate dissertation to do with evolutionary drone positioning, and read your thesis and might use the simulator to run some of my tests.
Just something that might be worth noting,
Not complaining, thought I'd let you know. Kudos for the work put into this
-Toby
The text was updated successfully, but these errors were encountered: