Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dronekit-sitl copter: command not found #122

Open
potatoes9113 opened this issue Feb 3, 2018 · 8 comments
Open

dronekit-sitl copter: command not found #122

potatoes9113 opened this issue Feb 3, 2018 · 8 comments

Comments

@potatoes9113
Copy link

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
Copy link

ghost commented Feb 5, 2018

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
Copy link

ghost commented Feb 5, 2018

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
Copy link

Same problem !!!Any thoughts yet?

@zengdiqing1994
Copy link

but where to find x86 version of linux?

@hamishwillee
Copy link
Contributor

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
Copy link

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
Copy link
Contributor

@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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants