mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-06-02 10:09:32 +00:00
Compare commits
45 Commits
cspell-dic
...
actions-no
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc2661ad88 | ||
|
|
2deb4bd54c | ||
|
|
dfb82608ad | ||
|
|
94d339639e | ||
|
|
3bc7fb406e | ||
|
|
62e41bed40 | ||
|
|
31d0d6e2fc | ||
|
|
f1fd8f73e8 | ||
|
|
13e74f2d5b | ||
|
|
763b158fb5 | ||
|
|
6efa9c89d7 | ||
|
|
93af5e2700 | ||
|
|
2eb18b7ab3 | ||
|
|
ef008af9d2 | ||
|
|
5e38d72e63 | ||
|
|
ae92554d52 | ||
|
|
6b464d83b9 | ||
|
|
6a41aa1c21 | ||
|
|
3e22ed3824 | ||
|
|
acf9d304d2 | ||
|
|
3621327929 | ||
|
|
0759a10973 | ||
|
|
e491ca6e18 | ||
|
|
15b685ca06 | ||
|
|
09551d89e3 | ||
|
|
ae652f0d1c | ||
|
|
2b5548fe7f | ||
|
|
969ed1dbdc | ||
|
|
fc4b87bb64 | ||
|
|
5fbcca0fa3 | ||
|
|
aaadd0f72e | ||
|
|
b3faab68e1 | ||
|
|
93d75e8a02 | ||
|
|
d0670f1235 | ||
|
|
5b599431a1 | ||
|
|
de95bbb2bb | ||
|
|
74a83d7159 | ||
|
|
244c678e46 | ||
|
|
56e0f805db | ||
|
|
07c328484d | ||
|
|
dafebce445 | ||
|
|
ed2e767748 | ||
|
|
407a1a30cf | ||
|
|
b3dd27356e | ||
|
|
841f8f45b1 |
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@@ -5,8 +5,6 @@ on:
|
|||||||
branches: [ '*' ]
|
branches: [ '*' ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
release:
|
|
||||||
types: [ created ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -20,6 +18,5 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: ./build.sh
|
run: ./build.sh
|
||||||
- name: Upload
|
- name: Upload
|
||||||
# Not using ready S3 actions, because they either don't run on macOS machines or don't support changing the endpoint
|
|
||||||
run: AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress
|
run: AWS_ACCESS_KEY_ID=${{secrets.S3_KEY}} AWS_SECRET_ACCESS_KEY=${{secrets.S3_SECRET_KEY}} aws s3 sync . s3://clovervm/ --acl public-read --endpoint-url https://ams3.digitaloceanspaces.com --no-progress
|
||||||
working-directory: output-virtualbox-ovf
|
working-directory: output-virtualbox-ovf
|
||||||
|
|||||||
19
README.md
19
README.md
@@ -1,19 +0,0 @@
|
|||||||
# Clover drone VM image
|
|
||||||
|
|
||||||
The generator of Clover developer virtual machine image (`.ova` file) to simplify working with Clover and Clover simulation.
|
|
||||||
|
|
||||||
Download the latest image in [Releases](https://github.com/CopterExpress/clover_vm/releases) section.
|
|
||||||
|
|
||||||
<img src=https://clover.coex.tech/assets/simulator.jpg width=600>
|
|
||||||
|
|
||||||
Image contains:
|
|
||||||
|
|
||||||
* Ubuntu 20.04 Focal.
|
|
||||||
* ROS Noetic.
|
|
||||||
* PX4 autopilot, QGroundControl.
|
|
||||||
* Preinstalled [Clover](https://github.com/CopterExpress/clover) and Clover simulation packages.
|
|
||||||
* Shortcuts for running Clover simulator.
|
|
||||||
* VSCode.
|
|
||||||
* Useful robotics-related software.
|
|
||||||
|
|
||||||
See detailed information in [Clover drone documentation](https://clover.coex.tech/en/simulation_vm.html).
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
aruco
|
|
||||||
leds
|
|
||||||
rospy
|
|
||||||
srvs
|
|
||||||
telem
|
|
||||||
offboard
|
|
||||||
hypot
|
|
||||||
mavros
|
|
||||||
rosrun
|
|
||||||
rostime
|
|
||||||
pymavlink
|
|
||||||
mavutil
|
|
||||||
rosmsg
|
|
||||||
14
build.sh
14
build.sh
@@ -32,17 +32,9 @@ ${PACKER} build ros_ide_vm.json
|
|||||||
|
|
||||||
echo "--- Marking the VM"
|
echo "--- Marking the VM"
|
||||||
|
|
||||||
# if [[ $GITHUB_REF == refs/tags/*-rc* ]]; then
|
GIT_REV=$(git rev-parse --short HEAD)
|
||||||
# remove rc label
|
GIT_DESCRIBE=$(git describe --always)
|
||||||
# VERSION=${GITHUB_REF#refs/tags/}
|
VM_NAME="clover-devel_${GIT_DESCRIBE}.ova"
|
||||||
# VERSION=${VERSION/-rc*/}
|
|
||||||
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
|
||||||
VERSION=${GITHUB_REF#refs/tags/}
|
|
||||||
else
|
|
||||||
VERSION=$(git describe --always)
|
|
||||||
fi
|
|
||||||
|
|
||||||
VM_NAME="clover-devel_${VERSION}.ova"
|
|
||||||
mv ./output-virtualbox-ovf/clover-devel.ova ./output-virtualbox-ovf/${VM_NAME}
|
mv ./output-virtualbox-ovf/clover-devel.ova ./output-virtualbox-ovf/${VM_NAME}
|
||||||
ls -l output-virtualbox-ovf
|
ls -l output-virtualbox-ovf
|
||||||
|
|
||||||
|
|||||||
@@ -63,14 +63,9 @@
|
|||||||
"source": "{{user `assetsDir`}}/patches",
|
"source": "{{user `assetsDir`}}/patches",
|
||||||
"destination": "/tmp"
|
"destination": "/tmp"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "file",
|
|
||||||
"source": "{{user `assetsDir`}}/configs",
|
|
||||||
"destination": "/tmp"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"type": "shell",
|
"type": "shell",
|
||||||
"script": "scripts/install_software.sh",
|
"script": "scripts/installSoftware.sh",
|
||||||
"execute_command": "PASSWORD='{{user `password`}}' bash '{{.Path}}'"
|
"execute_command": "PASSWORD='{{user `password`}}' bash '{{.Path}}'"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,15 +59,6 @@ code --install-extension ms-vscode.cmake-tools
|
|||||||
code --install-extension ms-vscode.cpptools
|
code --install-extension ms-vscode.cpptools
|
||||||
code --install-extension streetsidesoftware.code-spell-checker
|
code --install-extension streetsidesoftware.code-spell-checker
|
||||||
code --install-extension eamodio.gitlens
|
code --install-extension eamodio.gitlens
|
||||||
|
|
||||||
echo "--- Add custom dictionary for VSCode"
|
|
||||||
sudo -E sh -c 'apt-get install -y jq moreutils'
|
|
||||||
mv /tmp/configs/clover.txt ${HOME}/.vscode/
|
|
||||||
CODE_SETTINGS="$HOME/.config/Code/User/settings.json"
|
|
||||||
cat $CODE_SETTINGS
|
|
||||||
jq '."cSpell.customUserDictionaries"=[{name:"Clover", "path": "~/.vscode/clover.txt"}]' $CODE_SETTINGS | sponge $CODE_SETTINGS
|
|
||||||
cat $CODE_SETTINGS
|
|
||||||
|
|
||||||
echo "--- Installing pylint"
|
echo "--- Installing pylint"
|
||||||
/usr/bin/python3 -m pip install -U pylint --user
|
/usr/bin/python3 -m pip install -U pylint --user
|
||||||
|
|
||||||
@@ -132,8 +123,7 @@ gitbook build
|
|||||||
touch node_modules/CATKIN_IGNORE docs/CATKIN_IGNORE _book/CATKIN_IGNORE clover/www/CATKIN_IGNORE # ignore documentation files by catkin
|
touch node_modules/CATKIN_IGNORE docs/CATKIN_IGNORE _book/CATKIN_IGNORE clover/www/CATKIN_IGNORE # ignore documentation files by catkin
|
||||||
|
|
||||||
echo "--- Exposing examples"
|
echo "--- Exposing examples"
|
||||||
ln -s ${HOME}/catkin_ws/src/clover/clover/examples ${HOME}/
|
ln -s ${HOME}/catkin_ws/src/clover/builder/assets/examples ${HOME}/
|
||||||
[[ -d ${HOME}/examples ]] # test symlink is valid
|
|
||||||
|
|
||||||
echo "--- Enabling roscore service"
|
echo "--- Enabling roscore service"
|
||||||
sed -i "s/pi/${USER}/g" ${HOME}/catkin_ws/src/clover/builder/assets/roscore.service
|
sed -i "s/pi/${USER}/g" ${HOME}/catkin_ws/src/clover/builder/assets/roscore.service
|
||||||
Reference in New Issue
Block a user