Having issues with the Ubuntu 18.04.6 build
-(will prob just roll with the updated):
Full gz sim on 22.04 LTS - Drone Talk - Drone Dojo (dojofordrones.com)
Was really attempting to see if I made any missteps in setup; but I tried every angle I could see (through following forum threads)
Thank you all for the hard work and dedication!
ASSESSMENT:
Build based on course
VBox 7.0
Ubuntu 18.04.6
-with Guest Additions
gcc 7.5.0
g++ 7.5.0
repo:
-(attempted/failed)
~/courseRoot/apm$ git clone -p Copter-4.0.3 (did not work; see forum)
#####################################################################
-NOTE:
(The following worked up to “Script to Auto Launch QGC with DKScript part3”)
(dksitl) @:~/courseRoot/dk$ launchSitl basic_template.py
-[Resulted in same issue as mode_setter.py]
-SEE:
#####################################################################
repo:
~/courseRoot/apm/ardupilot$ git clone -p Copter-4.0.6 git@github.com:ArduPilot/ardupilot
~/courseRoot/apm/ardupilot$ git submodule update --init --recursive
~/courseRoot/apm/ardupilot$ Tools/environment_install/install-prereqs-ubuntu.sh -y
~/courseRoot/apm/ardupilot/ArduCopter$ . …/Tools/autotest/sim_vehicle.py --map --console
#####################################################################
-Dependencies:
dronekit==2.9.1
-(also tried 2.9.2)
dronekit-sitl==3.3.0
MAVProxy==1.6.2
-(also tried 1.8.17 and 1.8.34)
pymavlink==2.0.6
-(also tried 2.4.40 and 2.4.8)
-NOTE: ^^ (dksitl) ~/courseRoot/dk$ python basic_template.py
-WORKS WITH BOTH MAVProxy==1.6.2 (and 1.8.17)
-the issue seems to be with launchSitl executing the .py scripts (script represented by '$1' in the launchSitl script).
-SEE: launchSitl
-ERROR: (“Waiting for drone to enter GUIDED flight mode” hanging up)
^^ see mode_setter.py issue (
-NOTE: I built virtualenv using:
$ virtualenv -p /usr/bin/python2.7 --system-site-packages dksitl
-(as per the course)
-NOTE: I used QGC 4.0.10 (and attempted 4.0.3)
-both did not resolve issue
)
#####################################################################
-SEE:
repo:
~/courseRoot/apm/ardupilot$ git clone -p Copter-4.0.6 git@github.com:ArduPilot/ardupilot
~/courseRoot/apm/ardupilot$ git submodule update --init --recursive
~/courseRoot/apm/ardupilot$ Tools/environment_install/install-prereqs-ubuntu.sh -y
~/courseRoot/apm/ardupilot/ArduCopter$ . …/Tools/autotest/sim_vehicle.py -f gazebo-iris
-RESULT:
Framework to start a simulated vehicle and connect it to MAVProxy.
Peter Barker, April 2016
based on sim_vehicle.sh by Andrew Tridgell, October 2011
: command not found
from: can’t read /var/mail/future
import-im6.q16: not authorized atexit' @ error/constitute.c/WriteImage/1037. import-im6.q16: not authorized
errno’ @ error/constitute.c/WriteImage/1037.
import-im6.q16: not authorized optparse' @ error/constitute.c/WriteImage/1037. import-im6.q16: not authorized
os’ @ error/constitute.c/WriteImage/1037.
import-im6.q16: not authorized re' @ error/constitute.c/WriteImage/1037. import-im6.q16: not authorized
signal’ @ error/constitute.c/WriteImage/1037.
import-im6.q16: not authorized subprocess' @ error/constitute.c/WriteImage/1037. import-im6.q16: not authorized
sys’ @ error/constitute.c/WriteImage/1037.
import-im6.q16: not authorized tempfile' @ error/constitute.c/WriteImage/1037. import-im6.q16: not authorized
textwrap’ @ error/constitute.c/WriteImage/1037.
import-im6.q16: not authorized time' @ error/constitute.c/WriteImage/1037. import-im6.q16: not authorized
shlex’ @ error/constitute.c/WriteImage/1037.
from: can’t read /var/mail/pymavlink
from: can’t read /var/mail/pysim
windowID: command not found
bash: …/Tools/autotest/sim_vehicle.py: line 32: syntax error near unexpected token (' bash: ../Tools/autotest/sim_vehicle.py: line 32:
class CompatError(Exception):’
#####################################################################
-NOTE: I am not experiencing a heartbeat timeout error
but rather am experiencing the .py script getting hung up at the GUIDED mode Loop.
-(WHEN USING launchSitl script to run .py (’$1’) scripts).