Skip to content

Commit

Permalink
Merge remote-tracking branch 'bitbots_meta/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
Flova committed Jan 18, 2024
2 parents e80fd47 + 7feda5f commit ecfaf46
Show file tree
Hide file tree
Showing 32 changed files with 2,862 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test if all packages build
on:
schedule:
- cron: '0 0 * * *'
push:

jobs:
build:
runs-on: ubuntu-latest
container:
image: ubuntu:jammy

steps:
- name: Set up ROS ecosystem
uses: ros-tooling/[email protected]
- name: Check out repository
uses: actions/checkout@v3
- name: Configure git to trust repository
run: git config --global --add safe.directory /__w/bitbots_meta/bitbots_meta
- name: Pull our software
run: make pull-init
- name: Install proprietary basler drivers
run: make basler ARGS="-ci"
- name: Install packages via rosdep
run: |
rosdep update
sudo apt install -y libunwind-dev
# Small hack to make rosdep install all dependencies at once
# See https://github.com/ros-infrastructure/rosdep/issues/671
bash -c "sudo apt install -y $(rosdep check --from-paths . --ignore-src --rosdistro iron | sed -n 's/^apt\s\+//p' | tr '\n' ' ')"
- name: Set up colcon workspace
run: |
mkdir -p /colcon_ws/src
ln -s $(realpath .) /colcon_ws/src/bitbots_meta
- name: Build packages
run: |
. /opt/ros/iron/setup.sh
colcon build --symlink-install
working-directory: /colcon_ws
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,13 @@ bitbots_docs_internal
bitbots_vision/models/

