Skip to content

Commit 8cebf64

Browse files
committed
Merge branch 'fix/pywalk' into feature/mujoco
2 parents f225b1f + f86f836 commit 8cebf64

File tree

484 files changed

+10379
-8518
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

484 files changed

+10379
-8518
lines changed

.devcontainer/devcontainer.json

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
{
2-
"name": "Bit-Bots Iron Dev",
2+
"name": "Bit-Bots Iron Dev",
33

4-
"build": { "dockerfile": "Dockerfile" },
4+
"build": { "dockerfile": "Dockerfile" },
55

6-
"containerEnv": {
7-
"DISPLAY": "${localEnv:DISPLAY}",
8-
"LIBGL_ALWAYS_SOFTWARE": "1",
9-
"QT_X11_NO_MITSHM": "1",
10-
"DOCKER": "1"
11-
},
6+
"containerEnv": {
7+
"DISPLAY": "${localEnv:DISPLAY}",
8+
"LIBGL_ALWAYS_SOFTWARE": "1",
9+
"QT_X11_NO_MITSHM": "1",
10+
"DOCKER": "1"
11+
},
1212

13-
"customizations": {
14-
"vscode": {
15-
"settings": {
16-
"terminal.integrated.defaultProfile.linux": "zsh",
17-
"terminal.integrated.profiles.linux": { "zsh": { "path": "/bin/zsh" } }
18-
},
19-
"extensions": [
20-
"ms-iot.vscode-ros"
21-
]
22-
}
23-
},
13+
"customizations": {
14+
"vscode": {
15+
"settings": {
16+
"terminal.integrated.defaultProfile.linux": "zsh",
17+
"terminal.integrated.profiles.linux": { "zsh": { "path": "/bin/zsh" } }
18+
},
19+
"extensions": ["ms-iot.vscode-ros"]
20+
}
21+
},
2422

25-
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/root/colcon_ws/src/bitbots_main",
26-
"workspaceFolder": "/root/colcon_ws/src/bitbots_main",
23+
"workspaceMount": "type=bind,source=${localWorkspaceFolder},target=/root/colcon_ws/src/bitbots_main",
24+
"workspaceFolder": "/root/colcon_ws/src/bitbots_main",
2725

28-
"mounts": [
29-
"type=bind,source=${localEnv:HOME},target=/srv/host_home,consistency=cached",
30-
],
26+
"mounts": [
27+
"type=bind,source=${localEnv:HOME},target=/srv/host_home,consistency=cached"
28+
],
3129

32-
"runArgs": [
33-
"--tmpfs", "/tmp:exec,mode=01777",
34-
"--privileged",
35-
"--net=host",
36-
"--device=/dev/dri:/dev/dri",
37-
"--volume=/tmp/.X11-unix:/tmp/.X11-unix",
38-
"--cap-add=SYS_PTRACE",
39-
"--security-opt", "seccomp=unconfined"
40-
],
30+
"runArgs": [
31+
"--tmpfs",
32+
"/tmp:exec,mode=01777",
33+
"--privileged",
34+
"--net=host",
35+
"--device=/dev/dri:/dev/dri",
36+
"--volume=/tmp/.X11-unix:/tmp/.X11-unix",
37+
"--cap-add=SYS_PTRACE",
38+
"--security-opt",
39+
"seccomp=unconfined"
40+
],
4141

42-
"postCreateCommand": "git config --global --add safe.directory '*'"
43-
}
42+
"postCreateCommand": "git config --global --add safe.directory '*'"
43+
}

.devcontainer/zshrc

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# If you come from bash you might have to change your $PATH.
22
export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:$PATH
33

4+
# Set the default shell to zsh when running zsh
5+
export SHELL="$(which zsh)"
6+
47
# Path to your oh-my-zsh installation.
58
export ZSH=$HOME/.oh-my-zsh
69

@@ -49,8 +52,7 @@ bindkey "^[[1;5D" backward-word
4952
# Settings for the prompt to show that we are in a docker container
5053
export PROMPT="%K{black} 🐋 %K{blue}%F{black}%/ %f%k%F{blue}%f " # Prefix the prompt with DOCKER
5154

52-
# Do ros2 specific things
53-
source /opt/ros/iron/setup.zsh &> /dev/null
55+
# >>> bit-bots initialize >>>
5456

5557
# Ignore some deprecation warnings
5658
export PYTHONWARNINGS=ignore:::setuptools.command.install,ignore:::setuptools.command.easy_install,ignore:::pkg_resources
@@ -72,38 +74,12 @@ export RCUTILS_CONSOLE_OUTPUT_FORMAT="[{severity}] [{name}]: {message}"
7274
# Set the default Middleware
7375
export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp
7476

