mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-06-01 17:49:32 +00:00
Compare commits
4 Commits
test-build
...
v1.3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
afebd32949 | ||
|
|
83dcad6556 | ||
|
|
19c99972d8 | ||
|
|
dbe7fa334b |
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -19,6 +19,8 @@ jobs:
|
||||
wget --progress=dot:giga https://clovervm.ams3.digitaloceanspaces.com/base-focal.ova -O output-virtualbox-iso/clover-devel.ova
|
||||
- name: Build
|
||||
run: ./build.sh
|
||||
- name: Image size
|
||||
run: ls -lh output-virtualbox-ovf
|
||||
- name: Upload
|
||||
if: ${{ github.event_name == 'release' }}
|
||||
# Not using ready S3 actions, because they either don't run on macOS machines or don't support changing the endpoint
|
||||
|
||||
@@ -58,13 +58,13 @@ echo "--- Downloading PX4"
|
||||
git clone --recursive --depth 1 --branch v1.13.0 https://github.com/PX4/PX4-Autopilot.git ~/PX4-Autopilot
|
||||
ln -s ~/PX4-Autopilot ~/catkin_ws/src/
|
||||
ln -s ~/PX4-Autopilot/Tools/sitl_gazebo ~/catkin_ws/src/
|
||||
#ln -s ~/PX4-Autopilot/src/modules/mavlink/mavlink ~/catkin_ws/src/
|
||||
#git clone --depth 1 https://github.com/mavlink/c_library_v2.git ~/catkin_ws/src/mavlink/ # FIXME:
|
||||
|
||||
echo "--- Installing PX4 dependencies"
|
||||
~/PX4-Autopilot/Tools/setup/ubuntu.sh
|
||||
echo "progress=dot:giga" > ~/.wgetrc # make wget don't spam to log
|
||||
~/PX4-Autopilot/Tools/setup/ubuntu.sh --no-nuttx
|
||||
rm ~/.wgetrc
|
||||
pip3 install --user toml
|
||||
sudo -E sh -c 'apt-get install -y ant openjdk-11-jdk' # Additional packages for jMAVSim
|
||||
# sudo -E sh -c 'apt-get install -y ant openjdk-11-jdk' # Additional packages for jMAVSim
|
||||
|
||||
echo "--- Patching mavlink_sitl_gazebo"
|
||||
# See https://github.com/PX4/PX4-SITL_gazebo/pull/872
|
||||
@@ -81,13 +81,9 @@ ln -s ~/catkin_ws/src/clover/clover_simulation/airframes/* ~/PX4-Autopilot/ROMFS
|
||||
echo "--- Installing geographiclib datasets"
|
||||
sudo -E sh -c '/opt/ros/noetic/lib/mavros/install_geographiclib_datasets.sh'
|
||||
|
||||
echo "--- Build PX4"
|
||||
cd ~/PX4-Autopilot
|
||||
make px4_sitl
|
||||
|
||||
echo "--- Build mavlink"
|
||||
cd ~/catkin_ws
|
||||
catkin_make mavlink_c_generate -DCATKIN_WHITELIST_PACKAGES="px4" # at first build px4's mavlink to force mavlink_sitl_gazebo to use it
|
||||
catkin_make mavlink_c_generate -DCATKIN_WHITELIST_PACKAGES="px4" # at first build PX4's mavlink to enforce mavlink_sitl_gazebo using it
|
||||
ln -s "." build/mavlink/mavlink # fix https://github.com/PX4/PX4-Autopilot/pull/19964
|
||||
|
||||
echo "--- Building the workspace"
|
||||
@@ -204,6 +200,13 @@ rosversion cv_camera
|
||||
rosversion web_video_server
|
||||
rosversion nodelet
|
||||
|
||||
echo "--- Validating PX4 builds"
|
||||
cd ~/PX4-Autopilot
|
||||
make px4_sitl # regular sitl build
|
||||
# sudo -E sh -c 'apt-get install -y gcc-arm-none-eabi'
|
||||
# make px4_fmu-v4_default
|
||||
make clean
|
||||
|
||||
echo "--- Run Clover's Python libraries validation"
|
||||
$HOME/catkin_ws/src/clover/builder/test/tests_py3.py
|
||||
|
||||
@@ -212,15 +215,14 @@ set +x
|
||||
rospack list-names | while read line; do echo $line `rosversion $line`; done
|
||||
set -x
|
||||
|
||||
echo "--- Test building the firmware"
|
||||
sudo -E sh -c 'apt-get install -y gcc-arm-none-eabi'
|
||||
cd ~/PX4-Autopilot
|
||||
make px4_fmu-v4_default
|
||||
echo "--- Largest packages installed"
|
||||
sudo -E sh -c 'apt-get install -y debian-goodies'
|
||||
dpigs -H -n 30
|
||||
|
||||
echo "Trying running the Gazebo simulator, check the output"
|
||||
echo "--- Trying running the Gazebo simulator, check the output"
|
||||
timeout --preserve-status 30 roslaunch clover_simulation simulator.launch gui:=false --screen
|
||||
|
||||
echo "Trying running jMAVSim, check the output"
|
||||
echo "--- Trying running jMAVSim, check the output"
|
||||
# cd ~/PX4-Autopilot
|
||||
# HEADLESS=1 timeout --preserve-status 30 make px4_sitl jmavsim
|
||||
HEADLESS=1 timeout --preserve-status 30 roslaunch clover_simulation simulator.launch type:=jmavsim gui:=false --screen
|
||||
|
||||
Reference in New Issue
Block a user