except I don’t see a file called sim_vehicle.py in the ardupilot/ArduCopter directory. I found a file of the same name in ardupilot/Tools/autotest/ and tried running that but I get the following:
[Run MavProxy] An exception has occurred with command: '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 --map --console'
[Errno 2] No such file or directory
SIM_VEHICLE: Killing tasks
RiTW: Window access not found, logging to /tmp/ArduCopter.log
/home/pmweeks/drone_task/ardupilot/Tools/autotest/run_in_terminal_window.sh: line 54: 17445
Terminated "$cmd" $* &> "$filename" < /dev/null
I’ve tried that, and that’s where I’m getting this error. I’ve tried the following:
from ardupilot directory:
./Tools/autotest/sim_vehicle.py --map --console -v ArduCopter
from ardupilot directory:
./Tools/autotest/sim_vehicle.py --vehicle=ArduCopter
from ardupilot/Tools/autotest directory
./sim_vehicle.py --vehicle=ArduCopter
all give me the same error as above:
[Run MavProxy] An exception has occurred with command: ‘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’
[Errno 2] No such file or directory
SIM_VEHICLE: Killing tasks
RiTW: Window access not found, logging to /tmp/ArduCopter.log
/home/pmweeks/drone_task/ardupilot/Tools/autotest/run_in_terminal_window.sh: line 54: 17946
Terminated “$cmd” $* &> “$filename” < /dev/null
Seems that mavproxy is not installed, or not found.
I have simulator running on WSL, on a system somewhere and if I remember correctly there is no .profile so you have to set path manually
You need a X11 driver running before launch
Maybe we need to make big red warning if something when wrong on install script !
I will open an issue on that point… @Peter_Weeks could you use again ./Tools/environment_install/install-prereqs-ubuntu.sh -y and double check that nothing fails ? thanks
dpkg-query -l lsb-release
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
++±========================-=================-=================-=====================================================
ii lsb-release 9.20170808ubuntu1 all Linux Standard Base version reporting utility
read -r UBUNTU_CODENAME
++ lsb_release -c -s
‘[’ bionic = precise ‘]’
‘[’ bionic = trusty ‘]’
sudo usermod -a -G dialout pmweeks
dpkg-query -l modemmanager
dpkg-query: no packages found matching modemmanager
sudo apt-get --assume-yes install build-essential ccache g++ gawk git make wget libtool libxml2-dev libxslt1-dev python-dev python-pip python-setuptools python-matplotlib python-serial python-scipy python-opencv python-numpy python-pyparsing xterm lcov gcovr libcsfml-dev libcsfml-audio2.4 libcsfml-dev libcsfml-graphics2.4 libcsfml-network2.4 libcsfml-system2.4 libcsfml-window2.4 libsfml-audio2.4 libsfml-dev libsfml-graphics2.4 libsfml-network2.4 libsfml-system2.4 libsfml-window2.4 python-yaml python3-yaml python-wxgtk3.0 libtool-bin python-argparse openocd flex bison libncurses5-dev autoconf texinfo libftdi-dev zlib1g-dev zip genromfs python-empy cmake cmake-data libc6-i386 g+±arm-linux-gnueabihf pkg-config-arm-linux-gnueabihf
Reading package lists… Done
Building dependency tree
Reading state information… Done
Note, selecting ‘libpython2.7-stdlib’ instead of ‘python-argparse’
autoconf is already the newest version (2.69-11).
bison is already the newest version (2:3.0.4.dfsg-1build1).
build-essential is already the newest version (12.4ubuntu1).
ccache is already the newest version (3.4.1-1).
flex is already the newest version (2.6.4-6).
gawk is already the newest version (1:4.1.4+dfsg-1build1).
libc6-i386 is already the newest version (2.27-3ubuntu1).
libtool is already the newest version (2.4.6-2).
libtool-bin is already the newest version (2.4.6-2).
make is already the newest version (4.1-9.1ubuntu1).
python-dev is already the newest version (2.7.15~rc1-1).
python-numpy is already the newest version (1:1.13.3-2ubuntu1).
python-pyparsing is already the newest version (2.2.0+dfsg1-2).
python-serial is already the newest version (3.4-2).
python-setuptools is already the newest version (39.0.1-2).
python-yaml is already the newest version (3.12-1build2).
python3-yaml is already the newest version (3.12-1build2).
zip is already the newest version (3.0-11build1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-0ubuntu2).
gcovr is already the newest version (3.4-1).
genromfs is already the newest version (0.5.2-2build3).
lcov is already the newest version (1.13-3).
libcsfml-audio2.4 is already the newest version (2.4-2).
libcsfml-dev is already the newest version (2.4-2).
libcsfml-graphics2.4 is already the newest version (2.4-2).
libcsfml-network2.4 is already the newest version (2.4-2).
libcsfml-system2.4 is already the newest version (2.4-2).
libcsfml-window2.4 is already the newest version (2.4-2).
libftdi-dev is already the newest version (0.20-4build3).
libsfml-audio2.4 is already the newest version (2.4.2+dfsg-4).
libsfml-dev is already the newest version (2.4.2+dfsg-4).
libsfml-graphics2.4 is already the newest version (2.4.2+dfsg-4).
libsfml-network2.4 is already the newest version (2.4.2+dfsg-4).
libsfml-system2.4 is already the newest version (2.4.2+dfsg-4).
libsfml-window2.4 is already the newest version (2.4.2+dfsg-4).
openocd is already the newest version (0.10.0-4).
python-empy is already the newest version (3.3.2-1build1).
python-matplotlib is already the newest version (2.1.1-2ubuntu3).
python-scipy is already the newest version (0.19.1-2ubuntu1).
python-wxgtk3.0 is already the newest version (3.0.2.0+dfsg-7).
texinfo is already the newest version (6.5.0.dfsg.1-2).
xterm is already the newest version (330-1ubuntu2).
cmake is already the newest version (3.10.2-1ubuntu2.18.04.1).
cmake-data is already the newest version (3.10.2-1ubuntu2.18.04.1).
g++ is already the newest version (4:7.4.0-1ubuntu2.3).
g+±arm-linux-gnueabihf is already the newest version (4:7.4.0-1ubuntu2.3).
git is already the newest version (1:2.17.1-1ubuntu0.5).
libncurses5-dev is already the newest version (6.1-1ubuntu1.18.04).
libpython2.7-stdlib is already the newest version (2.7.17-1~18.04).
libxml2-dev is already the newest version (2.9.4+dfsg1-6.1ubuntu1.2).
libxslt1-dev is already the newest version (1.1.29-5ubuntu0.2).
wget is already the newest version (1.19.4-1ubuntu2.2).
pkg-config-arm-linux-gnueabihf is already the newest version (4:7.4.0-1ubuntu2.3).
python-opencv is already the newest version (3.2.0+dfsg-4ubuntu0.1).
python-pip is already the newest version (9.0.1-2.3~ubuntu1.18.04.1).
The following package was automatically installed and is no longer required:
libdumbnet1
Use ‘sudo apt autoremove’ to remove it.
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.
apt-cache search arm-none-eabi
binutils-arm-none-eabi - GNU assembler, linker and binary utilities for ARM Cortex-A/R/M processors
gcc-arm-none-eabi - GCC cross compiler for ARM Cortex-A/R/M processors
gcc-arm-none-eabi-source - GCC cross compiler for ARM Cortex-A/R/M processors (source)
libnewlib-arm-none-eabi - C library and math library compiled for bare metal using Cortex A/R/M
libstdc+±arm-none-eabi-newlib - GNU Standard C++ Library v3 for ARM Cortex-A/R/M processors (newlib)
ubertooth-firmware - Firmware for Ubertooth
ubertooth-firmware-source - Source code for the Ubertooth firmware
cd /home/pmweeks/drone_task/ardupilot
git submodule update --init --recursive
echo ‘---------- ./Tools/environment_install/install-prereqs-ubuntu.sh end ----------’
---------- ./Tools/environment_install/install-prereqs-ubuntu.sh end ----------
@khancyr I still get the same error @ppoirier I checked my home directory and ~/.profile exists and has the following line:
export PATH=/home/pmweeks/drone_task/ardupilot/Tools/autotest:$PATH
There is something mixed up with your ubuntu installation. I just tried a fresh install of WSL Ubuntu 18 and did a standard install of SITL. It worked flawlessly.
You should be able to run mavproxy.py from any directory.
Here is my build log:
sim_vehicle.py --console --map
SIM_VEHICLE: Start
SIM_VEHICLE: Killing tasks
SIM_VEHICLE: Starting up at SITL location
SIM_VEHICLE: WAF build
SIM_VEHICLE: Configure waf
SIM_VEHICLE: “/home/alien/ardupilot/modules/waf/waf-light” “configure” “–board” “sitl”
Setting top to : /home/alien/ardupilot
Setting out to : /home/alien/ardupilot/build
Autoconfiguration : enabled
Setting board to : sitl
Using toolchain : native
Checking for ‘g++’ (C++ compiler) : /usr/lib/ccache/g++
Checking for ‘gcc’ (C compiler) : /usr/lib/ccache/gcc
Checking for c flags ‘-MMD’ : yes
Checking for cxx flags ‘-MMD’ : yes
Checking for need to link with librt : not necessary
Checking for feenableexcept : yes
Checking for HAVE_CMATH_ISFINITE : yes
Checking for HAVE_CMATH_ISINF : yes
Checking for HAVE_CMATH_ISNAN : yes
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : yes
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : yes
Checking for header endian.h : yes
Checking for header byteswap.h : yes
Checking for HAVE_MEMRCHR : yes
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.15
Checking for program ‘python’ : /usr/bin/python
Checking for python version >= 2.7.0 : 2.7.15
Source is git repository : yes
Update submodules : yes
Checking for program ‘git’ : /usr/bin/git
Checking for program ‘size’ : /usr/bin/size
Benchmarks : disabled
Unit tests : enabled
Scripting : enabled
Scripting runtime checks : enabled
Checking for program ‘rsync’ : /usr/bin/rsync
‘configure’ finished successfully (2.814s)
SIM_VEHICLE: Building
SIM_VEHICLE: “/home/alien/ardupilot/modules/waf/waf-light” “build” “–target” “bin/arducopter”
Waf: Entering directory /home/alien/ardupilot/build/sitl' Embedding file sandbox.lua:libraries/AP_Scripting/scripts/sandbox.lua Waf: Leaving directory /home/alien/ardupilot/build/sitl’
BUILD SUMMARY
Build directory: /home/alien/ardupilot/build/sitl
Target Text Data BSS Total