Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
404 commits
Select commit Hold shift + click to select a range
22006f3
enable web interface again (not working) and shfmt
ArendJan Aug 20, 2024
46e8ad2
Add install libusb
ArendJan Aug 21, 2024
dae5482
fix apt pkg
ArendJan Aug 21, 2024
1b3d09c
camera installs
ArendJan Aug 21, 2024
7342f62
set xe for faster failing
ArendJan Aug 21, 2024
2dd31e1
fix not allowed camera
ArendJan Aug 21, 2024
f420e8b
add optional package param cb
ArendJan Aug 21, 2024
f2d5a41
Fix macros scripts
ArendJan Aug 21, 2024
9a1e4d9
Initial Sync
SuperJappie08 Sep 2, 2024
96e174e
Add own mirte-ros-packages
SuperJappie08 Sep 2, 2024
a2e5f56
Add mirte-telemetrix-cpp to repos.yaml
SuperJappie08 Sep 2, 2024
6759931
Update mirte-telemetrix-cpp branch
SuperJappie08 Sep 5, 2024
49f1561
select correct ros2 version based on ubuntu codename
ArendJan Sep 5, 2024
33e0fb2
Change web_video_server to a patched branch
SuperJappie08 Sep 9, 2024
b84650a
Patch web_video_server
SuperJappie08 Sep 9, 2024
43cd1ea
Update repos
SuperJappie08 Oct 3, 2024
5254dee
Revert back to (upstream) patched web video server
SuperJappie08 Oct 4, 2024
fe1886f
Start work on ROS2 Web interface
SuperJappie08 Oct 4, 2024
0a08bbc
Reorder installation setups for depenency issues
SuperJappie08 Oct 4, 2024
8c1ac70
Update Repos
SuperJappie08 Oct 18, 2024
7779728
Fixing ros websocket link
mklomp Oct 31, 2024
62aeeb1
Add explantion and question status quo
SuperJappie08 Nov 1, 2024
8468144
Fix styling
SuperJappie08 Nov 4, 2024
92c9fb0
Merge remote-tracking branch 'originAJ/mirte-master-ros2' into mirte-…
SuperJappie08 Nov 4, 2024
36ec744
Fix Shellcheck warnings
SuperJappie08 Nov 4, 2024
7cae73d
Fix README styling
SuperJappie08 Nov 4, 2024
daf8630
Some first comments on ros2 code
ArendJan Nov 15, 2024
0f4a65b
style fix after comments
ArendJan Nov 15, 2024
611c186
add repocheck + other branches?
ArendJan Dec 6, 2024
70c1cd8
Merge pull request #54 from SuperJappie08/mirte-ros2
ArendJan Dec 11, 2024
031bdb0
Merge branch '43-hardcoded-usb-ports' of https://github.com/arendjan/…
ArendJan Dec 11, 2024
a6dddc4
cleanup arduino platformio and pico
ArendJan Dec 11, 2024
88b41e6
fix shellcheck
ArendJan Dec 11, 2024
e4c5ac6
final fix shellcheck + add install arduino check
ArendJan Dec 11, 2024
ff2c454
wf fix?
ArendJan Dec 11, 2024
1a9d9c3
gecos?
ArendJan Dec 11, 2024
bcec28d
gecos 2
ArendJan Dec 11, 2024
c3a7415
gecos3
ArendJan Dec 11, 2024
6fe4f0d
test3 useradd
ArendJan Dec 11, 2024
5e011dd
ls usrlocal
ArendJan Dec 11, 2024
b901aff
sudo test_install
ArendJan Dec 11, 2024
2cb1612
style fixes
ArendJan Dec 11, 2024
9239645
Add ros2 install check
ArendJan Dec 11, 2024
364645e
disable systemctl in ros2-install
ArendJan Dec 11, 2024
c33905c
test fix strange libgoogle-glog-dev install err
ArendJan Dec 11, 2024
bc86715
small cleanups install ros2
ArendJan Dec 11, 2024
cc76eee
remove old install code
ArendJan Dec 12, 2024
37ff8e1
cleanup
ArendJan Dec 12, 2024
6f78217
Add expandoverlay service
ArendJan Dec 12, 2024
0afbed9
Add executable check
ArendJan Dec 16, 2024
48e5f3a
Fix shellcheck error source uanble to follow
ArendJan Dec 19, 2024
cdd4432
Fix runs-on ubuntu22 for reposcheck
ArendJan Dec 19, 2024
13985ec
Merge pull request #57 from ArendJan/ros2-cleanup
ArendJan Dec 19, 2024
64057be
Add venv package
ArendJan Dec 19, 2024
c6aa263
Merge branch 'develop' of https://github.com/arendjan/mirte-install-s…
ArendJan Dec 19, 2024
ba1e795
Fix styling
ArendJan Dec 19, 2024
38edb8b
maybe fix mirte ros install master
ArendJan Dec 20, 2024
9dd1fa6
test mirte master type ci
ArendJan Dec 20, 2024
92e962d
ros2 install ubu22.04 ci
ArendJan Dec 20, 2024
8b62f11
test2 ros install mirte-master
ArendJan Dec 20, 2024
a26e04c
. ->source
ArendJan Dec 20, 2024
4fe4e7f
test fix systemctl severed link master
ArendJan Jan 7, 2025
7094ce4
change shell check actions
ArendJan Jan 7, 2025
9a5c1f4
check shell
ArendJan Jan 7, 2025
dd2afec
check shell 2
ArendJan Jan 7, 2025
6c2641b
test ros2 install no sudo
ArendJan Jan 7, 2025
5c52b42
Fix ros2 isntall check
ArendJan Jan 7, 2025
54663c2
Cleanups for platformio
ArendJan Jan 7, 2025
8f4e1b1
Force git submodule update tmx pico
ArendJan Jan 7, 2025
b7edcc3
build pico better run_arduino
ArendJan Jan 7, 2025
bac3042
blink improvements
ArendJan Jan 7, 2025
4771ac4
test smaller build
ArendJan Jan 7, 2025
5a9655a
Fixes for run_arduino and blink
ArendJan Jan 8, 2025
2d6c708
update submodules
ArendJan Jan 13, 2025
83c2c0b
Fix precompiled ros2 packages
ArendJan Jan 15, 2025
9c226a8
disable fallback as mirte-arm doesn't compile
ArendJan Jan 17, 2025
3a1a18f
fix mirte master check always triggering wrong topic name
ArendJan Jan 22, 2025
3d163e8
fix? install ros2?
ArendJan Jan 22, 2025
6c4dccd
style fixes
ArendJan Jan 22, 2025
0b3a8f6
don't install wifi connect x86
ArendJan Jan 23, 2025
a517d0c
fix pico folder
ArendJan Jan 28, 2025
3f4d479
Merge branch 'develop' of https://github.com/arendjan/mirte-install-s…
ArendJan Jan 28, 2025
a3a4799
start uart upload pico
ArendJan Jan 31, 2025
caf1688
add upload pico uart to run_arduino
ArendJan Jan 31, 2025
8141405
stylefixes run_arduino
ArendJan Jan 31, 2025
3fc810e
upd default repos files for aj dev
ArendJan Jan 31, 2025
0644e72
Fix shutdown always triggering
ArendJan Feb 5, 2025
0a03beb
Fix camera permissions setup
ArendJan Feb 5, 2025
42b030f
switch to correct camera repo
ArendJan Feb 5, 2025
0132d88
fix test failing pip install pip
ArendJan Feb 5, 2025
c210b4b
rm uboot 'update' and fix telemetrix upload file path
ArendJan Feb 6, 2025
44efbbb
set ros log dir
ArendJan Feb 6, 2025
9f18f3d
source home bashrc
ArendJan Feb 6, 2025
f6e47da
add zenoh
ArendJan Feb 20, 2025
07a484b
Random wifi channel
ArendJan Feb 25, 2025
c3a127d
Merge pull request #58 from ArendJan/develop
ArendJan Feb 27, 2025
83f414f
Fix zenoh stuff
ArendJan Feb 27, 2025
e82cdb9
upd fixes
ArendJan Feb 28, 2025
0f221fe
stylefixes
ArendJan Feb 28, 2025
7cd7939
shutdown script fixes
ArendJan Feb 28, 2025
520c38e
Merge pull request #59 from ArendJan/develop
ArendJan Feb 28, 2025
6ffc7db
Takeaways from proj rob branch #6
ArendJan Mar 4, 2025
cd2a6ad
stylechecks
ArendJan Mar 4, 2025
fb1f871
Merge pull request #7 from ArendJan/proj_rob_takeaways
ArendJan Mar 4, 2025
00116a3
Fix for zenoh mirte ros boot script
ArendJan Mar 4, 2025
f1995ab
Merge branch 'develop' of https://github.com/arendjan/mirte-install-s…
ArendJan Mar 4, 2025
66c8c39
Fix time jump check
ArendJan Mar 4, 2025
0206986
set log dir in profile
ArendJan Mar 4, 2025
8eddaaa
fix profile change script
ArendJan Mar 4, 2025
48ec205
fix styling tools.sh
ArendJan Mar 4, 2025
df70734
Merge pull request #60 from ArendJan/develop
ArendJan Mar 4, 2025
9f01776
Add ev3 fixed script
ArendJan Mar 5, 2025
afa0855
Merge pull request #61 from ArendJan/develop
ArendJan Mar 5, 2025
bb04c62
mirte settings fixes
ArendJan Mar 6, 2025
c6bcac0
Merge pull request #62 from ArendJan/develop
ArendJan Mar 6, 2025
4e6ac83
Fix zsh double source ros
ArendJan Mar 6, 2025
8133051
Always link systemd resolv
ArendJan Mar 6, 2025
cd53721
stylefixes + add_mirte_settings fix
ArendJan Mar 6, 2025
9012dee
better zsh doubles source fix
ArendJan Mar 6, 2025
011730a
remove unnecesary profile settings
ArendJan Mar 6, 2025
666a744
Merge pull request #63 from ArendJan/develop
ArendJan Mar 6, 2025
9a45ccd
Update fake-hwclock on done
ArendJan Mar 6, 2025
30cf481
Merge pull request #64 from ArendJan/develop
ArendJan Mar 6, 2025
d760598
Fix mirte_ros.sh mirte settings file
ArendJan Mar 6, 2025
52753b6
Added mirte-gazebo to installer
mklomp Mar 7, 2025
c93037b
Updated nodejs to 18.0.0
mklomp Mar 19, 2025
fe175bc
add rosboard and create web interface script
ArendJan Mar 20, 2025
be99004
Merge pull request #65 from ArendJan/develop
ArendJan Mar 20, 2025
0a71ac2
Let blink forever
mklomp Mar 25, 2025
25c6816
tmp fix for rosbridge_server not terminating
mklomp Mar 28, 2025
e8ff8df
Disabling bluetooth on OPi Zero2 due to issues with wifi
mklomp Mar 28, 2025
0fc00c7
Add zerotier to image
ArendJan Apr 1, 2025
50d41a3
Fix pam module strange chars passwords
ArendJan Apr 1, 2025
8db650b
improve pam text when removed chars pwd
ArendJan Apr 1, 2025
cdbdf71
Fix styling pam
ArendJan Apr 1, 2025
929d9d1
Merge pull request #66 from ArendJan/develop
ArendJan Apr 1, 2025
73933c6
Update install_web.sh
ArendJan Apr 2, 2025
e289d81
Update cmakelists
ArendJan Apr 2, 2025
e6b0702
Add tmp fix rosbridge_server to master ros as well
ArendJan Apr 3, 2025
e0d3434
Add check pico for easy updating + fix pico not rebooting after flash
ArendJan Apr 3, 2025
e11b2ba
Fix run arduino usb boot
ArendJan Apr 4, 2025
cc9ce02
reboot after overlay expansion + mac for hostname
ArendJan Apr 4, 2025
4e3e9a2
stylecheck fixes
ArendJan Apr 4, 2025
17e25f4
Disabled armbian-led-state
mklomp Apr 4, 2025
c112777
Fix for late IP addresses
mklomp Apr 4, 2025
3f69821
Merge branch 'develop' of https://github.com/mirte-robot/mirte-instal…
mklomp Apr 4, 2025
6f316a1
Change clearpath repo for fix
ArendJan Apr 7, 2025
4a9a3b3
stylefixes
ArendJan Apr 7, 2025
ebc208d
ev3 executable
ArendJan Apr 8, 2025
8fba88b
waiting for wlan up 3b fix
ArendJan Apr 8, 2025
bc6347b
Revert to clearpath repo mechanum drive
ArendJan Apr 10, 2025
5073342
Added Apache2 license
mklomp Apr 24, 2025
0ed6c38
Fix zerotier wifi-connect
ArendJan May 2, 2025
5cd7bac
Upd fix scripts for wifi-connect
ArendJan May 2, 2025
5b21a47
style fixes
ArendJan May 2, 2025
d45c0c2
Set ROS2 default to localhost only
mklomp May 12, 2025
21a186e
hostname generation back to default, not mac
ArendJan May 15, 2025
2d78259
Add fastdds discovery support mirte-ros service
ArendJan May 16, 2025
7e2bc40
Merge branch 'main' into develop
mklomp May 19, 2025
ad4a4b3
Add fix networking
ArendJan May 21, 2025
eae6662
Merge branch 'develop' of https://github.com/mirte-robot/mirte-instal…
ArendJan May 21, 2025
7d8ad41
Fix fix networking script
ArendJan May 21, 2025
689d4e8
Fix service update networking fix
ArendJan May 21, 2025
2c267a3
add rosdep install to fix networking
ArendJan May 21, 2025
8f5c8a2
maybe fix build err fix netw
ArendJan May 21, 2025
26a1360
continue on error rosdep fix netw
ArendJan May 22, 2025
281126d
stop ros and shutdown during fix netw
ArendJan May 22, 2025
97c1a0f
Using MAC as SSID as default
mklomp May 26, 2025
870cc72
install ros2 fix debs astra & lidar
ArendJan May 26, 2025
7eb3366
Added jupyter notebooks again
mklomp May 28, 2025
dfcc9be
Added TU Delft OSS statement
mklomp May 28, 2025
24539fe
Fixed shfmt errors
mklomp May 30, 2025
382319c
Updates README
mklomp May 30, 2025
f01520a
Fix ros2 install vcs
ArendJan Jun 2, 2025
cee328f
fix default repos file (to repo with correct sources.repos)
ArendJan Jun 2, 2025
e30a813
Fix mirte_base_control package name ros2 install
ArendJan Jun 2, 2025
857c8a0
fix duplicate git clone web video server
ArendJan Jun 2, 2025
9f0d5f5
Fix documentation repo branch
ArendJan Jun 2, 2025
b76ffbb
colcon ignore fix
ArendJan Jun 2, 2025
6a7e506
Add usb cam prebuild
ArendJan Jun 2, 2025
110811e
reorder colcon top level ws install to later for udev install
ArendJan Jun 2, 2025
d3ba96f
Merge pull request #67 from ArendJan/fix_install_astra_deps
ArendJan Jun 2, 2025
ce6c15f
update to the new ros2 key setup
ArendJan Jun 2, 2025
a29620b
Merge pull request #68 from ArendJan/ros2-install-new-keys
ArendJan Jun 2, 2025
3e49dd4
Fix 2 ros new key setup
ArendJan Jun 3, 2025
9fd0648
Merge pull request #69 from ArendJan/ros2-install-new-keys
ArendJan Jun 3, 2025
a2cb9d3
Downloading ev3-script and applying patch to have clean OSS lïcense
mklomp Jun 4, 2025
5a6bce5
Forgot actual patching of the script
mklomp Jun 4, 2025
08cd6c9
Fix for wifi connection
mklomp Jun 23, 2025
8bdeeb4
Fixed github workflow
mklomp Jun 23, 2025
6ddee1b
Merge pull request #70 from mklomp/wifi-fix
mklomp Jun 23, 2025
1b638cc
add ip networking improvements for rmw
ArendJan Jun 23, 2025
04dc136
Merge pull request #71 from ArendJan/add-networking-fixes-ros2-ipv
ArendJan Jun 23, 2025
67cc103
Fix for ROS dections in arduino script
mklomp Jul 7, 2025
b1686b5
Removed get-platformio script after installation
mklomp Jul 7, 2025
7d8dc43
Reboot after dmesg wifi error
mklomp Jul 7, 2025
e7718fc
Fixing shfmt
mklomp Jul 7, 2025
0853e8d
Modified TUD OSS waiver without changing the original Apache2 LICENCE
mklomp Jul 7, 2025
b97a474
Added modified LICENCE
mklomp Jul 7, 2025
59236dc
Merge pull request #72 from mklomp/wifi-fixes
mklomp Jul 7, 2025
e47462b
Merge branch 'mirte-robot:develop' into develop
ArendJan Jul 9, 2025
d8698a6
upd repos arduino test
ArendJan Jul 9, 2025
87dc5dd
Merge branch 'develop' of https://github.com/arendjan/mirte-install-s…
ArendJan Jul 9, 2025
22c87e3
Fix msg id for bootloader reset arduino fixes pico
ArendJan Jul 11, 2025
63f2e26
Fix mirte master shutdown time
ArendJan Jul 14, 2025
73de8ff
Add default colcon_defaults with symlink and ccache mixin
ArendJan Jul 17, 2025
db68cb4
Add colcon mixin + revert repos
ArendJan Jul 18, 2025
bc53733
stylefixes
ArendJan Jul 18, 2025
ab09801
Fix colcon mixin install
ArendJan Jul 18, 2025
037969c
fix install, try docker image
ArendJan Jul 18, 2025
0b72566
Merge pull request #73 from ArendJan/develop
ArendJan Jul 18, 2025
5469ccc
Add auto dhcp eth connection
ArendJan Jul 22, 2025
2ea6078
Add debug packages if available
ArendJan Jul 22, 2025
20bc317
Add pkg source prebuild before checking availability dbugsym
ArendJan Jul 23, 2025
b6ebbe3
test fix dbgsym
ArendJan Jul 23, 2025
ab29eea
fix dev ros pkgs
ArendJan Jul 23, 2025
3e2c3ec
start auto dhcp in background
ArendJan Jul 23, 2025
62ced4d
fix styling and upd picotool udev file name
ArendJan Aug 19, 2025
e355f8b
Merge branch 'develop' into develop
ArendJan Aug 19, 2025
fdb7b1b
Merge pull request #74 from ArendJan/develop
ArendJan Aug 19, 2025
40c6f2a
add some setup script mirte workshop
ArendJan Sep 24, 2025
dfe960d
minimize some clones and install steps
ArendJan Sep 24, 2025
6a76bed
dont install all pico and platformio when not required
ArendJan Nov 3, 2025
f98cbbe
move old files to mirte-dev-scripts
ArendJan Nov 3, 2025
db5708c
Fix install + allow override SRC_DIR
ArendJan Nov 3, 2025
f7c53b1
Fix test install env
ArendJan Nov 3, 2025
c89311e
remove picotool install bc using prebuilt
ArendJan Nov 4, 2025
a337771
cleanup front-end node_modules after build for space savings
ArendJan Nov 4, 2025
5b57f5f
Add test install_web
ArendJan Nov 4, 2025
c69e1c4
Fix web-install test
ArendJan Nov 5, 2025
b02ea79
Rm old comment netw install
ArendJan Nov 5, 2025
bc1b3af
Improve run_arduino env check
ArendJan Nov 5, 2025
7141102
Update install_arduino.sh
ArendJan Nov 5, 2025
fa96959
Update run_arduino.sh
ArendJan Nov 5, 2025
5955d19
Update install_arduino.sh
ArendJan Nov 5, 2025
bcfe766
Merge pull request #75 from ArendJan/minimize_install
ArendJan Nov 7, 2025
1340b13
Fix minimize install not installing serial flasher + elf download for…
ArendJan Nov 20, 2025
4ec0d0c
Merge pull request #76 from ArendJan/develop
ArendJan Nov 20, 2025
e6cf68d
Use auto standby rplidar c1
ArendJan Dec 8, 2025
4474b20
Fix vscode install for now by disabling preload remote server
ArendJan Dec 11, 2025
1df6eeb
Merge pull request #77 from ArendJan/develop
ArendJan Dec 11, 2025
e7a477c
Fix vscode install
ArendJan Dec 11, 2025
f4ae6a0
Add vscode install to web install check
ArendJan Dec 11, 2025
eed5d12
Merge pull request #78 from ArendJan/develop
ArendJan Dec 11, 2025
b8ba3de
re-enable vscode
ArendJan Jan 21, 2026
81d324a
set vscode install to fixed version
ArendJan Jan 28, 2026
72d0ce4
Merge branch 'mirte-robot:develop' into develop
ArendJan Feb 5, 2026
69de848
Add 20s sleep for wifi 'fix' network_setup
ArendJan Feb 5, 2026
afff816
cleanup vscode install after re-enable
ArendJan Feb 5, 2026
a2bf92c
Merge pull request #79 from ArendJan/develop
ArendJan Feb 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/c_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: test-clang-format

