Skip to content

Commit 6b420f1

Browse files
authored
Merge branch 'main' into issue/1096_float_equal
2 parents 433719e + aca67ea commit 6b420f1

File tree

941 files changed

+35929
-44000
lines changed

Some content is hidden

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

941 files changed

+35929
-44000
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ IncludeCategories:
110110
Priority: 50
111111

112112
# C++ standard library headers, then C
113-
# TODO(JS): Add when new C++ STL header begins with "c" is found
113+
# C-prefix headers (including the full C++20 set) are matched by the "^<c.*>$" regex
114114
- Regex: "^<charconv>$"
115115
Priority: 100
116116
- Regex: "^<chrono>$"

.codespellrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[codespell]
2+
# Exclude generated and third-party content to keep signal-to-noise low.
3+
skip = ./.git,./.pixi,./build,./build-*,./docs/readthedocs/_build,./docs/readthedocs/_generated,./external,./node_modules,*/_build/*,*/_generated/*,*/.venv/*,*/__pycache__/*
4+
# Ignore domain terms that are not typos.
5+
ignore-words-list = DOUBLECLICK,mKe,Reacher,reacher,abd
6+
quiet-level = 3

.devcontainer/Dockerfile

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
FROM jslee02/dart-dev:ubuntu-jammy-v6.16
1+
FROM ubuntu:questing
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG PIXI_VERSION=0.59.0
5+
6+
SHELL ["/bin/bash", "-c"]
7+
8+
# Base utilities; pixi manages the toolchain and dependencies (see docs/onboarding/building.md)
9+
RUN apt-get update -qq && apt-get install -y --no-install-recommends \
10+
ca-certificates \
11+
curl \
12+
git \
13+
tini && \
14+
rm -rf /var/lib/apt/lists/*
15+
16+
# Install pixi globally so the devcontainer uses the managed workflow
17+
ENV PIXI_HOME="/opt/pixi" PATH="/opt/pixi/bin:${PATH}"
18+
RUN curl -fsSL https://pixi.sh/install.sh | PIXI_VERSION=${PIXI_VERSION} PIXI_HOME=${PIXI_HOME} bash
19+
20+
WORKDIR /workspaces/dart
21+
22+
ENTRYPOINT ["/usr/bin/tini", "--"]
23+
CMD ["bash", "-lc", "pixi shell || exec bash"]

.devcontainer/devcontainer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
"ghcr.io/devcontainers/features/common-utils:1": {
88
"installZsh": "true",
99
"username": "vscode",
10-
"uid": "1000",
11-
"gid": "1000",
1210
"upgradePackages": "true"
1311
}
1412
},
1513
"capAdd": ["SYS_PTRACE"],
1614
"securityOpt": ["seccomp=unconfined"],
1715
"remoteUser": "vscode"
18-
}
16+
}
Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: 'type: bug'
6-
assignees: ''
7-
4+
title: ""
5+
labels: "type: bug"
6+
assignees: ""
87
---
98

109
> For questions, use [Discussions](https://github.com/dartsim/dart/discussions) instead.
1110
1211
**Before submitting:**
12+
1313
- [ ] Checked [documentation](http://dartsim.github.io/) and existing issues
1414

1515
**Environment:**
16-
* DART version: [e.g., main, 6.15.0]
17-
* OS: [e.g., Ubuntu 24.04, macOS Sequoia, Windows 11]
18-
* Installation: [e.g., pixi, conda, apt, homebrew, vcpkg, source]
19-
* Compiler (if source): [e.g., GCC 13.2.0, Clang 18.0.0, MSVC 2022]
16+
17+
- DART version: [e.g., main, 6.15.0]
18+
- OS: [e.g., Ubuntu 24.04, macOS Sequoia, Windows 11]
19+
- Installation: [e.g., pixi, conda, apt, homebrew, vcpkg, source]
20+
- Compiler (if source): [e.g., GCC 13.2.0, Clang 18.0.0, MSVC 2022]
2021

2122
**Expected vs Current Behavior:**
2223
Describe what you expected and what actually happens.
2324

2425
**Steps to Reproduce:**
26+
2527
1.
2628
2.
2729
3.
2830

2931
**Code to Reproduce:**
32+
3033
```cpp
3134
// Minimal reproducible example
3235
```
3336

3437
**Additional Info:**
35-
* For build issues, share verbose build output: `pixi run config` with `DART_VERBOSE=ON`
36-
* Share gist links for long outputs
38+
39+
- For build issues, share verbose build output: `pixi run config` with `DART_VERBOSE=ON`
40+
- Share gist links for long outputs

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: 'type: enhancement'
6-
assignees: ''
7-
4+
title: ""
5+
labels: "type: enhancement"
6+
assignees: ""
87
---
98

109
> For general questions, use [Discussions](https://github.com/dartsim/dart/discussions) instead.
@@ -19,6 +18,7 @@ Describe your proposed solution.
1918
Alternative solutions considered.
2019

2120
**Target API:**
21+
2222
- [ ] C++
2323
- [ ] Python (dartpy)
2424
- [ ] Both

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Describe your changes here.
44

5-
***
5+
---
66

77
#### Before creating a pull request
88

.github/workflows/cache_docker.yml

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

.github/workflows/ci_gz_physics.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,14 @@ jobs:
4242
test_gazebo:
4343
name: GZ Physics Tests
4444
runs-on: ubuntu-latest
45+
env:
46+
# Keep parallelism modest to avoid process limits on shared runners.
47+
DART_PARALLEL_JOBS: 8
48+
# Avoid spawning too many ninja processes on shared runners (posix_spawn failures)
49+
CMAKE_BUILD_PARALLEL_LEVEL: 1
4550
steps:
4651
- name: Checkout
47-
uses: actions/checkout@v5
52+
uses: actions/checkout@v6
4853

4954
- name: Setup pixi
5055
uses: prefix-dev/[email protected]
@@ -59,10 +64,16 @@ jobs:
5964

6065
- name: Setup sccache
6166
uses: mozilla-actions/[email protected]
67+
with:
68+
disable_annotations: true
6269

6370
- name: Configure environment for compiler cache
6471
run: |
65-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
72+
if [ -n "${ACTIONS_CACHE_URL:-}" ]; then
73+
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
74+
else
75+
echo "SCCACHE_GHA_ENABLED=false" >> $GITHUB_ENV
76+
fi
6677
echo "DART_COMPILER_CACHE=sccache" >> $GITHUB_ENV
6778
echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
6879
echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
@@ -73,5 +84,7 @@ jobs:
7384
mkdir -p "${RUNNER_TEMP}/ccache"
7485
7586
- name: Test gz-physics
87+
env:
88+
DART_PARALLEL_JOBS: 8
7689
run: |
7790
pixi r -e gazebo test-gz

.github/workflows/ci_macos.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,26 @@ jobs:
4444
runs-on: macos-latest
4545
steps:
4646
- name: Checkout
47-
uses: actions/checkout@v5
48-
49-
- name: Remove preinstalled pixi (if any)
50-
run: rm -f "$HOME/.pixi/bin/pixi"
47+
uses: actions/checkout@v6
5148

5249
- name: Setup pixi
5350
uses: prefix-dev/[email protected]
5451
with:
55-
cache: true
52+
# Avoid cache key generation failures on macOS self-hosted runners
53+
cache: false
5654

5755
- name: Setup sccache
5856
uses: mozilla-actions/[email protected]
57+
with:
58+
disable_annotations: true
5959

6060
- name: Configure environment for compiler cache
6161
run: |
62-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
62+
if [ -n "${ACTIONS_CACHE_URL:-}" ]; then
63+
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
64+
else
65+
echo "SCCACHE_GHA_ENABLED=false" >> $GITHUB_ENV
66+
fi
6367
echo "DART_COMPILER_CACHE=sccache" >> $GITHUB_ENV
6468
echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
6569
echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
@@ -76,6 +80,7 @@ jobs:
7680
run: |
7781
DART_VERBOSE=ON \
7882
BUILD_TYPE=Release \
83+
DART_BUILD_DART8_OVERRIDE=OFF \
7984
pixi run test-all
8085
8186
- name: Install
@@ -90,22 +95,26 @@ jobs:
9095
# Run Debug builds on every push/PR so regressions are caught before landing on main
9196
steps:
9297
- name: Checkout
93-
uses: actions/checkout@v5
94-
95-
- name: Remove preinstalled pixi (if any)
96-
run: rm -f "$HOME/.pixi/bin/pixi"
98+
uses: actions/checkout@v6
9799

98100
- name: Setup pixi
99101
uses: prefix-dev/[email protected]
100102
with:
101-
cache: true
103+
# Avoid cache key generation failures on macOS self-hosted runners
104+
cache: false
102105

103106
- name: Setup sccache
104107
uses: mozilla-actions/[email protected]
108+
with:
109+
disable_annotations: true
105110

106111
- name: Configure environment for compiler cache
107112
run: |
108-
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
113+
if [ -n "${ACTIONS_CACHE_URL:-}" ]; then
114+
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
115+
else
116+
echo "SCCACHE_GHA_ENABLED=false" >> $GITHUB_ENV
117+
fi
109118
echo "DART_COMPILER_CACHE=sccache" >> $GITHUB_ENV
110119
echo "CMAKE_C_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
111120
echo "CMAKE_CXX_COMPILER_LAUNCHER=sccache" >> $GITHUB_ENV
@@ -119,4 +128,5 @@ jobs:
119128
run: |
120129
DART_VERBOSE=ON \
121130
BUILD_TYPE=Debug \
131+
DART_BUILD_DART8_OVERRIDE=OFF \
122132
pixi run test-all

0 commit comments

Comments
 (0)