我真的需要您帮助解决此问题。我正在尝试使用libardrone.py来自动驾驶我的AR Drone。这是我的代码:
import libardrone
from time import sleep
drone = libardrone.ARDrone()
drone.takeoff()
sleep(7)
drone.land()
sleep(3)
drone.halt()
但是,我的无人机在起飞后会一直盘旋,并且永远不会着陆。我收到以下错误:(我使用的是Windows 8)
Reloaded modules: arnetwork, libardrone, arvideo
Please install psyco for better video decoding performance.
Unable to bind video decoding methods with psyco. Proceeding anyways, but video decoding will be slow!
Exception in thread Thread-28:
Traceback (most recent call last):
File "C:\Users\Mariam\Anaconda3\envs\python27\lib\threading.py", line 801, in __bootstrap_inner
self.run()
File "arnetwork.py", line 105, in run
inputready, outputready, exceptready = select.select([self.drone.video_pipe, self.drone.nav_pipe], [], [], 1)
error: (10038, 'An operation was attempted on something that is not a socket')
是否有任何更新的libardrone?
尝试将pyardrone库用于ARDrone 2.0http://pyardrone.readthedocs.org/