dronekit / dronekit-sitl

SITL runner for DroneKit.
120 stars 112 forks source link

dronekit-sitl copter: command not found #122

Open potatoes9113 opened 6 years ago

potatoes9113 commented 6 years ago

I followed the instruction and install mavproxy, dronekit and, dronekit-sitl but when I try to run dronekit-sitl copter the return is command not found. I checked pip list both are installed. I ran python --version the version I'm using is 2.7.14. How can I fix this?

ghost commented 6 years ago

Hey, I am having the same problem.

Do we have to change directories or something like that?

( I am using Ubuntu 17.04 ) ( When I installed sitl through PIP on Windows, It ran as documented with no errors)

ghost commented 6 years ago

In the dronekit-python Documentation, it's mentioned that DroneKit-SITL runs for x86 version of Linux only. I am using x64 version. Is this the issue?

http://python.dronekit.io/develop/sitl_setup.html

AnthonySong98 commented 6 years ago

Same problem !!!Any thoughts yet?

zengdiqing1994 commented 6 years ago

but where to find x86 version of linux?

hamishwillee commented 6 years ago

The toolchain works by downloading prebuilt images. They are downloaded when you call a command like dronekit-sitl copter.

BUT, the images are only prebuilt for x86 and for quite old versions of ArduPilot. If you want a more recent version of SITL OR if you want to have x64 then you can still use DK-SITL, but you will have to build the binaries yourself following the normal instructions for building native binaries.

If you do this you lose most of the benefit of DK-SITL - getting easy pre-build binaries. However this is still useful for integrating with test frameworks etc.

ABDULBASIT1998 commented 5 years ago

The toolchain works by downloading prebuilt images. They are downloaded when you call a command like dronekit-sitl copter.

BUT, the images are only prebuilt for x86 and for quite old versions of ArduPilot. If you want a more recent version of SITL OR if you want to have x64 then you can still use DK-SITL, but you will have to build the binaries yourself following the normal instructions for building native binaries.

If you do this you lose most of the benefit of DK-SITL - getting easy pre-build binaries. However this is still useful for integrating with test frameworks etc.

how to run the simulator?any idea i am x64 same problem? where to find the simulator file?

hamishwillee commented 5 years ago

@ABDULBASIT1998 You just quoted the answer to your own question. The files are not provided.

What you can do is build SITL natively: http://ardupilot.org/dev/docs/building-the-code.html

Even though you can't use prebuilt binaries, some people will still want to use DK-SITL with the binaries they build natively, because that makes it easier to script tests etc. You can do that by passing the file path to your natively built binary.

hamzawinix commented 5 years ago

this solved it for me sudo -H pip install dronekit-sitl