on: [push, pull_request]

jobs:
c_style_check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.14
with:
source: '.'
# exclude: './third_party ./external'
extensions: 'c,h,cpp,hpp'
clangFormatVersion: 14
style: llvm
c_build_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.14
- uses: lukka/get-cmake@latest
- name: Build pam module
run: |
sudo apt update && sudo apt install libpam0g-dev -y
./install_pam.sh
./pam/build/myprogram
- name: Build usb_switch
run: |
cd mirte-master/usb_switch/
sudo apt install libgpiod-dev -y
mkdir build
cd build
cmake ..
make -j
24 changes: 24 additions & 0 deletions .github/workflows/cmake_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CMake Format Check

on:
[push, pull_request]

jobs:
cmake-format-check:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x

- name: Install cmake-format
run: pip install cmake-format

- name: Run cmake-format check
run: cmake-format --check **/**/CMakeLists.txt

22 changes: 22 additions & 0 deletions .github/workflows/repocheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
# - push
- pull_request
- workflow_call

name: "reposcheck"
permissions: {}

jobs:
reposcheck:
name: reposcheck
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- run: |
sudo apt update
curl -s https://packagecloud.io/install/repositories/dirk-thomas/vcstool/script.deb.sh | sudo bash
sudo apt-get update
sudo apt-get install python3-vcstool -y
mkdir check
- name: check
run: vcs import --input repos.yaml check
5 changes: 4 additions & 1 deletion .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ jobs:
name: Shellcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
severity: warning
- name: Check executable bit sh files
run: |
find . -type f -name "*.sh" -exec sh -c 'if ! test -x {}; then echo "File {} is not executable"; exit 1; fi' \;
2 changes: 1 addition & 1 deletion .github/workflows/shfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
sh-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Run the sh-checker
uses: luizm/action-sh-checker@master
env:
Expand Down
106 changes: 106 additions & 0 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
name: test-install-parts

