Skip to content

Commit 19f56fd

Browse files
committed
pre-commit
1 parent 0fb2c3f commit 19f56fd

File tree

6 files changed

+114
-92
lines changed

6 files changed

+114
-92
lines changed

.devcontainer/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ARG ROS_DISTRO
1717
# Install ROS2 manually since we're not using the ros: base image
1818
# Set non-interactive to avoid geographic area prompts
1919
ENV DEBIAN_FRONTEND=noninteractive
20+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2021
RUN apt-get update && apt-get install -y --no-install-recommends \
2122
curl \
2223
gnupg2 \
@@ -25,7 +26,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2526
&& ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime \
2627
&& dpkg-reconfigure --frontend noninteractive tzdata \
2728
&& curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg \
28-
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null \
29+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo "$UBUNTU_CODENAME") main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null \
2930
&& apt-get update && apt-get install -y --no-install-recommends \
3031
ros-${ROS_DISTRO}-ros-base \
3132
&& rm -rf /var/lib/apt/lists/*
@@ -92,4 +93,4 @@ RUN source /tmp/.env && rm /tmp/.env \
9293
USER $USERNAME
9394

9495
# Source ROS in user's bashrc
95-
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/$USERNAME/.bashrc
96+
RUN echo "source /opt/ros/${ROS_DISTRO}/setup.bash" >> /home/$USERNAME/.bashrc

.devcontainer/generate_devcontainer.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
#!/bin/bash
22

3+
# Copyright (c) 2025-present WATonomous. All rights reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
316
# generate_devcontainer.sh
4-
# Usage:
17+
# Usage:
518
# ./generate_devcontainer.sh <ros_distro> <container_type> [cuda_version] [ubuntu_version]
619

720
set -e
@@ -86,4 +99,4 @@ echo "Environment variables set for this session"
8699
echo ""
87100
echo "You can now:"
88101
echo " 1. Open the command palette (Ctrl+Shift+P)"
89-
echo " 2. Run 'Dev Containers: Rebuild and Reopen in Container'"
102+
echo " 2. Run 'Dev Containers: Rebuild and Reopen in Container'"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ log/
99

1010
# Claude helpers
1111
.claude/
12-
CLAUDE.md
12+
CLAUDE.md

.vscode/c_cpp_properties.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@
2727
}
2828
],
2929
"version": 4
30-
}
30+
}

.vscode/settings.json

Lines changed: 83 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
11
{
2-
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
3-
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/compile_commands.json",
4-
"C_Cpp.intelliSenseEngine": "default",
5-
"C_Cpp.errorSquiggles": "enabled",
6-
"C_Cpp.autocomplete": "default",
7-
"files.associations": {
8-
"*.hpp": "cpp",
9-
"*.h": "cpp",
10-
"cctype": "cpp",
11-
"clocale": "cpp",
12-
"cmath": "cpp",
13-
"csignal": "cpp",
14-
"cstdarg": "cpp",
15-
"cstddef": "cpp",
16-
"cstdio": "cpp",
17-
"cstdlib": "cpp",
18-
"cstring": "cpp",
19-
"ctime": "cpp",
20-
"cwchar": "cpp",
21-
"cwctype": "cpp",
22-
"array": "cpp",
23-
"atomic": "cpp",
24-
"strstream": "cpp",
25-
"bit": "cpp",
26-
"*.tcc": "cpp",
27-
"bitset": "cpp",
28-
"chrono": "cpp",
29-
"compare": "cpp",
30-
"concepts": "cpp",
31-
"condition_variable": "cpp",
32-
"cstdint": "cpp",
33-
"deque": "cpp",
34-
"list": "cpp",
35-
"map": "cpp",
36-
"set": "cpp",
37-
"string": "cpp",
38-
"unordered_map": "cpp",
39-
"unordered_set": "cpp",
40-
"vector": "cpp",
41-
"exception": "cpp",
42-
"algorithm": "cpp",
43-
"functional": "cpp",
44-
"iterator": "cpp",
45-
"memory": "cpp",
46-
"memory_resource": "cpp",
47-
"numeric": "cpp",
48-
"optional": "cpp",
49-
"random": "cpp",
50-
"ratio": "cpp",
51-
"regex": "cpp",
52-
"string_view": "cpp",
53-
"system_error": "cpp",
54-
"tuple": "cpp",
55-
"type_traits": "cpp",
56-
"utility": "cpp",
57-
"fstream": "cpp",
58-
"future": "cpp",
59-
"initializer_list": "cpp",
60-
"iomanip": "cpp",
61-
"iosfwd": "cpp",
62-
"iostream": "cpp",
63-
"istream": "cpp",
64-
"limits": "cpp",
65-
"mutex": "cpp",
66-
"new": "cpp",
67-
"numbers": "cpp",
68-
"ostream": "cpp",
69-
"semaphore": "cpp",
70-
"shared_mutex": "cpp",
71-
"sstream": "cpp",
72-
"stdexcept": "cpp",
73-
"stop_token": "cpp",
74-
"streambuf": "cpp",
75-
"thread": "cpp",
76-
"cinttypes": "cpp",
77-
"typeindex": "cpp",
78-
"typeinfo": "cpp",
79-
"variant": "cpp"
80-
},
81-
"cmake.configureOnOpen": false,
82-
"cmake.buildDirectory": "${workspaceFolder}/build",
83-
"ros.distro": "humble"
84-
}
2+
"C_Cpp.default.configurationProvider": "ms-vscode.cmake-tools",
3+
"C_Cpp.default.compileCommands": "${workspaceFolder}/build/compile_commands.json",
4+
"C_Cpp.intelliSenseEngine": "default",
5+
"C_Cpp.errorSquiggles": "enabled",
6+
"C_Cpp.autocomplete": "default",
7+
"files.associations": {
8+
"*.hpp": "cpp",
9+
"*.h": "cpp",
10+
"cctype": "cpp",
11+
"clocale": "cpp",
12+
"cmath": "cpp",
13+
"csignal": "cpp",
14+
"cstdarg": "cpp",
15+
"cstddef": "cpp",
16+
"cstdio": "cpp",
17+
"cstdlib": "cpp",
18+
"cstring": "cpp",
19+
"ctime": "cpp",
20+
"cwchar": "cpp",
21+
"cwctype": "cpp",
22+
"array": "cpp",
23+
"atomic": "cpp",
24+
"strstream": "cpp",
25+
"bit": "cpp",
26+
"*.tcc": "cpp",
27+
"bitset": "cpp",
28+
"chrono": "cpp",
29+
"compare": "cpp",
30+
"concepts": "cpp",
31+
"condition_variable": "cpp",
32+
"cstdint": "cpp",
33+
"deque": "cpp",
34+
"list": "cpp",
35+
"map": "cpp",
36+
"set": "cpp",
37+
"string": "cpp",
38+
"unordered_map": "cpp",
39+
"unordered_set": "cpp",
40+
"vector": "cpp",
41+
"exception": "cpp",
42+
"algorithm": "cpp",
43+
"functional": "cpp",
44+
"iterator": "cpp",
45+
"memory": "cpp",
46+
"memory_resource": "cpp",
47+
"numeric": "cpp",
48+
"optional": "cpp",
49+
"random": "cpp",
50+
"ratio": "cpp",
51+
"regex": "cpp",
52+
"string_view": "cpp",
53+
"system_error": "cpp",
54+
"tuple": "cpp",
55+
"type_traits": "cpp",
56+
"utility": "cpp",
57+
"fstream": "cpp",
58+
"future": "cpp",
59+
"initializer_list": "cpp",
60+
"iomanip": "cpp",
61+
"iosfwd": "cpp",
62+
"iostream": "cpp",
63+
"istream": "cpp",
64+
"limits": "cpp",
65+
"mutex": "cpp",
66+
"new": "cpp",
67+
"numbers": "cpp",
68+
"ostream": "cpp",
69+
"semaphore": "cpp",
70+
"shared_mutex": "cpp",
71+
"sstream": "cpp",
72+
"stdexcept": "cpp",
73+
"stop_token": "cpp",
74+
"streambuf": "cpp",
75+
"thread": "cpp",
76+
"cinttypes": "cpp",
77+
"typeindex": "cpp",
78+
"typeinfo": "cpp",
79+
"variant": "cpp"
80+
},
81+
"cmake.configureOnOpen": false,
82+
"cmake.buildDirectory": "${workspaceFolder}/build",
83+
"ros.distro": "humble"
84+
}

.vscode/tasks.json

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
"label": "Setup Devcontainer (CPU Only)",
66
"type": "shell",
77
"command": "./.devcontainer/generate_devcontainer.sh",
8-
"args": ["${input:rosDistro}", "cpu"],
8+
"args": [
9+
"${input:rosDistro}",
10+
"cpu"
11+
],
912
"problemMatcher": [],
1013
"group": "build",
1114
"presentation": {
@@ -21,7 +24,12 @@
2124
"label": "Setup Devcontainer (GPU)",
2225
"type": "shell",
2326
"command": "./.devcontainer/generate_devcontainer.sh",
24-
"args": ["${input:rosDistro}", "gpu", "${input:cudaVersion}", "${input:ubuntuVersion}"],
27+
"args": [
28+
"${input:rosDistro}",
29+
"gpu",
30+
"${input:cudaVersion}",
31+
"${input:ubuntuVersion}"
32+
],
2533
"problemMatcher": [],
2634
"group": "build",
2735
"presentation": {
@@ -97,4 +105,4 @@
97105
"default": "22.04"
98106
}
99107
]
100-
}
108+
}

0 commit comments

Comments
 (0)