mirror of
https://github.com/CopterExpress/clover_vm.git
synced 2026-06-04 02:59:32 +00:00
Compare commits
5 Commits
v1.0-rc.1
...
cspell-dic
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4cdf3f8c18 | ||
|
|
f5e3be0222 | ||
|
|
c7925e75a7 | ||
|
|
b4c43decb3 | ||
|
|
9d3e07eb6d |
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@@ -20,5 +20,6 @@ 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
Normal file
19
README.md
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
# 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).
|
||||||
13
assets/configs/clover.txt
Normal file
13
assets/configs/clover.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
aruco
|
||||||
|
leds
|
||||||
|
rospy
|
||||||
|
srvs
|
||||||
|
telem
|
||||||
|
offboard
|
||||||
|
hypot
|
||||||
|
mavros
|
||||||
|
rosrun
|
||||||
|
rostime
|
||||||
|
pymavlink
|
||||||
|
mavutil
|
||||||
|
rosmsg
|
||||||
@@ -63,6 +63,11 @@
|
|||||||
"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/install_software.sh",
|
||||||
|
|||||||
@@ -59,6 +59,15 @@ 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
|
||||||
|
|
||||||
@@ -123,7 +132,8 @@ 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/builder/assets/examples ${HOME}/
|
ln -s ${HOME}/catkin_ws/src/clover/clover/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