Giter Club home page Giter Club logo

dronekit-sitl's People

Contributors

givanfp avatar hamishwillee avatar mrpollo avatar peterbarker avatar pietrodn avatar sciencectn avatar squilter avatar tcr3dr avatar tshapinsky avatar wsilva32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dronekit-sitl's Issues

Clearly Define SITL acronym in the README.md

As a new user of dronekitI am trying to make sense of my developer environment. That being said I believe SITL has something to do with the simulator, but I would like to know what the entire Acronym represents.

Not loading default params

I just followed the readme, and it didn't work.

dronekit-sitl copter-3.3-rc5 -I0 -S --model quad --home=-35.363261,149.165230,584,353

It would wipe the params, but not load the default ones. So I couldn't arm because the RC wasn't calibrated.

Can't pass in certain params when loading solo binary

This:
dronekit-sitl solo-1.2.0 -I0 -S --model quad --home=-35.363261,149.165230,584,353
does not work, resulting in:
./ArduCopter.elf: illegal option โ€” -

However, using copter-3.3 does work:
dronekit-sitl copter-3.3 -I0 -S --model quad --home=-35.363261,149.165230,584,353

Error executing dronekit-sitl in Raspberry Pi

I am trying to run dronekit-sitl on Raspberry Pi, without success. I have already run it on linux normally.
Here is what happens:

pi@raspberrypi:~ $ dronekit-sitl copter-3.3
os: linux, apm: copter, release: 3_.3
SITL already Downloaded.
Execute: /home/pi/.dronekit/sitl/copter-3.3/apm --home=-35.363261,149.165230,584,353 --model=quad
Traceback (most recent call last):
File "/usr/local/bin/dronekit-sitl", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/dronekit_sitl/init.py", line 417, in main
sitl.launch(args, verbose=True)
File "/usr/local/lib/python2.7/dist-packages/dronekit_sitl/init.py", line 239, in launch
p = Popen([self.path] + args, cwd=wd, shell=sys.platform == 'win32', stdout=PIPE, stderr=PIPE)
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in execute_child
raise child_exception
OSError: [Errno 8] Exec format error

Can anyone help me?

Solution also install and run mavproxy?

The example suggests you first run

dronekit-sitl copter-3.4-dev -I0 -S --model quad --home=-35.363261,149.165230,584,353

Then

mavproxy.py --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --out 127.0.0.1:14550 --out 127.0.0.1:14551

This second call only works if you've installed mavproxy. It would be much simpler for users if mavproxy were automatically installed and this command was run by the dronekit-sitl-runner. I imagine that might not be too hard for linux/mac because you could make mavproxy a dependency of the dronekit-sitl runner package?

On windows manual installation of all the mavproxy dependencies is a pain so typically we use the installer version. However I'm not sure how you would pass the second line above to that installer version of mavproxy.

@tcr3dr @TShapinsky - would appreciate your thoughts.

Plane build fails with ArduPlane.elf issue

Log below

C:\Users\hamis_000>dronekit-sitl plane-3.3.0
os: win, apm: plane, release: 3.3.0
Downloading SITL from http://d3jdmgrrydviou.cloudfront.net/plane/sitl-win-v3.3.0.tar.gz
Extracted.
Execute: ['.\\ArduPlane.elf', '--home', '-35.363261,149.165230,584,353']
'.\ArduPlane.elf' is not recognized as an internal or external command,
operable program or batch file.

Support Copter 3.2.1

The architecture is there, but had to be removed temporarily due to floating point exceptions on Windows and a mismatched pysim version elsewhere.

Getting "help" via ArduXxxx.elf not working