on: [push, pull_request]

jobs:
arduino-install:
runs-on: ubuntu-22.04
strategy:
matrix:
install_arduino_all: [true, false]
fail-fast: false

steps:
- uses: actions/checkout@v4
- shell: bash
run: |
mkdir -p /etc/udev/rules.d/ # just for testing, folder should just exist on the real image
sudo useradd -m -s /bin/bash mirte
pwd
export MIRTE_SRC_DIR=~/usr/local/src/mirte
mkdir -p $MIRTE_SRC_DIR

echo "Matrix install_arduino_all=${{ matrix.install_arduino_all }}"
if [ "${{ matrix.install_arduino_all }}" = "true" ]; then
echo "Setting INSTALL_ARDUINO_ALL to true"
echo "export INSTALL_ARDUINO_ALL=true" > $MIRTE_SRC_DIR/settings.sh
else
echo "Setting INSTALL_ARDUINO_ALL to false"
echo "export INSTALL_ARDUINO_ALL=false" > $MIRTE_SRC_DIR/settings.sh
fi
echo "Contents of settings.sh:"
cat $MIRTE_SRC_DIR/settings.sh || echo "settings.sh does not exist yet"

ls -ld /usr/local/
ls -ld /usr/local/src/
sudo mkdir -p $MIRTE_SRC_DIR
sudo mkdir $MIRTE_SRC_DIR/mirte-install-scripts/
sudo cp -r ./* $MIRTE_SRC_DIR/mirte-install-scripts/
cd $MIRTE_SRC_DIR
sudo apt update
sudo git clone https://github.com/mirte-robot/telemetrix4arduino.git mirte-telemetrix4arduino -b develop
sudo git clone https://github.com/mirte-robot/telemetrix4rpipico.git mirte-telemetrix4rpipico -b develop --recursive
cd $MIRTE_SRC_DIR/mirte-install-scripts/
sudo -E ./install_arduino.sh

ros2-install:
runs-on: ubuntu-22.04
container: ghcr.io/catthehacker/ubuntu:act-22.04
strategy:
matrix:
type: [mirte, mirte-master]
fail-fast: false
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
echo $0
sudo useradd -m -s /bin/bash mirte
# allow nopasswd sudo for mirte user
echo "mirte ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/mirte
sudo chmod 777 /home/runner/ || true
export MIRTE_SRC_DIR=${MIRTE_SRC_DIR:-/usr/local/src/mirte}
sudo mkdir -p $MIRTE_SRC_DIR
sudo chown mirte: $MIRTE_SRC_DIR
sudo chmod 755 $MIRTE_SRC_DIR
sudo -u mirte mkdir $MIRTE_SRC_DIR/mirte-install-scripts/
sudo -u mirte cp -r ./* $MIRTE_SRC_DIR/mirte-install-scripts/
cd $MIRTE_SRC_DIR
sudo -u mirte git clone https://github.com/arendjan/mirte-ros-packages.git mirte-ros-packages -b develop --recursive

sudo apt update
cd $MIRTE_SRC_DIR/mirte-install-scripts/
sudo -u mirte sed -i '/systemctl/d' install_ROS2.sh # remove systemctl command as it is not available in the github runner/container

# TODO: add deb proxy if wanted
# sudo apt install dbus libunwind-dev squid-deb-proxy-client -y
# mkdir -p /run/dbus
# dbus-daemon --system
# # sed -i 's/.*enable-dbus=.*/enable-dbus=no/' /etc/avahi/avahi-daemon.conf
# avahi-daemon -D &
MIRTE_TYPE=${{ matrix.type }}
sudo -u mirte /bin/bash -c "MIRTE_TYPE=${{ matrix.type }} source ./install_ROS2.sh"

