Problems in setting up SITL in Ubuntu 15.10 (sim_vehicle.sh -w)

191 views
Skip to first unread message

Koustubh Dwivedy

unread,
Jan 31, 2016, 5:48:35 PM1/31/16
to drones-discuss
I am trying to set up SITL on my machine by following the guide given on this page -> http://dev.ardupilot.com/wiki/setting-up-sitl-on-linux/
All steps have been done without any errors but when I start the SITL from /adrupilot/ArduPlane dir using
sim_vehicle.sh -w
I get the following error->
koustubh@koustubh-HP-242-G2-Notebook-PC:~/ardupilot/ArduPlane$ sim_vehicle.sh -w
~/ardupilot/ArduPlane ~/ardupilot/ArduPlane
Building sitl
fatal
: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Checking modules
modules
/PX4NuttX missing - need module init
+ git submodule init
+ git submodule update
fatal
: Needed a single revision
Unable to find current revision in submodule path 'modules/PX4Firmware'
+ echo git submodule update failed
git submodule update failed
+ git submodule status
 b020f59dab4fb8a6420ada31939e051008ab21a3 modules
/PX4Firmware
-d48fa3072b2396c489966c4ab10183ac7cf3dea9 modules/PX4NuttX
-006d23ccca1375a973b7fae0cc351cedb41b812a modules/gbenchmark
-c99458533a9b4c743ed51537e25989ea55944908 modules/gtest
-c47a4e6e1d008baa7af20818906b8275df49694d modules/mavlink
-6dd432c9742c22e1dd1638c7f91cf937e4bdb2f1 modules/uavcan
-878ab1e29494e28236a260212a5021b1de35d9a3 modules/waf
+ exit 1
../mk/modules.mk:8: recipe for target 'CHECK_MODULES' failed
make
: *** [CHECK_MODULES] Error 1
fatal
: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal
: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Checking modules
modules
/PX4NuttX missing - need module init
+ git submodule init
+ git submodule update
fatal
: Needed a single revision
Unable to find current revision in submodule path 'modules/PX4Firmware'
+ echo git submodule update failed
git submodule update failed
+ git submodule status
 b020f59dab4fb8a6420ada31939e051008ab21a3 modules
/PX4Firmware
-d48fa3072b2396c489966c4ab10183ac7cf3dea9 modules/PX4NuttX
-006d23ccca1375a973b7fae0cc351cedb41b812a modules/gbenchmark
-c99458533a9b4c743ed51537e25989ea55944908 modules/gtest
-c47a4e6e1d008baa7af20818906b8275df49694d modules/mavlink
-6dd432c9742c22e1dd1638c7f91cf937e4bdb2f1 modules/uavcan
-878ab1e29494e28236a260212a5021b1de35d9a3 modules/waf
+ exit 1
../mk/modules.mk:8: recipe for target 'CHECK_MODULES' failed
make
: *** [CHECK_MODULES] Error 1
/home/koustubh/ardupilot/Tools/autotest/sim_vehicle.sh: Build failed


It's been 2-3 hours of brain banging but still can't figure the way out. Please Help.

Grant Morphett

unread,
Feb 1, 2016, 9:47:24 PM2/1/16
to drones-discuss
The -w flag is to wipe all the parameters and set them back to defaults in the simulated vehicle.  See "sim_vehicle -h"
Further it looks like your git repository isn't setup correctly.  From the ardupilot folder try a "git pull --rebase" followed by a "git submodule update"

Thanks, Grant.

Koustubh Dwivedy

unread,
Feb 3, 2016, 12:35:56 AM2/3/16
to drones-discuss
Hi, thanks for the reply, but this didn't work. I got it running by commenting out .gitmodule file and check_modules.sh. I believe there's some problem with either git, or check_module.sh files.
Reply all
Reply to author
Forward
0 new messages