The -h option isn't working properly on builds I've tried on Windows (should be giving me the help options from ArduCopter.elf') . Could somehow be due to #40 except that the .elf file is being launched.

C:\Users\hamis_000>dronekit-sitl copter-3.3-rc11 -h
os: win, apm: copter, release: 3.3-rc11
SITL already Downloaded.
Execute: ['.\\ArduCopter.elf', '-h', '--home', '-35.363261,149.165230,584,353']
Options:
C:\Users\hamis_000>dronekit-sitl solo-1.1.40 -h
os: win, apm: solo, release: 1.1.40
SITL already Downloaded.
Execute: ['.\\ArduCopter.elf', '-h', '--home', '-35.363261,149.165230,584,353']
Options:
D:\deleteme>dronekit-sitl solo-1.1.40 -h
os: win, apm: solo, release: 1.1.40
SITL already Downloaded.
Execute: ['.\\ArduCopter.elf', '-h', '--home', '-35.363261,149.165230,584,353']
Options:
        --home HOME        set home location (lat,lng,alt,yaw)

%HOMEPATH% is not being expanded properly on (my) Windows

The tool is creating a folder named %HOMEPATH% in the current directory - ie so there is no global repo of builds being downloaded. I suspect that the intention is that this be expanded to the user's homepath.

I do get the right expansion on the command line:

D:\deleteme\test>echo %HOMEPATH%
\Users\hamis_000

This may be caused by other issues with my computer, but I'd still appreciate advice on debugging.

make this a global lib

we should aim to install this under /usr/local/ expose the executable somewhere in the hosts PATH and store downloads under the install directory

Starting dronekit-sitl with no internet

Is there a way to start a dronekit-sitl instance without having internet?

When I don't have internet and try to do it, I get this error:

dronekit-sitl copter
os: osx, apm: copter, release: stable
Traceback (most recent call last):
  File "/usr/local/bin/dronekit-sitl", line 9, in <module>
    load_entry_point('dronekit-sitl==3.0.1', 'console_scripts', 'dronekit-sitl')()
  File "/usr/local/lib/python2.7/site-packages/dronekit_sitl/__init__.py", line 415, in main
    sitl.download(system, version, target=target, verbose=True)
  File "/usr/local/lib/python2.7/site-packages/dronekit_sitl/__init__.py", line 132, in download
    version = version_list()[system]['stable']
  File "/usr/local/lib/python2.7/site-packages/dronekit_sitl/__init__.py", line 83, in version_list
    raw = urllib2.urlopen(req).read()
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1227, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error [Errno 8] nodename nor servname provided, or not known>

Floating point exception running copter-3.2.1

C:\Users\hamis_000\Documents\vagranttesting\ramonsitl>dronekit-sitl copter-3.2.1
os: win, apm: copter, release: 3.2.1
Downloading SITL from http://d3jdmgrrydviou.cloudfront.net/copter/sitl-win-v3.2.1.tar.gz
Extracted.
Execute: ['.\\ArduCopter.elf']
ERROR: Floating point exception
Starting sketch 'ArduCopter'
Starting SITL input

C:\Users\hamis_000\Documents\vagranttesting\ramonsitl>

APM Params are not preserved

APM params, such was WPNAV_SPEED, are not being preserved between dronekit-sitl launches. Dronekit-sitl is being invoked like this:

dronekit-sitl solo-1.2.0 --home=37.331816,-122.029598,0,90

Linux connection advice

I have been able to test our installation instructions "a bit" on linux. I opened a recent Linux ubuntu build in a VM and installed the dronekit-sitl runner exactly as in the instructions (except using "sudo" prefix).

Once running, the dronekit-sitl-runner gets to a point as shown:

Started model quad at -35.363261,149.165230,584,353 at speed 1.0
Starting sketch 'ArduCopter'
Starting SITL input
bind port 5760 for 0
Serial port 0 on TCP port 5760
Waiting for connection ....

I then used ifconfig to get the IP address of the VM and was able to connect over TCP from Mission Planner running on the host windows computer (to port 5760).

However I can't seem to connect to the instance using UDP from the host or the VM. I've tried
mavproxy.py --master=127.0.0.1:14550
and
mavproxy.py --master=192.168.65.133:14550 (ip address of the VM)
and
mavproxy.py --master=192.168.65.133:5760 (the TCPIP port)

I also changed the output of the SITL to be the IP address of the host.

Does this work/how do I get this working? Basically I need to get the linux->linux working so that the dronekit instructions make sense.

SITL should be easy to fly "out of the box"

SITL doesn't have default params by default so you can't pass arming checks on first load and the default params won't allow arming or flight.

The system should make this easy for you

  • automatically load the autotest params for the vehicle on first load (only) - these include disabling the armed_check param.
  • There there should be some command line argument to allow a new set of params to be loaded on startup OR a way to restart/reset back to the defaults (but this shouldn't be called automatically after the first startup).

dronekit.tools ImportError - No module named tools

when issuing any Dronekit-sitl command such as dronekit-sitl --list, dronekit/lib/init.py fails trying to import errprinter from dronekit.tools.

OS: OSX
dronekit-sitl version: 3.0.1

steps to reproduce

  1. install dronekit-sitl
  2. issue any dronekit-sitl command, i.e. dronekit-sitl --list

result
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/dronekit/lib/init.py", line 7, in
from dronekit.tools import errprinter
ImportError: No module named tools

expected result
dronekit-sitl commands should work as described

SITL print the whole URL for connecting

SITL starts by exposing a TCP port. Ideally you should be able to connect this using a localhost address, but this failed on windows. That means that the instructions to get the "full URL" for connecting end up needing to be quite complicated (e.g. on windows, got to commandprompt, run ipconfig, get current address then do ....)

It would be better if

  • Localhost connection to the TCP port worked
  • Rather than just printing the TCP port to connect on, the tool printed the full IP address and port to connect to.

Failed running dronekit-sitl copter-3.2.1

I installed the runner as shown on Windows:

D:\github\testsitlrunner>pip install git+https://github.com/3drobotics/dronekit-sitl-runner
Downloading/unpacking git+https://github.com/3drobotics/dronekit-sitl-runner
  Cloning https://github.com/3drobotics/dronekit-sitl-runner to c:\users\hamis_~1\appdata\local\temp\pip-r_z19j-build
  Running setup.py (path:c:\users\hamis_~1\appdata\local\temp\pip-r_z19j-build\setup.py) egg_info for package from git+https://github.com/3drobotics/dronekit-sitl-runner

  Requirement already satisfied (use --upgrade to upgrade): dronekit-sitl==2.0.1 from git+https://github.com/3drobotics/dronekit-sitl-runner in c:\python27\lib\site-package
Requirement already satisfied (use --upgrade to upgrade): psutil>=3.0 in c:\python27\lib\site-packages (from dronekit-sitl==2.0.1)
Cleaning up...

Then ran dronekit-sitl copter-3.2.1. Note error when trying to run SITL, as shown below:

D:\github\testsitlrunner>  dronekit-sitl copter-3.2.1
os: win, apm: copter, release: 3.2.1
Downloading SITL from http://d3jdmgrrydviou.cloudfront.net/copter/sitl-win-v3.2.1.tar.gz
Extracted.
Execute: ['.\\ArduCopter.elf']
'.\ArduCopter.elf' is not recognized as an internal or external command,
operable program or batch file.

SITL won't load custom firmware on OSX, permission denied spawning subprocess

I can load the stock firmware (Copter 3.3) fine on OSX El Capitan, but attempts to load local custom firmware fails on launch.

This:
sudo dronekit-sitl ./ArduCopter-v2.px4

Throws the following exception:
os: osx, local binary: /Users//ardupilot/ArduCopter/ArduCopter-v2.px4
Note: Starting pysim for legacy SITL.
Pysim: /usr/local/opt/python/bin/python2.7 /usr/local/lib/python2.7/site-packages/dronekit_sitl/pysim/sim_wrapper.py --simin=127.0.0.1:5502 --simout=127.0.0.1:5501 --fgout=127.0.0.1:5503 --home=-35.363261,149.165230,584,353 --frame=+
Execute: /Users/
/ardupilot/ArduCopter/ArduCopter-v2.px4 /Users/______/ardupilot/ArduCopter/ArduCopter-v2.px4
Traceback (most recent call last):
File "/usr/local/bin/dronekit-sitl", line 9, in
load_entry_point('dronekit-sitl==3.0.1', 'console_scripts', 'dronekit-sitl')()
File "/usr/local/lib/python2.7/site-packages/dronekit_sitl/init.py", line 417, in main
sitl.launch(args, verbose=True)
File "/usr/local/lib/python2.7/site-packages/dronekit_sitl/init.py", line 239, in launch
p = Popen([self.path] + args, cwd=wd, shell=sys.platform == 'win32', stdout=PIPE, stderr=PIPE)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied

Should not require python -m prefix to launch on MAC OS X

From this comment:

To run dronekit-sitl I end up invoking python -m dronekit_sitl_runner.init which isn't the prettiest (I need to invoke mavproxy similarly through python -m MAVProxy.mavproxy, but at least it looks nicer). The -m flag won't let me name a function to call, so I had to add the following to init.py:
....
After that, python -m dronekit_sitl_runner.init --list works as expected.

The bug is that you should not need to run python -m dronekit_sitl. Using python -m should of course be possible.

APM Planner 2.0 disconnects

I'm using dronekit-sitl copter to start my sitl.

Then in another terminal I do: mavproxy.py --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --out 127.0.0.1:14550 --out 127.0.0.1:14551

Then I open APM Planner 2.0 (version 2.0.18) and it connects to the vehicle, but after like 10-15 seconds the voice says "Link lost to system 1"... Only if I restart the application I can see updates... but only lasts for 10-15 seconds.

Is there something I need to do to prevent those disconnects?

Can't get any builds to work on Windows using new pip build

I uninstalled dronekit-sitl, then re-installed using pip2 install dronekit-sitl -UI. Then called dronekit-sitl --reset. I tried all the builds a number of times. I rebooted the computer. Repeatable results below.

The following three downloaded and started fine (ie binding the port). However only one heartbeat was received in all cases on Mission Planner - ie failed with timeout.

dronekit-sitl copter-3.3-rc11
dronekit-sitl copter-3.3-rc5
dronekit-sitl rover-2.50

This failed with an exception:

>dronekit-sitl copter-3.2.1
os: win, apm: copter, release: 3.2.1
Downloading SITL from http://d3jdmgrrydviou.cloudfront.net/copter/sitl-win-v3.2.1.tar.gz
Extracted.
Execute: ['.\\ArduCopter.elf']
Starting sketch 'ArduCopter'
ERROR: Floating point exception
Starting SITL input

This one seems to have buggered up paths:

C:\Apps\WinPython-64bit-2.7.10.2\python-2.7.10.amd64>dronekit-sitl plane-3.3.0
os: win, apm: plane, release: 3.3.0
Downloading SITL from http://d3jdmgrrydviou.cloudfront.net/plane/sitl-win-v3.3.0.tar.gz
Extracted.
Traceback (most recent call last):
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Apps\WinPython-64bit-2.7.10.2\python-2.7.10.amd64\Scripts\dronekit-sitl.exe\__main__.py", line 9, in <module>
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\site-packages\dronekit\sitl\__init__.py", line 306, in main
    sitl.launch(args, verbose=True, local=local)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\site-packages\dronekit\sitl\__init__.py", line 148, in launch
    elf = open(os.path.join(wd, args[0])).read()
IOError: [Errno 2] No such file or directory: 'C:\\Apps\\WinPython-64bit-2.7.10.2\\settings\\.dronekit\\sitl\\plane-3.3.0\\.\\ArduPlane.elf'

This one failed to download:

>dronekit-sitl solo-1.1.46

os: win, apm: solo, release: 1.1.46
Downloading SITL from http://d3jdmgrrydviou.cloudfront.net/solo/sitl-win-v1.1.46.tar.gz
Traceback (most recent call last):
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Apps\WinPython-64bit-2.7.10.2\python-2.7.10.amd64\Scripts\dronekit-sitl.exe\__main__.py", line 9, in <module>
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\site-packages\dronekit\sitl\__init__.py", line 304, in main
    sitl.download(target, verbose=True)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\site-packages\dronekit\sitl\__init__.py", line 119, in download
    return download(self.system, self.version, target, verbose=verbose)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\site-packages\dronekit\sitl\__init__.py", line 97, in download
    testfile.retrieve(sitl_file, sitl_target + '/sitl.tar.gz')
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\urllib.py", line 245, in retrieve
    fp = self.open(url, data)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\urllib.py", line 364, in open_http
    return self.http_error(url, fp, errcode, errmsg, headers)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\urllib.py", line 381, in http_error
    return self.http_error_default(url, fp, errcode, errmsg, headers)
  File "c:\apps\winpython-64bit-2.7.10.2\python-2.7.10.amd64\lib\urllib.py", line 386, in http_error_default
    raise IOError, ('http error', errcode, errmsg, headers)
IOError: ('http error', 404, 'Not Found', <httplib.HTTPMessage instance at 0x00000000029B2A08>)

Policy for rebuilding binaries?

Currently this has copter-3.3-rc5 which is now quite "old":

  1. What builds will will have by default?
  2. How often will we update?
  3. Can we automate creation of needed builds?

Windows and OS X need to be rebuilt.

The Windows versions were generated with wrong directories and manually fixed. The OS X versions don't seem to all target GCC.

Need to fix the Windows builder and re-run the OS X builds.

Add SITL options that can be passed to the dronekit runner to Readme/help

If you run dronekit-sitl or dronekit-sitl --help you get the following options:

ubuntu@ubuntu:~$ dronekit-sitl 
Please specify one of:
  dronekit-sitl --list
  dronekit-sitl --reset
  dronekit-sitl <copter(-version)>
  dronekit-sitl <plane(-version)>

However I can see from your example I can actually specify more options (model, home, IO, s):

dronekit-sitl copter-3.4-dev -I0 -S --model quad --home=-35.363261,149.165230,584,353

Is there a list of all options we can pass anywhere?

The help above and the readme.md should make it clear that there are additional commands that can be supported.

Auto-load parameters

After getting a sitl session set up, I kept getting the error "rc not calibrated". Loading params with param load <ardupilot>\Tools\autotest\copter_params.parm fixed the problem. It would be nice to have these auto-loaded. If that is not doable, an extra sentence in the readme to remind users to load params would be good.

dronekit-sitl-runner should spawn mavproxy to set up UDP

To set up SITL you call the following lines( in separate terminals):

dronekit-sitl copter-3.4-dev -I0 -S --model quad --home=-35.363261,149.165230,584,353
mavproxy.py --master tcp:127.0.0.1:5760 --sitl 127.0.0.1:5501 --out 127.0.0.1:14550 --out 127.0.0.1:14551

The first line starts SITL which only exposes its TCP connection and waits.

The second line spawns an instance of mavproxy that connects SITL TCP and forwards packets to UDP localhost.

The requirement is that dronekit-sitle-runner spawn mavproxy for you. This would be more like using the familiar sim_vehicle.sh

Error installing dronekit-sitl into python 3 environment on Windows

See debug output below.

C:\Program Files>pip list
pip (7.1.2)
setuptools (18.2)

C:\Program Files>pip install dronekit-sitl -UI
Collecting dronekit-sitl
  Using cached dronekit_sitl-3.0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "C:\Users\hamis\AppData\Local\Temp\pip-build-u2ghls8d\dronekit-sitl\setup.py", line 32
        print 'Cleared cached SITL binaries.'
                                            ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\hamis\AppData\Local\Temp\pip-build-u2ghls8d\dronekit-sitl

Similarly, when tried using github version got permission denied errors.

C:\Program Files>pip install git+https://github.com/dronekit/dronekit-sitl
Collecting git+https://github.com/dronekit/dronekit-sitl
  Cloning https://github.com/dronekit/dronekit-sitl to c:\users\hamis\appdata\local\temp\pip-w5aohs6v-buil
Collecting psutil>=3.0 (from dronekit-sitl==3.0.1)
  Downloading psutil-3.4.1-cp35-none-win_amd64.whl (96kB)
    100% |################################| 98kB 927kB/s
Collecting dronekit>=2.0.0b6 (from dronekit-sitl==3.0.1)
  Downloading dronekit-2.1.0b1.tar.gz
Collecting six>=1.10 (from dronekit-sitl==3.0.1)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting pymavlink>=1.1.62 (from dronekit>=2.0.0b6->dronekit-sitl==3.0.1)
  Downloading pymavlink-1.1.67.tar.gz (1.8MB)
    100% |################################| 1.8MB 132kB/s
Collecting requests<=2.99999,>=2.5.0 (from dronekit>=2.0.0b6->dronekit-sitl==3.0.1)
  Using cached requests-2.9.1-py2.py3-none-any.whl
Installing collected packages: psutil, pymavlink, requests, dronekit, six, dronekit-sitl
Exception:
Traceback (most recent call last):
  File "C:\Program Files\Python35\lib\site-packages\pip\basecommand.py", line 211, in main
    status = self.run(options, args)
  File "C:\Program Files\Python35\lib\site-packages\pip\commands\install.py", line 311, in run
    root=options.root_path,
  File "C:\Program Files\Python35\lib\site-packages\pip\req\req_set.py", line 646, in install
    **kwargs
  File "C:\Program Files\Python35\lib\site-packages\pip\req\req_install.py", line 803, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "C:\Program Files\Python35\lib\site-packages\pip\req\req_install.py", line 998, in move_wheel_files
    isolated=self.isolated,
  File "C:\Program Files\Python35\lib\site-packages\pip\wheel.py", line 339, in move_wheel_files
    clobber(source, lib_dir, True)
  File "C:\Program Files\Python35\lib\site-packages\pip\wheel.py", line 310, in clobber
    ensure_dir(destdir)
  File "C:\Program Files\Python35\lib\site-packages\pip\utils\__init__.py", line 71, in ensure_dir
    os.makedirs(path)
  File "C:\Program Files\Python35\lib\os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\psutil'

Default model parameter should be supplied

Following on from #34 I retested connections. The following call fails to connect over tcp from Mission Planner. I can see that a connection is briefly made (the listen port number updates from 5760 to 5763 and MP reports "Only one heartbeat supplied). I can also see that the default --home location is supplied as expected:

dronekit-sitl copter-3.3-rc11

I can connect if I supply the model as shown below:

dronekit-sitl copter-3.3-rc11 --model quad

So we need to supply model as well. Note, I assume that rover/plane don't have a "model" but they may. We need to check passing an invalid default to them doesn't cause problems.

Note - same problem/fix on the solo build too.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.