web-install:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- shell: bash
run: |
sudo useradd -m -s /bin/bash mirte
# allow root from user
echo "mirte ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/mirte
export MIRTE_SRC_DIR=/test/mirte
sudo mkdir -p $MIRTE_SRC_DIR
sudo chown mirte: $MIRTE_SRC_DIR
sudo chmod 755 $MIRTE_SRC_DIR
sudo -u mirte mkdir $MIRTE_SRC_DIR/mirte-install-scripts/
sudo -u mirte cp -r ./* $MIRTE_SRC_DIR/mirte-install-scripts/
cd $MIRTE_SRC_DIR
sudo -u mirte git clone https://github.com/mirte-robot/mirte-web-interface.git mirte-web-interface -b develop
# remove all lines with systemctl as not available in github runner
cd $MIRTE_SRC_DIR/mirte-install-scripts/
sudo -u mirte sed -i '/sudo systemctl/d' install_web.sh
cd $MIRTE_SRC_DIR/mirte-install-scripts/
sudo -u mirte /bin/bash -c "MIRTE_SRC_DIR=$MIRTE_SRC_DIR ./install_web.sh"
sudo -u mirte /bin/bash -c "MIRTE_SRC_DIR=$MIRTE_SRC_DIR ./install_vscode.sh"
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
build/
ui/
*.uf2
ev3-usb.sh
23 changes: 23 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: bash -c 'FILES=`find -type f -regex ".*\.\(cpp\|hpp\|h\|c\)$" -not -path "*/build/*"`; clang-format-14 --Werror $FILES -style=llvm -i'
language: system
types: [c]
pass_filenames: false
- id: cmake-format
entry: bash -c 'FILES=`find . -name "CMakeLists.txt"`; cmake-format $FILES -i'
language: system
types: [cmake]
pass_filenames: false
name: cmake-format
- id: shell-format
entry: bash -c 'shopt -s globstar; /home/arendjan/go/bin/shfmt -s -w **/**.sh'
language: system
types: [shell]
pass_filenames: false
name: shell-format
Loading