75-
# Create a function to update the argcomplete so tab completion works
76-
# This needs to be called every time we source something ROS 2 related
77-
function update_ros2_argcomplete() {
78-
eval "$(register-python-argcomplete3 colcon)"
79-
eval "$(register-python-argcomplete3 ros2)"
80-
}
81-
82-
# Update the tab completion
83-
update_ros2_argcomplete
84-
85-
alias rr='ros2 run'
86-
alias rl='ros2 launch'
87-
88-
alias rte='ros2 topic echo'
89-
alias rtl='ros2 topic list'
90-
alias rth='ros2 topic hz'
91-
alias rtp='ros2 topic pub'
92-
93-
alias rpl='ros2 param list'
94-
alias rpg='ros2 param get'
95-
96-
alias cdc='cd $COLCON_WS'
97-
98-
alias cba='cdc && colcon build --symlink-install --continue-on-error'
99-
alias cb='cdc && colcon build --symlink-install --continue-on-error --packages-up-to'
100-
alias cbs='cdc && colcon build --symlink-install --packages-select'
101-
alias cc='cdc && colcon clean packages --packages-select'
102-
alias cca='cdc && colcon clean packages'
77+
# Load our ros plugin script containing useful functions and aliases for ROS 2 development
78+
if [[ -f $COLCON_WS/src/bitbots_main/scripts/ros.plugin.sh ]]; then
79+
source $COLCON_WS/src/bitbots_main/scripts/ros.plugin.sh
80+
fi
10381

104-
alias sr='source /opt/ros/iron/setup.zsh && update_ros2_argcomplete'
105-
alias sc='source $COLCON_WS/install/setup.zsh && update_ros2_argcomplete'
106-
alias sa='sr && sc'
82+
# <<< bit-bots initialize <<<
10783

10884
# Set default editor
10985
export VISUAL="vim"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: ros-tooling/[email protected]
2020

2121
- name: Check out repository
22-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
2323

2424
- name: Configure git to trust repository
2525
run: git config --global --add safe.directory /__w/bitbots_main/bitbots_main

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ doku/*
221221
/lib/
222222

223223
# Path to the protocol buffer definitions, which are a diffrerent repository and managed by vcstool
224-
/bitbots_team_communication/bitbots_team_communication/RobocupProtocol
224+
/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication/RobocupProtocol
225225
# Protobuf generated file
226-
/bitbots_team_communication/bitbots_team_communication/robocup_extension_pb2.py
226+
/bitbots_team_communication/bitbots_team_communication/bitbots_team_communication/robocup_extension_pb2.py
227227

228+
# Workspace git status file from the deploy tool
229+
**/workspace_status.json

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ repos:
1515
- "-i"
1616
- id: cppcheck
1717
args:
18+
- "--inline-suppr"
1819
- "--suppress=missingInclude"
1920
- "--suppress=unmatchedSuppression"
2021
- "--suppress=unusedFunction"

