Skip to content

Commit

Permalink
Initialize develop
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielclemnt authored Nov 28, 2023
0 parents commit f84c565
Show file tree
Hide file tree
Showing 30 changed files with 2,853 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Bug report
about: Create a bug report from the project
title: ''
labels: 'bug'
assignees: ''

---

# Describe the bug
A clear and concise description of what the bug is.

# To Reproduce
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

# Expected behavior
A clear and concise description of what you expected to happen.

# Screenshots
If applicable, add screenshots to help explain your problem.

# Desktop (please complete the following information):
- OS: [e.g. Ubuntu]
- Version [e.g. 22.04]

# Additional context
Add any other context about the problem here.

27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'feature'
assignees: ''

---

# What is your feature request related to? Please describe.
A clear and concise description of what this feature request is related to. Ex. I'm always frustrated when [...]

# Describe the solution you'd like
A clear and concise description of what you want to happen.

# List the tasks related to this feature
Here you should list all the tasks related to this feature using check boxes. Remember to create tasks following the Task templates and mark the check boxes when you complete them.
- [ ] #id1
- [ ] #id2
- [ ] #id3

# Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

# Additional context
Add any other context or screenshots about the feature request here.

21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Task
about: Create a task for this project
title: ''
labels: 'task'
assignees: ''

---

# Is your task related to a feature or bug? Please describe.
A clear and concise description of what this task is related to. Ex. This task aims to solve (#feature_id / #bug_id) providing an interface [...]

# Describe the solution you'd like
A clear and concise description of what you will work to. Please use checkboxes here. When a Task is related as a dependency for this task, you can also list it above using its id.

- [x] SubTask 1
- [ ] SubTask 2 (#id)
- [ ] SubTask 3

# Additional context
Add any other context or screenshots about the task here.
19 changes: 19 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# What is the proposal of this pull request?
A clear and concise description of the main proposal of this pull request.

# What changes have been made?
Describe which types of changes (features, hotfixes, rewriten, etc) were made on macro classes.

# How to test this changes?
Describe the steps to test or a dictated explanation to test the changes (the main archives to edit and what to edit).

# References (screenshots, links, etc)

# Checklist
- [ ] I have performed a self review on my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have checked my code and corrected any misspellings
- [ ] My changes generated no new warnings

# Additional context
Add any other context or screenshots about this pull request here.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build
on:
push:
paths-ignore:
- 'docs**'
pull_request:
jobs:
build-ubuntu:
runs-on: ${{ matrix.os }}
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
matrix:
os: [ ubuntu-20.04, ubuntu-22.04 ]
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: "Install dependencies"
run: sudo apt-get clean && sudo apt-get update && sudo apt-get install build-essential cmake qtbase5-dev qt5-qmake libprotobuf-dev protobuf-compiler libprotoc-dev protobuf-compiler-grpc libgrpc++-dev libgrpc-dev libqt5serialport5-dev google-mock libgmock-dev libgtest-dev libspdlog-dev libfmt-dev
- name: "Install Google Test library"
run: cd /usr/src/googletest/googletest/ && sudo cmake CMakeLists.txt && sudo make && cd lib && sudo cp *.a /usr/lib
- name: "Install Google Mock library"
run: cd /usr/src/googletest/googlemock/ && sudo cmake CMakeLists.txt && sudo make && cd lib && sudo cp *.a /usr/lib
- name: "Update ldconfig"
run: sudo ldconfig
- name: "Build Armorial-PSEL"
run: mkdir build && cd build && qmake .. && make -j$(nproc)
81 changes: 81 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# This file is used to ignore files which are generated
# ----------------------------------------------------------------------------

*~
*.autosave
*.a
*.core
*.moc
*.o
*.obj
*.orig
*.rej
*.so
*.so.*
*_pch.h.cpp
*_resource.rc
*.qm
.#*
*.*#
core
!core/
tags
.DS_Store
.directory
*.debug
Makefile*
*.prl
*.app
moc_*.cpp
ui_*.h
qrc_*.cpp
Thumbs.db
*.res
*.rc
/.qmake.cache
/.qmake.stash

# qtcreator generated files
*.pro.user*

# xemacs temporary files
*.flc

# Vim temporary files
.*.swp

# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.sdf
*.opensdf
*.vcxproj
*vcxproj.*

# MinGW generated files
*.Debug
*.Release

# Python byte code
*.pyc

# Binaries
# --------
*.dll
*.exe

# Build folders
bin/
build/

# VSCode configs
.vscode/


3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "include/proto"]
path = include/proto
url = https://github.com/MaracatronicsRobotics/Armorial-Proto.git
75 changes: 75 additions & 0 deletions Armorial-PSEL.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
TEMPLATE = app
DESTDIR = ../bin
TARGET = Armorial-PSEL
VERSION = 1.0.0

# Temporary dirs
OBJECTS_DIR = tmp/obj
MOC_DIR = tmp/moc
UI_DIR = tmp/moc
RCC_DIR = tmp/rc

CONFIG += c++17 console
CONFIG -= app_bundle
QT += core network

DEFINES += QT_DEPRECATED_WARNINGS
LIBS += -lQt5Core -lprotobuf -lfmt

system(echo "Generating simulation proto headers" && cd include/proto/simulation && protoc --cpp_out=../ *.proto && cd ../../..)
system(echo "Generating referee proto headers" && cd include/proto/referee && protoc --cpp_out=../ *.proto && cd ../../..)

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += APP_NAME=\\\"$$TARGET\\\"
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
DEFINES += PROJECT_PATH=\\\"$${PWD}\\\"

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
include/proto/command.pb.cc \
include/proto/common.pb.cc \
include/proto/packet.pb.cc \
include/proto/replacement.pb.cc \
include/proto/ssl_simulation_robot_control.pb.cc \
include/proto/ssl_vision_detection.pb.cc \
include/proto/ssl_vision_geometry.pb.cc \
include/proto/ssl_vision_wrapper.pb.cc \
main.cpp \
src/entities/actuator/actuator.cpp \
src/entities/coach/coach.cpp \
src/entities/player/player.cpp \
src/entities/vision/vision.cpp \
src/entities/worldmap/worldmap.cpp \
src/utils/types/robotcontrolpacket/robotcontrolpacket.cpp \
src/utils/types/robotdetectionpacket/robotdetectionpacket.cpp \
src/utils/utils.cpp

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

HEADERS += \
include/proto/command.pb.h \
include/proto/common.pb.h \
include/proto/packet.pb.h \
include/proto/replacement.pb.h \
include/proto/ssl_simulation_robot_control.pb.h \
include/proto/ssl_vision_detection.pb.h \
include/proto/ssl_vision_geometry.pb.h \
include/proto/ssl_vision_wrapper.pb.h \
src/entities/actuator/actuator.h \
src/entities/coach/coach.h \
src/entities/player/player.h \
src/entities/vision/vision.h \
src/entities/worldmap/worldmap.h \
src/utils/types/robotcontrolpacket/robotcontrolpacket.h \
src/utils/types/robotdetectionpacket/robotdetectionpacket.h \
src/utils/utils.h
Loading

0 comments on commit f84c565

Please sign in to comment.