**/.*.
.idea/*
*.pyc
.pyenv2/*
.pyenv3/*

ansible_robots/*
doc_internal/*
doku/*


26 changes: 26 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"configurations": [
{
"browse": {
"databaseFilename": "${default}",
"limitSymbolsToIncludedHeaders": false
},
// Set include paths so the editor can find the c++ header files for the auto completion
// The Bit-Bots specific environment variable COLCON_WS is utilized here and needs to be set
"includePath": [
"${env:COLCON_WS}/install/*/include/**",
"${env:COLCON_WS}/build/**/include/**",
"${env:COLCON_WS}/build/**/rosidl_generator_cpp/**",
"${workspaceFolder}/**/include/**",
"/opt/ros/${env:ROS_DISTRO}/include/**",
"/usr/include/**"
],
"name": "ROS",
"intelliSenseMode": "gcc-x64",
"compilerPath": "/usr/bin/gcc",
"cStandard": "gnu11",
"cppStandard": "c++17"
}
],
"version": 4
}
27 changes: 27 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"recommendations": [
"cschlosser.doxdocgen", // Generates doxygen comments
"DavidAnson.vscode-markdownlint", // Lints markdown files
"DotJoshJohnson.xml", // XML support
"eamodio.gitlens", // Extended git highlighting
"lextudio.restructuredtext", // Rendering rst files in preview
"mohsen1.prettify-json", // JSON formatting
"ms-azuretools.vscode-docker", // Docker support
"MS-CEINTL.vscode-language-pack-de", // German language pack
"ms-iot.vscode-ros", // ROS support
"ms-python.python", // Python support
"ms-python.vscode-pylance", // Python support
"ms-vscode.cmake-tools", // CMake support
"ms-vscode.cpptools-extension-pack", // C++ support
"ms-vscode.cpptools-themes", // C++ support
"ms-vscode.cpptools", // C++ support
"njpwerner.autodocstring", // Generates docstrings
"streetsidesoftware.code-spell-checker-german", // Spell checker
"streetsidesoftware.code-spell-checker", // Spell checker
"tamasfe.even-better-toml", // TOML support
"trond-snekvik.simple-rst", // Syntax highlighting for rst files
"twxs.cmake", // CMake support
"zxh404.vscode-proto3", // Protobuf support
"Mastermori.dsd", // DSD support
]
}
10 changes: 10 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "ROS: Attach",
"type": "ros",
"request": "attach"
}
]
}
200 changes: 200 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,200 @@
{
"autoDocstring.docstringFormat": "sphinx",
"cSpell.language": "en,de-de,lorem",
"cSpell.words": [
"ansible",
"autoconnect",
"basler",
"bitbot",
"bitbots",
"bringup",
"cartesian",
"chrt",
"coef",
"colcon",
"CORNERKICK",
"costmap",
"Costmap",
"CPUS",
"cuda",
"cudnn",
"Cyberbotics",
"darknet",
"DROPBALL",
"DROPIN",
"dsize",
"dtype",
"Dynamixel",
"Dynup",
"EXTERNPROTO",
"fieldboundary",
"fieldname",
"fovs",
"FREEKICK",
"gamecontroller",
"gamestate",
"GOALKICK",
"hlvs",
"holonomic",
"hostnames",
"hsv",
"imgmsg",
"imread",
"imwrite",
"isolcpus",
"isort",
"Joern",
"jupyter",
"Kalman",
"linalg",
"matplotlib",
"Mmse",
"msgify",
"mutex",
"nanosec",
"ndarray",
"Neff",
"nmcli",
"numpify",
"odom",
"odometry",
"PARTICLEFILTER",
"PENALTYKICK",
"PENALTYSHOOT",
"pointcloud",
"pointclouds",
"pretrained",
"proto",
"protos",
"pyplot",
"rclcpp",
"rclpy",
"Rhoban",
"robocup",
"RoboCup",
"rosbag",
"rosbags",
"rosdep",
"rosdeps",
"rosgraph",
"rosout",
"ROUNDROBIN",
"rtype",
"rviz",
"scipy",
"seaborn",
"segmentations",
"ssid",
"taskset",
"teamplayer",
"teleop",
"THROWIN",
"timespec",
"TLDR",
"tqdm",
"unpenalize",
"unpenalized",
"urdf",
"URDF",
"walkready",
"wandb",
"Webots",
"wifi",
"wolfgang",
"yoeo",
"yolo",
"yolov"
],
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 500,
"files.insertFinalNewline": true,
"python.analysis.typeCheckingMode": "off",
"esbonio.sphinx.confDir": "",
"files.associations": {
"cctype": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"any": "cpp",
"array": "cpp",
"atomic": "cpp",
"strstream": "cpp",
"bit": "cpp",
"*.tcc": "cpp",
"bitset": "cpp",
"chrono": "cpp",
"cinttypes": "cpp",
"codecvt": "cpp",
"compare": "cpp",
"complex": "cpp",
"concepts": "cpp",
"condition_variable": "cpp",
"cstdint": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"map": "cpp",
"set": "cpp",
"string": "cpp",
"unordered_map": "cpp",
"unordered_set": "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_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"utility": "cpp",
"hash_map": "cpp",
"hash_set": "cpp",
"slist": "cpp",
"fstream": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"iostream": "cpp",
"istream": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"numbers": "cpp",
"ostream": "cpp",
"semaphore": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"stop_token": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"cfenv": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"valarray": "cpp",
"variant": "cpp"
},

// Tell the ROS extension where to find the setup.bash
// This also utilizes the COLCON_WS environment variable, which needs to be set
"ros.rosSetupScript": "${env:COLCON_WS}/install/setup.bash",

// DO NOT COMMIT THESE ABSOLUTE PYTHON PATHS:


}
40 changes: 40 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.PHONY : basler install pip pre-commit pull-all pull-init pull-files rosdep status update

basler:
scripts/make_basler.sh $(ARGS)

install: pull-init basler update

master:
git submodule foreach -q --recursive 'branch="$$(git config -f $$toplevel/.gitmodules submodule.$$name.branch)"; [ "$$branch" = "" ] && git switch -q master || git switch -q $$branch'

pip:
# Install and upgrade pip dependencies
pip install --upgrade -r requirements/dev.txt

pre-commit:
# Install pre-commit hooks for all submodules that have a .pre-commit-config.yaml file
git submodule foreach -q --recursive "test -f .pre-commit-config.yaml && pre-commit install || :"

pull-all:
git pull
scripts/pull_all.sh
scripts/pull_files.bash

pull-init:
git pull
scripts/pull_init.sh
scripts/pull_files.bash

pull-files:
scripts/pull_files.bash

rosdep:
# Update rosdep and install dependencies from meta directory
rosdep update
rosdep install -iry --from-paths .

status:
scripts/git_status.bash

update: pull-all rosdep pip pre-commit
Loading

0 comments on commit ecfaf46

Please sign in to comment.