Skip to content
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

GCS connection problems #1

Open
nishant-raman opened this issue Feb 11, 2020 · 2 comments
Open

GCS connection problems #1

nishant-raman opened this issue Feb 11, 2020 · 2 comments

Comments

@nishant-raman
Copy link

nishant-raman commented Feb 11, 2020

Upon running FlyNetSim.py, and hitting Connect on the Ground Control Station window, the XTerm terminal remains displaying "Waiting for connection...". The GCS never manages to connect and proceed to activate the ARM button.

Screenshot from 2020-02-12 14-12-58

Screenshot from 2020-02-12 14-24-30

Following is what the terminal displays:

[MAIN] Starting the network simulator: xterm -T Network_Simulator -e 'cd ~/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27 && ./waf --run="uav-net-sim"'
[MAIN] Started the network simulator: xterm -T Network_Simulator -e 'cd ~/FlyNetSim/NetSim/ns-allinone-3.27/ns-3.27 && ./waf --run="uav-net-sim"'
[MAIN] [ZMQ] Binding publisher started tcp://127.0.0.1:5600
[MAIN] [ZMQ] Publisher bound complete tcp://127.0.0.1:5600
[MAIN] [ZMQ] Subscriber connect started tcp://127.0.0.1:5601
[MAIN] [ZMQ] Subscriber connect complete tcp://127.0.0.1:5601 Prefix @@@G_000
@saburhb
Copy link
Owner

saburhb commented Feb 11, 2020

It looks like the ns-3 is not working correctly. I have added a script "FlyNetSim_direct_no_ns3.py" that directly connects GCS and UAV bypassing ns-3. You can try running that. If that works fine, check your ns-3 installation. Also while running, do run with "-v 3" to print with verbose mode; the number 3 indicates that it prints logs from UAV, GCS and ns-3 all three of them.

@debashish216
Copy link

Hi,
One suggestion of to configure ns3 properly before trying out the UAV simulations. You may wish to run some simple examples in ns3 prior to the UAV simulation. Please check and suggest if this fixes your issue. Please comment if you need any further help. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants