无法使用Libardrone Python自主驾驶我的AR无人机

问题描述 投票:1回答:1

我真的需要您帮助解决此问题。我正在尝试使用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?

python multithreading python-2.7 multiprocessing ar.drone
1个回答
0
投票

尝试将pyardrone库用于ARDrone 2.0http://pyardrone.readthedocs.org/

© www.soinside.com 2019 - 2024. All rights reserved.