Compare commits

..

5 Commits

Author SHA1 Message Date
Oleg Kalachev
4cdf3f8c18 Add custom dictionary for VSCode’s cSpell 2021-06-30 01:02:16 +03:00
Oleg Kalachev
f5e3be0222 Fix examples symlink path 2021-06-29 23:37:13 +03:00
Oleg Kalachev
c7925e75a7 Add test for examples symlink validness 2021-06-29 23:36:30 +03:00
Oleg Kalachev
b4c43decb3 Add a comment 2021-06-29 17:26:14 +03:00
Oleg Kalachev
9d3e07eb6d Add README 2021-06-29 05:55:52 +03:00
5 changed files with 49 additions and 1 deletions

View File

@@ -20,5 +20,6 @@ jobs:
- name: Build
run: ./build.sh
- 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
working-directory: output-virtualbox-ovf

19
README.md Normal file
View 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
View File

@@ -0,0 +1,13 @@
aruco
leds
rospy
srvs
telem
offboard
hypot
mavros
rosrun
rostime
pymavlink
mavutil
rosmsg

View File

@@ -63,6 +63,11 @@
"source": "{{user `assetsDir`}}/patches",
"destination": "/tmp"
},
{
"type": "file",
"source": "{{user `assetsDir`}}/configs",
"destination": "/tmp"
},
{
"type": "shell",
"script": "scripts/install_software.sh",

View File

@@ -59,6 +59,15 @@ code --install-extension ms-vscode.cmake-tools
code --install-extension ms-vscode.cpptools
code --install-extension streetsidesoftware.code-spell-checker
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"
/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
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"
sed -i "s/pi/${USER}/g" ${HOME}/catkin_ws/src/clover/builder/assets/roscore.service