.vscode/settings.json

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"cSpell.words": [
66
"animatable",
77
"ansible",
8+
"antiwindup",
89
"autoconnect",
910
"basler",
1011
"bitbot",
@@ -14,8 +15,10 @@
1415
"chrt",
1516
"coef",
1617
"colcon",
18+
"conv",
1719
"cornerkick",
1820
"costmap",
21+
"costmaps",
1922
"cpus",
2023
"cuda",
2124
"cudnn",
@@ -27,6 +30,7 @@
2730
"dtype",
2831
"dynamixel",
2932
"dynup",
33+
"euler",
3034
"externproto",
3135
"fetchrobotics",
3236
"fieldboundary",
@@ -35,6 +39,7 @@
3539
"freekick",
3640
"gamecontroller",
3741
"gamestate",
42+
"gaussian",
3843
"goalkick",
3944
"hexsha",
4045
"hlvs",
@@ -49,9 +54,11 @@
4954
"joern",
5055
"jupyter",
5156
"kalman",
57+
"Leph",
5258
"linalg",
5359
"matplotlib",
5460
"mmse",
61+
"moveit",
5562
"msgify",
5663
"mutex",
5764
"nanosec",
@@ -63,16 +70,21 @@
6370
"odom",
6471
"odometry",
6572
"particlefilter",
73+
"pathfinding",
6674
"penaltykick",
6775
"penaltyshoot",
6876
"pointcloud",
6977
"pointclouds",
78+
"popen",
7079
"pretrained",
7180
"proto",
7281
"protos",
7382
"pyplot",
83+
"pywrapper",
84+
"Quaterniond",
7485
"rclcpp",
7586
"rclpy",
87+
"reapproach",
7688
"rhoban",
7789
"robocup",
7890
"rory",
@@ -83,14 +95,18 @@
8395
"rosgraph",
8496
"rosout",
8597
"roundrobin",
98+
"Rouxel",
8699
"rtype",
87100
"rviz",
88101
"scipy",
102+
"sdev",
89103
"seaborn",
90104
"segmentations",
105+
"srdf",
91106
"ssid",
92107
"std_srvs",
93108
"taskset",
109+
"teamcomm",
94110
"teamplayer",
95111
"teleop",
96112
"throwin",
@@ -103,8 +119,10 @@
103119
"walkready",
104120
"wandb",
105121
"webots",
122+
"Werror",
106123
"wifi",
107124
"wolfgang",
125+
"xacro",
108126
"yoeo",
109127
"yolo",
110128
"yolov"
@@ -193,7 +211,8 @@
193211
"valarray": "cpp",
194212
"variant": "cpp",
195213
"regex": "cpp",
196-
"future": "cpp"
214+
"future": "cpp",
215+
"*.ipp": "cpp"
197216
},
198217
// Tell the ROS extension where to find the setup.bash
199218
// This also utilizes the COLCON_WS environment variable, which needs to be set
@@ -208,4 +227,11 @@
208227
"cmake.configureOnOpen": false,
209228
"editor.formatOnSave": true,
210229
"editor.defaultFormatter": "charliermarsh.ruff",
230+
"restructuredtext.pythonRecommendation.disabled": true,
231+
"[xml]": {
232+
"editor.defaultFormatter": "DotJoshJohnson.xml"
233+
},
234+
"[json]": {
235+
"editor.defaultFormatter": "vscode.json-language-features"
236+
},
211237
}

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY : basler install install-no-root pip pre-commit install-git-filters format pull-all pull-init pull-repos pull-files fresh-libs remove-libs setup-libs rosdep status update update-no-root
1+
.PHONY : basler webots install install-no-root pip pre-commit install-git-filters format pull-all pull-init pull-repos pull-files fresh-libs remove-libs setup-libs rosdep status update update-no-root
22

33
HTTPS := ""
44
REPO:=$(dir $(abspath $(firstword $(MAKEFILE_LIST))))
@@ -7,6 +7,10 @@ basler:
77
# Install Basler Pylon SDK
88
scripts/make_basler.sh $(ARGS)
99

10+
webots:
11+
# Install Webots Simulation environment
12+
scripts/make_webots.sh $(ARGS)
13+
1014
install: pull-init basler update
1115

1216
install-no-root: pull-init update-no-root
@@ -43,6 +47,8 @@ pull-files:
4347
wget \
4448
--no-verbose \
4549
--show-progress \
50+
--timeout=15 \
51+
--tries=2 \
4652
--recursive \
4753
--timestamping \
4854
--no-parent \
@@ -53,6 +59,8 @@ pull-files:
5359
wget \
5460
--no-verbose \
5561
--show-progress \
62+
--timeout=15 \
63+
--tries=2 \
5664
--recursive \
5765
--timestamping \
5866
--no-parent \
@@ -66,6 +74,8 @@ fresh-libs: remove-libs setup-libs
6674
remove-libs:
6775
# Removes the lib directory and all its contents
6876
rm -rf lib/*
77+
# Also remove the generated protobuf files, as they are not needed anymore
78+
rm bitbots_team_communication/bitbots_team_communication/robocup_extension_pb2.py 2> /dev/null || true
6979

7080
setup-libs:
7181
# Clone lib repositories in workspace.repos into the lib directory
@@ -77,6 +87,8 @@ else
7787
endif
7888

7989
rosdep:
90+
# Initialize rosdep if not already done
91+
[ -f /etc/ros/rosdep/sources.list.d/20-default.list ] || sudo rosdep init
8092
# Update rosdep and install dependencies from meta directory
8193
rosdep update
8294
rosdep install --from-paths . --ignore-src --rosdistro iron -y

bitbots_behavior/bitbots_blackboard/.idea/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

bitbots_behavior/bitbots_blackboard/.idea/bitbots_blackboard.iml

Lines changed: 0 additions & 14 deletions
This file was deleted.

bitbots_behavior/bitbots_blackboard/.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)