Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Master-Bw3 committed Sep 22, 2023
0 parents commit db91fa9
Show file tree
Hide file tree
Showing 674 changed files with 140,094 additions and 0 deletions.
1 change: 1 addition & 0 deletions .catkin_workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# This file currently only serves to mark the location of a catkin workspace for tool integration
19 changes: 19 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Use the Google style in this project.
BasedOnStyle: Google

# int& format
DerivePointerAlignment: false
PointerAlignment: Left

# const value
QualifierAlignment: Left

# Custom stuff for us:
AlignAfterOpenBracket: AlwaysBreak
AllowAllArgumentsOnNextLine: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Always
AllowShortFunctionsOnASingleLine: All
AllowShortLambdasOnASingleLine: All
# There shouldn't be short empty loops, but fine
AllowShortLoopsOnASingleLine: true
37 changes: 37 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"image": "docker.io/raiderrobotics/container-registry:rr-noetic-base",
// Causes permission errors when running make (i.e. colcon build) without sudo?
// "remoteUser": "ros",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.profiles.linux": {
"bash": {
"path": "bash"
}
},
"terminal.integrated.defaultProfile.linux": "bash"
},
"extensions": [
"ms-azuretools.vscode-docker",
"ms-vscode.cpptools",
"twxs.cmake",
"ms-iot.vscode-ros",
"streetsidesoftware.code-spell-checker",
"GitHub.vscode-pull-request-github",
"DotJoshJohnson.xml",
"redhat.vscode-yaml",
"yzhang.markdown-all-in-one"
]
}
},
// This will launch the container as a non-root user
"runArgs": [
// This will allow you to use a ptrace-based debugger like C++
"--network=host",
"--cap-add=SYS_PTRACE",
"--security-opt=seccomp:unconfined",
"--security-opt=apparmor:unconfined"
// "--volume=/tmp/.X11-unix:/tmp/.X11-unix"
]
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
26 changes: 26 additions & 0 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Robot Code Checks
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
container: raiderrobotics/container-registry:rr-noetic-base
steps:
- name: ✔️ Checkout Repository and Submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: 🔨 Build Project
run: |
/bin/bash -c "source /opt/ros/noetic/setup.bash && catkin_make v5_hal_firmware_build"
test:
needs: build
runs-on: ubuntu-20.04
container: raiderrobotics/container-registry:rr-noetic-base
steps:
- name: ✔️ Checkout Repository and Submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: 🧪 Execute v5_hal Unit Tests
run: |
/bin/bash -c "source /opt/ros/noetic/setup.bash && catkin_make run_tests_v5_hal"
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Catkin build files
build/
devel/
install/
src/v5_hal/firmware/include/ros_lib/*
src/CMakeLists.txt

# Compiled Object files
*.o
*.obj

# Executables
*.bin
*.elf

# PROS
bin/
compile_commands.json
temp.log
temp.errors
*.ini
.d/

# VSCode
.history/
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[submodule "src/rosserial"]
path = src/rosserial
url = https://github.com/msoe-vex/rosserial.git
[submodule "src/navx_publisher/src/navXTimeSync"]
path = src/navx_publisher/src/navXTimeSync
url = https://github.com/FRC900/navXTimeSync.git
[submodule "src/v5_hal/firmware/include/eigen"]
path = src/v5_hal/firmware/include/eigen
url = https://gitlab.com/libeigen/eigen
22 changes: 22 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"/opt/ros/noetic/include/**",
"${workspaceFolder}/src",
"${workspaceFolder}/pros"
],
"compilerPath": "/usr/bin/gcc",
"cppStandard": "c++20",
"intelliSenseMode": "linux-gcc-x64",
"browse": {
"path": [
"${workspaceFolder}/src"
],
"limitSymbolsToIncludedHeaders": true
}
}
],
"version": 4
}
9 changes: 9 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"configurations": [
{
"name": "ROS: Attach",
"type": "ros",
"request": "attach"
}
]
}
123 changes: 123 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"task.autoDetect": "off",
"task.allowAutomaticTasks": "off",
"C_Cpp.default.intelliSenseMode": "linux-gcc-x86",
"C_Cpp.formatting": "clangFormat",
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/*.code-search": true,
"**/build": true,
"**/install": true,
"**/log": true,
"**/pros": true
},
"cSpell.allowCompoundWords": true,
"cSpell.ignorePaths": [
"**/package-lock.json",
"**/node_modules/**",
"**/vscode-extension/**",
"**/.git/objects/**",
".vscode",
".vscode-insiders",
".devcontainer/devcontainer.json"
],
"cSpell.words": [
"COMMS",
"Holonomic",
"libeigen",
"nodiscard",
"opcontrol",
"proto",
"rclcpp",
"rosdep",
"rpms",
"struct",
"Structs",
"VEXU"
],
"files.associations": {
"array": "cpp",
"atomic": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"cctype": "cpp",
"chrono": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"condition_variable": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"unordered_map": "cpp",
"vector": "cpp",
"exception": "cpp",
"algorithm": "cpp",
"functional": "cpp",
"iterator": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"random": "cpp",
"ratio": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"fstream": "cpp",
"future": "cpp",
"initializer_list": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"ostream": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"unordered_set": "cpp",
"strstream": "cpp",
"bitset": "cpp",
"codecvt": "cpp",
"complex": "cpp",
"iomanip": "cpp",
"cfenv": "cpp",
"cinttypes": "cpp",
"valarray": "cpp",
"variant": "cpp",
"dense": "cpp"
},
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
// Python stuff
"python.envFile": "${workspaceFolder}/.env",
"python.analysis.extraPaths": [
"/opt/ros/humble/lib/python3.8/site-packages/"
],
"python.autoComplete.extraPaths": [
"/opt/ros/humble/lib/python3.8/site-packages/"
],
"cmake.configureOnOpen": false
}
Loading

0 comments on commit db91fa9

Please sign in to comment.