(Sphinx+Olympe) Drone does not respond to takeoff.py

Video clip run takeoff.py

https://youtu.be/01UJUGWSbNU

Code takeoff.py

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()
    assert drone(TakeOff()).wait().success()
    time.sleep(10)
    assert drone(Landing()).wait().success()
    drone.disconnect()


if __name__ == "__main__":
    test_takeoff()

I can run takeoff.py. but drone in unreal engine doesn’t move.

Hello,

You run sphinx in a VM and your real time factor is 5%, that’s way too low. If your machine meets the requirements and is properly configured (with latest GPU drivers): System requirements - 2.7 , you might want to take a look at this page to speed up the simulation: How to speed the simulation up - 2.7

Hi,

I have a recommend system requirements machine and have tried speed up but real time factor is 5%.

Would you recommend what I could do?

I recommend using sphinx outside the virtual machine, and you have to be sure that your GPU is properly recognized and configured. I don’t see any reason why you can have such a low real time factor with an empty world if your PC meets the requirements and is properly configured.

1 Like

This is my labtop specs
CPU : INTEL CORE I9-9880H
RAM : 16 GB DDR4 2666MHz
VGA : NVIDIA GEFORCE RTX2070 8 GB GDDR6

This command should return nvidia:

prime-select query

If that is not the case, you have to run this command:

prime-select nvidia

Screenshot 2022-05-05 162858

Your GPU does not seem to be properly installed. If you are still inside a VM I don’t know what you should do. Otherwise, you have to install nvidia drivers.

Should I use native ubuntu?

Yes, it will work better.

1 Like

Thank you very much.

This topic was automatically closed after 30 days. New replies are no longer allowed.