I’m trying to do a full-stock SITL of the APM::Plane code. I followed these instructions: dev.ardupilot.com/wiki/setting-up-sitl-on-linux/
I’m on Ubuntu 12.04.
- I had already installed MAVProxy in my system and possibly some of the other packages required. Sadly, I do not have a clean installation to work on.
- I cloned the ardupilot code and jsbsim repos onto ~/Ardupilot folder, which I created.
I added the following lines to my .bashrc file:
#ArduPilot SITL stuff
This is my PATH right now
georgezp@fwuav-linux:~$ echo $PATH
In the /home/georgezp/Ardupilot/ardupilot/ArduPlane folder, I run:
Note: for some reason sudo is needed, otherwise I get:
- 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 '–cmd=param forceload /home/georgezp/Ardupilot/ardupilot/Tools/autotest/ArduPlane.parm; ; param fetch’
Failed to connect to tcp:127.0.0.1:5760 : [Errno 111] Connection refused
I Ctrl+C MAVProxy and run:
Everything opens but on the XTerm window titled “Simulator” I get:
Traceback (most recent call last):
File "/home/georgezp/Ardupilot/ardupilot/Tools/autotest/jsbsim/runsim.py", line 199, in <module>
jsb = pexpect.spawn(cmd, logfile=sys.stdout, timeout=10)
File "/usr/lib/python2.7/dist-packages/pexpect.py", line 429, in __init__
self._spawn (command, args)
File "/usr/lib/python2.7/dist-packages/pexpect.py", line 516, in _spawn
raise ExceptionPexpect ('The command was not found or was not executable: %s.' % self.command)
pexpect.ExceptionPexpect: The command was not found or was not executable: JSBSim.
JSBSim is in my path and can be run separately:
JSBSim version 1.0 Nov 28 2014 16:13:07
–help returns this message
–version returns the version number
–outputlogfile= sets (overrides) the name of the first data output file
–logdirectivefile= specifies the name of a data logging directives file
(can appear multiple times)
–root= specifies the JSBSim root directory (where aircraft/, engine/, etc. reside)
–aircraft= specifies the name of the aircraft to be modeled
–script= specifies a script to run
–realtime specifies to run in actual real world time
–nice specifies to run at lower CPU usage
–suspend specifies to suspend the simulation after initialization
–initfile= specifies an initilization file
–catalog specifies that all properties for this aircraft model should be printed
(catalog=aircraftname is an optional format)
–property=<name=value> e.g. --property=simulation/integrator/rate/rotational=1
–simulation-rate=<rate (double)> specifies the sim dT time or frequency
–end-time=<time (double)> specifies the sim end time
NOTE: There can be no spaces around the = sign when
an option is followed by a filename[/code]
Needless to say, nothing moves when I load the waypoints and hit AUTO.
Can anyone help me solve this error? Thanks in advance.
Moderators, feel free to move this if it is in the wrong subforum.