Trying to run takeoff.py on the simulated drone,
import olympe
import os
import time
from olympe.messages.ardrone3.Piloting import TakeOff, Landing
DRONE_IP = os.environ.get("DRONE_IP", "10.202.0.1")
def test_takeoff():
drone = olympe.Drone(DRONE_IP)
drone.connect()
drone(TakeOff()).wait().success()
time.sleep(10)
drone(Landing()).wait().success()
drone.disconnect()
if __name__ == "__main__":
test_takeoff()
Comes back with this error
2023-12-13 20:22:37,653 [INFO] olympe.backend - _create_pomp_loop - Creating pomp loop
2023-12-13 20:22:37,653 [INFO] olympe.backend - _do_create - device callbacks have been added to arsdk_ctrl
2023-12-13 20:22:37,654 [INFO] olympe.scheduler - _create_pomp_loop - Creating pomp loop
2023-12-13 20:22:37,659 [INFO] olympe.media - _create_pomp_loop - Creating pomp loop
2023-12-13 20:22:40,661 [WARNING] olympe.drone - _async_discover_device - Net discovery failed for b’10.202.0.1’
2023-12-13 20:22:40,661 [WARNING] olympe.drone - _async_discover_device - Trying ‘NetRaw’ discovery for b’10.202.0.1’ …
2023-12-13 20:22:43,660 [ERROR] olympe.drone - connect - ‘10.202.0.1’ connection timed out
2023-12-13 20:22:43,661 [INFO] olympe.drone - disconnect - Disconnection with the device OK. IP: b’10.202.0.1’
2023-12-13 20:22:43,662 [ERROR] olympe.drone - call - Unhandled exception
Traceback (most recent call last):
File “/home/parrotsim/.local/lib/python3.8/site-packages/olympe/utils/init.py”, line 100, in call
return self.func(*args, **kwargs)
File “/home/parrotsim/.local/lib/python3.8/site-packages/olympe/arsdkng/cmd_itf.py”, line 596, in _send_command_impl
raise RuntimeError(“[sendcmd] Error cmd interface seems to be destroyed”)
RuntimeError: [sendcmd] Error cmd interface seems to be destroyed
2023-12-13 20:22:43,662 [ERROR] olympe.backend - run_async - Unhandled exception in async task function
Traceback (most recent call last):
File “/home/parrotsim/.local/lib/python3.8/site-packages/olympe/concurrent/init.py”, line 285, in run_async
ret = func(*args, **kwds)
File “/home/parrotsim/.local/lib/python3.8/site-packages/olympe/utils/init.py”, line 90, in
lambda *args, **kwds: self._method_call(obj, *args, **kwds)
File “/home/parrotsim/.local/lib/python3.8/site-packages/olympe/utils/init.py”, line 94, in _method_call
return self.call(this, *args, **kwds)
File “/home/parrotsim/.local/lib/python3.8/site-packages/olympe/utils/init.py”, line 100, in call
return self.func(*args, **kwargs)
File “/home/parrotsim/.local/lib/python3.8/site-packages/olympe/arsdkng/cmd_itf.py”, line 596, in _send_command_impl
raise RuntimeError(“[sendcmd] Error cmd interface seems to be destroyed”)
RuntimeError: [sendcmd] Error cmd interface seems to be destroyed
2023-12-13 20:22:45,662 [ERROR] olympe.drone - _do_connect - ‘10.202.0.1 connection retries failed
2023-12-13 20:23:03,682 [INFO] olympe.drone - disconnect - Disconnection with the device OK. IP: b’10.202.0.1’
2023-12-13 20:23:03,805 [INFO] olympe.drone - _on_device_removed - <olympe.arsdkng.cmd_itf.DisconnectedEvent object at 0x7fbd20edc1c0>
2023-12-13 20:23:03,806 [INFO] olympe.media - _destroy_pomp_loop - Pomp loop has been destroyed: Thread-3
2023-12-13 20:23:03,806 [INFO] olympe.scheduler - _destroy_pomp_loop - Pomp loop has been destroyed: subscribers_thread
2023-12-13 20:23:04,007 [INFO] olympe.backend - _destroy_pomp_loop - Pomp loop has been destroyed: Thread-2