使用Libardrone Python

时间:2017-11-18 11:38:13

标签: python multithreading python-2.7 multiprocessing ar.drone

我真的需要你帮助解决这个问题。我试图使用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吗?

0 个答案:

没有答案