Am using ubuntu 14.04 on virtualBox
when i run the command
sudo sphinx /opt/parrot-sphinx/usr/share/sphinx/drones/bebop2.drone
i get this error
[Err] [Machine.cc:852] Failed to start bebop2 : net.hook/assign failed.
[Err] [Machine.cc:859] Probable cause for this error: the requested stolen interface (wlan0:eth0:192.168.42.1/24) does not exist
However, when i comment
<stolen_interface>wlan0:eth0:192.168.42.1/24</stolen_interface>
in my drone xml the simulator runs and no crashes but of course i cannot control the drone.
my iwconfig returns
wlan0 unassociated Nickname:“WIFI@REALTEK”
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
enp0s3 no wireless extensions.
enp0s8 no wireless extensions.
lo no wireless extensions.
and lsusb returns
Bus 001 Device 003: ID 2001:3315 D-Link Corp.
Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Now using Ubuntu 16.04 still the same issue.
If i run it without a sudo mode i get
terminate called after throwing an instance of 'boost::filesystem::filesystem_error’
what(): boost::filesystem::create_directory: Permission denied: “/home/majed/.gazebo/diagnostics/2018-03-08T14:17:59.115623”
Have you checked the wifi requirements for sphinx?
yes am using D-link Wireless AC1200 Dual Band USB Adapter
What is the reference of your wifi device?
wlan0
As for your first error, you should probably run sudo rm -rf /home/majed/.gazebo before relaunching sphinx without sudo.
In virtualbox, you should configure your virtual machine network access in bridge mode and launch sphinx with the option --port-forwarding set to your host IP address: sphinx --port-forwarding=<host_ip_address> /opt/parrot-sphinx/usr/share/sphinx/drones/bebop2.drone::with_front_cam=false
Are you sure that the interface of your USB adapter is enp0s5 and not wlx9cd64394084a in your example?
Ton configure it, you should just create a new filter in Configuration > USB filled with its vendor and product ID.
Also, it seems you are using a D-Link AC1200 Dual Band USB Adapter (a.k.a D-Link DWA-182 rev C1).
This adapter is based on a Realtek RTL8812AU chipset and even if this particular chipset support AP mode (on Windows or Mac), the Realtek drivers included in the mainline Linux kernel don’t support the AP mode for this chipset.
Thank you ocrave & ndessart for your responses.
Yes the problem was with my USB Adapter. Even it supports AC mode but it didnt work for some reasons.
I just got a RT5370 and now all good.