Hello, I 'm following the instructions on:
to setup SITL on ubuntu 14.04 (64 bit).
Everything seems to work fine, until I get to section “Start SITL simulator”, which asks to change dir to the vehicle of choice (in my case ArduPlane) and then issue “sim_vehicle.sh -w”
The sim_vehicle command then goes and builds all sorts of things in various directories, seemingly without any problems.
At the end of the build, I get the following:
make[1]: Leaving directory `/home/andreas/ardupilot/AntennaTracker'
~/ardupilot/ArduPlane
Starting up at CMAC : -35.363261,149.165230,584,353
Starting ardupilot : /home/andreas/ardupilot/.elf -S -I0 --home -35.363261,149.165230,584,353 -w --model --speedup=1
WARNING: You should uninstall ModemManager as it conflicts with APM and Pixhawk
Connect tcp:127.0.0.1:5760 source_system=255
(error(111, 'Connection refused'), 'sleeping')
(error(111, 'Connection refused'), 'sleeping')
Failed to connect to tcp:127.0.0.1:5760 : [Errno 111] Connection refused
The obvious question here is, what manner of beast is a ModemManager? How dare it conflict with APM and Pixhawk (and if it does, why is it in there by default anyway?) and how do I slay it? You should uninstall ModemManager as it conflicts with APM and Pixhawk is a pretty obscure message, I can’t seem to find any info on how I 'm supposed to do that or if I 'm supposed to. Is the connection error that follows related?
Ignoring all this and trying to start the sim as advised via “sim_vehicle.sh --console --map --aircraft test” also fails:
sim_vehicle.sh --console --map --aircraft test
/home/andreas/ardupilot/Tools/autotest/sim_vehicle.sh: line 194: realpath: command not found
basename: missing operand
Try 'basename --help' for more information.
~/ardupilot ~/ardupilot/ArduPlane
Building sitl
make -C ArduPlane sitl
make[1]: Entering directory `/home/andreas/ardupilot/ArduPlane'
// BUILDROOT=/tmp/ArduPlane.build HAL_BOARD=HAL_BOARD_SITL HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_NONE TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION="2e5d5176"
make[1]: Leaving directory `/home/andreas/ardupilot/ArduPlane'
make -C ArduCopter sitl
make[1]: Entering directory `/home/andreas/ardupilot/ArduCopter'
// BUILDROOT=/tmp/ArduCopter.build HAL_BOARD=HAL_BOARD_SITL HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_NONE TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION="2e5d5176"
make[1]: Leaving directory `/home/andreas/ardupilot/ArduCopter'
make -C APMrover2 sitl
make[1]: Entering directory `/home/andreas/ardupilot/APMrover2'
// BUILDROOT=/tmp/APMrover2.build HAL_BOARD=HAL_BOARD_SITL HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_NONE TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION="2e5d5176"
make[1]: Leaving directory `/home/andreas/ardupilot/APMrover2'
make -C AntennaTracker sitl
make[1]: Entering directory `/home/andreas/ardupilot/AntennaTracker'
// BUILDROOT=/tmp/AntennaTracker.build HAL_BOARD=HAL_BOARD_SITL HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_NONE TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION="2e5d5176"
make[1]: Leaving directory `/home/andreas/ardupilot/AntennaTracker'
~/ardupilot/ArduPlane
Starting up at CMAC : -35.363261,149.165230,584,353
Starting ardupilot : /home/andreas/ardupilot/.elf -S -I0 --home -35.363261,149.165230,584,353 --model --speedup=1
WARNING: You should uninstall ModemManager as it conflicts with APM and Pixhawk
Connect tcp:127.0.0.1:5760 source_system=255
(error(111, 'Connection refused'), 'sleeping')
(error(111, 'Connection refused'), 'sleeping')
Failed to connect to tcp:127.0.0.1:5760 : [Errno 111] Connection refused
What is a realpath? What is a basename? Why are they missing and what should I do about it?
I 'm at a loss, can anyone help?