Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
79c3bcf
fix(controller): harden configure() parameter validation
simone-contorno Aug 18, 2026
7dae301
fix(controller): harden per-cycle plan sampling and curvature seeding
simone-contorno Aug 18, 2026
cb8a76c
fix(core): harden MPC::solve() and horizon-setter validation
simone-contorno Aug 18, 2026
142e1e5
fix(core): harden the obstacle CBF constraint assembly
simone-contorno Aug 18, 2026
ad89cdd
fix(core): validate Model inequality bound index and update calls
simone-contorno Aug 18, 2026
780e29e
test(controller): cover NaN fallback for every clamped parameter
simone-contorno Aug 19, 2026
0803528
test(core): add a node-range obstacle-slot fill helper
simone-contorno Aug 19, 2026
b2aba59
ci: add an AddressSanitizer/UndefinedBehaviorSanitizer job
simone-contorno Aug 19, 2026
d9ca622
fix(controller): read the goal tolerance as a radial bound
simone-contorno Aug 19, 2026
719c0f2
fix(controller): clamp the speed limit into the model bounds
simone-contorno Aug 19, 2026
6d12bd9
fix(controller): match upstream Nav2 in the endpoint veto
simone-contorno Aug 19, 2026
b6717e9
docs(core): correct the solve-time budget guarantee
simone-contorno Aug 19, 2026
dabf57b
fix(controller): project the pose onto the plan segments
simone-contorno Aug 19, 2026
37acac2
fix(controller): warn when robot_radius undersizes the footprint
simone-contorno Aug 19, 2026
8166da1
fix(controller): centre the obstacle scan on the predicted state
simone-contorno Aug 19, 2026
2204f16
fix(controller): bind an obstacle slot to one object per cycle
simone-contorno Aug 19, 2026
35d2db6
perf(controller): narrow the costmap lock to the cell reads
simone-contorno Aug 19, 2026
48bf20f
fix(controller): hoist the footprint read out of the grid lock
simone-contorno Aug 19, 2026
c3058a0
fix(controller): brake in control space through the model
simone-contorno Aug 19, 2026
805e9d5
fix(controller): decay the steering belief on a rejected cycle
simone-contorno Aug 19, 2026
fe05c28
fix(controller): clear cached perception under its mutex
simone-contorno Aug 19, 2026
7d6f7dc
docs(controller): correct the obstacle threading comment
simone-contorno Aug 19, 2026
acc8b1f
docs(controller): complete the readModelBounds member list
simone-contorno Aug 19, 2026
aea911b
feat(controller): add a configurable brake ramp step
simone-contorno Aug 19, 2026
7fd1b1f
fix(controller): rank obstacle slots by time to encounter
simone-contorno Aug 19, 2026
f4fed64
test(models): add an asymmetric-bounds fixture model
simone-contorno Aug 19, 2026
9c4b05f
test(controller): reconcile the suite with the control-space brake
simone-contorno Aug 19, 2026
8c2207b
test(controller): cover goal-tolerance, veto, and scan fixes
simone-contorno Aug 19, 2026
ffef896
test(controller): cover the plan-projection fixes
simone-contorno Aug 19, 2026
239f265
test(controller): cover the fallback brake's command semantics
simone-contorno Aug 19, 2026
2597e6c
test(controller): cover earliest-encounter obstacle-slot ranking
simone-contorno Aug 19, 2026
5868b7d
test(controller): cover the robot_radius warn-and-continue check
simone-contorno Aug 19, 2026
15c8ab4
test(controller): cover the footprint-read and lock-scope invariants
simone-contorno Aug 19, 2026
56b2edf
test(controller): strengthen the unknown-adjacent veto threshold case
simone-contorno Aug 19, 2026
a4355d5
docs(controller): correct the footprint veto masking claim
simone-contorno Aug 19, 2026
d3717e0
feat(core): let a model declare its planar mapping
simone-contorno Aug 19, 2026
6766291
feat(core): split the bicycle by reference point
simone-contorno Aug 19, 2026
57d11c0
feat(core): add a transactional solve entry point
simone-contorno Aug 19, 2026
f7fdb3d
fix(core): validate the configuration-time inputs of MPC
simone-contorno Aug 19, 2026
9b308ab
fix(core): complete the coupled obstacle linearisation
simone-contorno Aug 19, 2026
f09cf00
fix(controller): drive the model through its declared mapping
simone-contorno Aug 19, 2026
309ef04
fix(controller): report convergence past the acceptance gates
simone-contorno Aug 19, 2026
9999d8b
fix(controller): commit the solve only once the gates accept
simone-contorno Aug 19, 2026
f24145e
feat(controller): track the goal heading and optional reverse travel
simone-contorno Aug 19, 2026
66e434c
feat(controller)!: default model_plugin to the unicycle
simone-contorno Aug 19, 2026
4cdd880
docs(controller): state what two released members hold
simone-contorno Aug 19, 2026
ae642cf
test: reconcile the suite with the corrected model semantics
simone-contorno Aug 19, 2026
b283e90
docs: add migration notes for the released packages
simone-contorno Aug 19, 2026
837b8d8
perf(controller): build the state reference in place
simone-contorno Aug 19, 2026
e20400d
feat(core): let a model declare its steering-rate control
simone-contorno Aug 20, 2026
3e73174
fix(controller): centre the obstacle keep-out on base_link
simone-contorno Aug 20, 2026
fb3b604
perf(core): drop the inert first-node obstacle gradient
simone-contorno Aug 20, 2026
24bdfd2
fix(core): evaluate the first coupled constraint at one time
simone-contorno Aug 20, 2026
744558d
feat(core): accept a current-time obstacle block
simone-contorno Aug 20, 2026
16f9bbe
docs: record the obstacle-frame and block-layout changes
simone-contorno Aug 20, 2026
9543876
refactor(core): reconstruct the current-time obstacle in place
simone-contorno Aug 20, 2026
aa8e18d
refactor(controller): name the fallback ramp for what it holds
simone-contorno Aug 20, 2026
d092a70
fix(controller): accept a model with a single control
simone-contorno Aug 20, 2026
c9b0dd6
test(core): pin the transactional solve/commit contract
simone-contorno Aug 20, 2026
289c054
test(core): pin the post-init configuration and shape contract
simone-contorno Aug 20, 2026
a7e0b84
test(core): pin the bicycle plugins and the planar-mapping default
simone-contorno Aug 20, 2026
7d0f5dd
test(core): pin the coupled obstacle constraint's current-time fill
simone-contorno Aug 20, 2026
935ecfe
test(msgs): pin the SolverDiagnostics wire contract
simone-contorno Aug 20, 2026
5df6b86
feat(test-models): add a non-finite-other-axes fault fixture
simone-contorno Aug 20, 2026
bcd57f3
test(controller): pin the Wave 3 controller-facing contracts
simone-contorno Aug 20, 2026
0cd6585
fix(core): reject setdt and setT after init
simone-contorno Aug 20, 2026
50a9ba6
docs(core): derive both bicycle plugins' yaw-rate terms
simone-contorno Aug 21, 2026
33f88b0
docs(core): correct the max_solve_time bound and SQP-convergence claims
simone-contorno Aug 21, 2026
4c110d7
docs(controller): describe the footprint veto as outline-only, not exact
simone-contorno Aug 21, 2026
e10500d
docs: add the operating envelope section
simone-contorno Aug 21, 2026
1d8506a
docs(core): qualify model genericity and rename the bicycle plugins
simone-contorno Aug 21, 2026
6d3c8d5
docs(core): describe the coupled-CBF gradient term
simone-contorno Aug 21, 2026
9df437f
docs(controller): tie cbf_gamma guidance to slot stability, not a fix…
simone-contorno Aug 21, 2026
0417bf0
docs(core): correct the scan-centring and epsilon-floor claims
simone-contorno Aug 21, 2026
3334505
docs(controller): correct the bicycle steering-reference formula
simone-contorno Aug 21, 2026
b936475
docs(controller): describe the control-space brake ramp
simone-contorno Aug 21, 2026
fe71ef9
docs: caveat the comparison tables pending re-validation
simone-contorno Aug 21, 2026
7d6799f
docs(core): qualify the model-genericity claim in the README
simone-contorno Aug 21, 2026
d9be44c
docs(test-models): disclaim fixture class names as unstable
simone-contorno Aug 21, 2026
6fb61fb
ci(sanitizers): keep leak detection on and raise timeouts
simone-contorno Aug 21, 2026
81f072f
test(controller): name the contract test for what it covers
simone-contorno Aug 21, 2026
abd4189
test: state what the comments referenced, not where it was decided
simone-contorno Aug 21, 2026
72b44e5
docs: state the caveat instead of citing a private document
simone-contorno Aug 21, 2026
e71cfd3
docs: correct the terminal heading and the footprint veto
simone-contorno Aug 21, 2026
12b58ea
docs(controller): document brake_period_s where operators find it
simone-contorno Aug 21, 2026
4341f25
docs(controller): correct the protected-member count
simone-contorno Aug 21, 2026
6a773c9
docs(controller): note the brake's new yaw-rate starting point
simone-contorno Aug 21, 2026
b83d324
docs(core): record that updateIneq now throws
simone-contorno Aug 21, 2026
e42b1c5
ci(sanitizers): point the suppressions path inside the container
simone-contorno Aug 21, 2026
0d407b4
test(controller): drop a dangling reference from a banner comment
simone-contorno Aug 21, 2026
fabd043
docs(controller): make the migration summary match the header
simone-contorno Aug 21, 2026
451e5fb
docs(core): list the updateIneq rejection in the summary
simone-contorno Aug 21, 2026
a2ed0e9
test(controller): describe each banner by its subject
simone-contorno Aug 21, 2026
278b150
test(controller): finish the comment cleanup in the contract tests
simone-contorno Aug 21, 2026
28ab2de
fix(controller): measure the brake period before the gates
simone-contorno Aug 21, 2026
5c425f2
fix(controller): place the state weights by declared mapping
simone-contorno Aug 21, 2026
e0a63e3
fix(core): close the remaining paths to nc greater than np
simone-contorno Aug 21, 2026
24e71c6
fix(controller): seed the brake in the model's own units
simone-contorno Aug 21, 2026
62d8d7f
fix(controller): publish before the veto escalation throws
simone-contorno Aug 21, 2026
52be12a
fix(controller): reject a non-finite desired_linear_vel
simone-contorno Aug 21, 2026
8fa51ca
fix(core): reject setMaxObs and setCbfGamma after init
simone-contorno Aug 21, 2026
bfebd9a
test(core): assert the reconstructed node-0 obstacle bound
simone-contorno Aug 21, 2026
a35d84c
test(core): cover the implausible obstacle-step fallback
simone-contorno Aug 21, 2026
a13d8cf
fix(controller): reject a model whose speed bound is zero
simone-contorno Aug 21, 2026
6bb14b4
fix(core): reject a non-finite rear-axle steering bound
simone-contorno Aug 21, 2026
3949de0
fix(core): warn once per process on the deprecated alias
simone-contorno Aug 21, 2026
6395506
test(controller): cover the missing-control rejection
simone-contorno Aug 25, 2026
839dbbb
fix(core): invert the rear-axle twist in its own units
simone-contorno Aug 25, 2026
f3eec88
fix(controller): seed the brake from the model's declared inverse
simone-contorno Aug 25, 2026
4a2b253
test(core): pin the two twist mappings against each other
simone-contorno Aug 25, 2026
be69af5
docs(test-models): state the twist-inverse obligation for fixtures
simone-contorno Aug 25, 2026
d7d8a04
test(core): name the horizon-bound case for what it asserts
simone-contorno Aug 25, 2026
298e6eb
feat(core): index the keep-out rows by the declared mapping
simone-contorno Aug 25, 2026
22a3072
feat(controller): drive a permuted model with avoidance on
simone-contorno Aug 25, 2026
3a21501
docs(core): scope the mapping validation to what it indexes
simone-contorno Aug 25, 2026
5e63e43
build: adopt upstream Nav2's package warning policy
simone-contorno Aug 25, 2026
59f3a30
fix(core): rename shadowing setter and lambda parameters
simone-contorno Aug 25, 2026
f443fe8
test(core): suppress a false-positive null-dereference warning
simone-contorno Aug 25, 2026
533da78
fix(controller,tracker): annotate the mutex-guarded perception state
simone-contorno Aug 25, 2026
cedbf76
ci: make the thread-safety analysis job able to fail
simone-contorno Aug 25, 2026
9a2b3b9
test(core): raise the CTest timeout for every core gtest target
simone-contorno Aug 25, 2026
07f584c
docs: cover rcpputils in the third-party license inventory
simone-contorno Aug 25, 2026
a72bbd7
fix(controller): lock predicted_obstacles_ writes in fillObstacles
simone-contorno Aug 25, 2026
988db0a
docs: cover rcutils and rosidl_typesupport_introspection_cpp
simone-contorno Aug 25, 2026
4749d4f
test(benchmark): re-validate the mode-b2 cross-controller table
simone-contorno Aug 26, 2026
7ad4f78
docs: rewrite the controller comparison from the re-validated data
simone-contorno Aug 26, 2026
833b381
fix(benchmark): list proxmpc_pred in every scenario config
simone-contorno Aug 26, 2026
1e170ad
docs(benchmark): re-record two demo grids after a behavior shift
simone-contorno Aug 26, 2026
26c9e1c
test(benchmark): re-run the mode-b1 matrix
simone-contorno Aug 26, 2026
a680584
docs: report the re-run mode-b1 results
simone-contorno Aug 26, 2026
75d0f44
fix(obstacle_tracker): make repeat shutdown signals idempotent
simone-contorno Aug 26, 2026
39c221b
docs: correct the static_box peak-slack reading
simone-contorno Aug 26, 2026
40d1e61
fix(controller): raise the default safety_margin to 0.2
simone-contorno Aug 27, 2026
d212d63
test(benchmark): re-measure proxmpc at safety_margin 0.2
simone-contorno Aug 27, 2026
6d0d91c
docs: revise the comparison for the wider keep-out
simone-contorno Aug 27, 2026
e65c355
docs: correct the RPP collision count on blind_multi_2
simone-contorno Aug 27, 2026
9a97036
test(benchmark): match the keep-out across both proxmpc presets
simone-contorno Aug 27, 2026
fa5b407
test(benchmark): re-measure proxmpc_pred at the matched keep-out
simone-contorno Aug 27, 2026
e47ce5a
docs: revise the comparison for the matched keep-out
simone-contorno Aug 27, 2026
836f388
docs: re-derive the front-page results from the current data
simone-contorno Aug 27, 2026
98ee986
fix(controller): price the obstacle slack at 1000 and restore d_safe
simone-contorno Aug 27, 2026
f01ab03
fix(benchmark): derive the run index from the records on disk
simone-contorno Aug 27, 2026
a826fc0
fix(core): default to one SQP iteration per control cycle
simone-contorno Aug 28, 2026
099deb5
feat(benchmark): record the QP status histogram and iteration maxima
simone-contorno Aug 28, 2026
567dd36
fix(core): keep the shifted control warm start
simone-contorno Aug 28, 2026
90610aa
fix(controller): gate the control box on allow_reversing
simone-contorno Aug 28, 2026
7ddd105
fix(controller): guard both predicted-obstacle reads
simone-contorno Aug 28, 2026
43170d5
fix(controller): scale the footprint veto to the stopping distance
simone-contorno Aug 28, 2026
3b628ae
feat(controller)!: enable predictive obstacle avoidance by default
simone-contorno Aug 28, 2026
9890e49
docs(controller): describe the veto reach and the changed defaults
simone-contorno Aug 28, 2026
76df5bf
feat(core)!: warm start the QP across cycles
simone-contorno Sep 1, 2026
06c72ea
fix(demo): track unknown space on the local costmap
simone-contorno Sep 1, 2026
bef1af9
fix(controller): cap reverse travel when no bound is named
simone-contorno Sep 1, 2026
fbc300d
docs(controller): state the costmap-only fill's single-obstacle limit
simone-contorno Sep 1, 2026
5132c97
chore(release): bump packages to 2.0.0
simone-contorno Sep 1, 2026
9f03146
fix(config): size the keep-out to the real footprint and let the demo…
simone-contorno Sep 2, 2026
0e8406b
fix(controller): advise a robot_radius that clears its own check
simone-contorno Sep 2, 2026
9d0117a
fix(config): absorb the radius correction into the safety margin
simone-contorno Sep 2, 2026
85ea1fc
docs: re-derive the comparison from the 2.0.0 campaigns
simone-contorno Sep 3, 2026
5dac721
docs: keep the Gazebo section to its pending note
simone-contorno Sep 3, 2026
f187deb
feat(controller)!: gate reverse, settle at the goal, yield to movers
simone-contorno Sep 13, 2026
8ed5cd0
feat(demo): enable reverse travel and the obstacle-aware yield
simone-contorno Sep 13, 2026
9935edb
feat(benchmark): cut each clip to the robot's first motion
simone-contorno Sep 13, 2026
76f5922
feat(benchmark): ship the yield and speed cap in the predictive preset
simone-contorno Sep 13, 2026
1ab0af2
docs(media): rebuild the demo and comparison grids
simone-contorno Sep 13, 2026
674a435
docs: re-derive the comparison from the single 2.0.0 campaign
simone-contorno Sep 13, 2026
6324f15
build(benchmark): inventory the pytest test dependency
simone-contorno Sep 13, 2026
52ee87a
docs(contributing): describe the release branch and retire dev
simone-contorno Sep 13, 2026
ff95bda
fix(controller): annotate predicted_obstacles_ as mutex-guarded
simone-contorno Sep 13, 2026
bac264d
docs: re-derive the Gazebo section from a 2.0.0 mode-(a) run
simone-contorno Sep 13, 2026
3d4ed5a
fix(build): stop a libstdc++ false positive failing the build
simone-contorno Sep 13, 2026
dbf9c85
test(controller): reach the veto-skip branch on nav2 1.3.13
simone-contorno Sep 13, 2026
590a7c4
chore(release): bump citation and security policy to 2.0.0
simone-contorno Sep 14, 2026
56810c8
docs: state the 2.0.0 breaks against 1.0.0, not the branch
simone-contorno Sep 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ body:
id: platform
attributes:
label: Platform
description: OS, architecture, and hardware (x86-64 dev host, Jetson Orin, ...).
description: OS, architecture, and hardware.
placeholder: Ubuntu 24.04, x86-64
validations:
required: true
Expand Down
20 changes: 20 additions & 0 deletions .github/asan.supp
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# LeakSanitizer suppressions for the sanitizer CI job. Read through
# LSAN_OPTIONS, not ASAN_OPTIONS: ASan's own suppression parser rejects the
# leak: type and aborts the process.
#
# rosidl's C++ type support registers its message descriptors in static storage
# that is never torn down, and bringing up any rclcpp node reaches it through
# rcl_node_init. The allocations are one-time and process-lifetime rather than
# per-node: the reported total is byte-identical in a 24-test binary and an
# 87-test one, and no prox_mpc frame appears in any of the leak stacks. The
# controller fixtures already call on_cleanup() and then reset(), so there is no
# teardown to add.
#
# Scoped deliberately to those two frames: detect_leaks stays on (see
# ASAN_OPTIONS in .github/workflows/ci.yaml), so a leak in this repository's own
# allocations still fails the job.
#
# print_suppressions=1 reports the hit count per entry, which is how a stale
# entry here is told apart from one that is still doing work.
leak:librosidl_typesupport_cpp
leak:rcl_node_init
76 changes: 76 additions & 0 deletions .github/scripts/check_no_eigen_debug.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
#!/usr/bin/env python3
# Copyright 2026 Simone Contorno
# SPDX-License-Identifier: Apache-2.0

"""Fail if a translation unit was compiled with NDEBUG or EIGEN_NO_DEBUG in effect.

"In effect" means EIGEN_NO_DEBUG is defined and not cancelled by a later -U. The
sanitizer job exists to run with Eigen's own bounds assertions live, which only
holds if the Debug build type keeps NDEBUG unset and the -UEIGEN_NO_DEBUG
carried in CMAKE_CXX_FLAGS actually cancels the -DEIGEN_NO_DEBUG every package
adds at directory scope. This reads the outcome back from compile_commands.json
instead of trusting the cmake-args alone, so the job cannot silently degrade
into a decoration if a future change reorders or drops one of the flags.

Usage: check_no_eigen_debug.py <compile_commands.json glob> [<glob> ...]
"""

import json
import pathlib
import shlex
import sys


def command_args(entry):
"""The argument list of one compile_commands.json entry."""
if 'arguments' in entry:
return entry['arguments']
return shlex.split(entry.get('command', ''))


def problems_for(args):
"""Names for one translation unit's compile flags that violate the contract."""
found = []
if '-DNDEBUG' in args:
found.append('NDEBUG is defined')
eigen_flags = [a for a in args if a in ('-DEIGEN_NO_DEBUG', '-UEIGEN_NO_DEBUG')]
if eigen_flags and eigen_flags[-1] != '-UEIGEN_NO_DEBUG':
found.append('EIGEN_NO_DEBUG is defined and not cancelled by a later -U')
return found


def main(argv):
"""Check every compile_commands.json entry matched by the given globs."""
if not argv:
print('usage: check_no_eigen_debug.py <compile_commands.json glob> [...]', file=sys.stderr)
return 2

failures = []
checked = 0
for pattern in argv:
for path in sorted(pathlib.Path().glob(pattern)):
entries = json.loads(path.read_text())
for entry in entries:
problems = problems_for(command_args(entry))
checked += 1
if problems:
failures.append((entry.get('file', str(path)), problems))

if checked == 0:
print('No compile_commands.json entries found; nothing was checked.', file=sys.stderr)
return 2

if failures:
for file_path, problems in failures:
for problem in problems:
print(f'FAIL: {file_path}: {problem}', file=sys.stderr)
return 1

print(
f'OK: {checked} translation units compiled with NDEBUG unset and '
'EIGEN_NO_DEBUG cancelled by -U.')
return 0


if __name__ == '__main__':
sys.exit(main(sys.argv[1:]))
87 changes: 86 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,91 @@ jobs:
name: lcov-report
path: /ros_ws/coverage_filtered.info

# AddressSanitizer + UndefinedBehaviorSanitizer. EIGEN_NO_DEBUG is defined at
# directory scope in every package (kept there for every ordinary build, to
# keep the solver hot path fast), which silently disables Eigen's own bounds
# assertions. This job rebuilds Debug (Release and RelWithDebInfo both define
# NDEBUG, which Eigen treats as EIGEN_NO_DEBUG on its own) and cancels the
# directory-scope define with a later -U in CMAKE_CXX_FLAGS, so both Eigen's
# assertions and the sanitizers are live at once.
sanitizers:
runs-on: ubuntu-24.04
container:
image: ros:jazzy-ros-base-noble

# Leak detection stays on. The only leaks the suite reports come from
# rosidl's one-time static type-support registration, reached through
# rcl_node_init when a test brings up a node, so those two frames are
# suppressed by name rather than the detector being switched off - a leak in
# this repository's own allocations still fails the job.
#
# The suppressions path goes in LSAN_OPTIONS, not ASAN_OPTIONS: ASan parses
# its own suppressions file against interceptor_name, interceptor_via_fun,
# interceptor_via_lib and odr_violation only, so a leak: entry there makes
# every sanitized process die with "failed to parse suppressions".
#
# The path is the symlink the "Create colcon workspace" step below plants,
# because neither shorthand for the checkout directory survives here: an env
# value is not shell-expanded, so $GITHUB_WORKSPACE would stay literal, and
# ${{ github.workspace }} expands to the runner host's path rather than the
# container's /__w mount (actions/runner#2058). An unreadable suppressions
# file is fatal, so a wrong path fails every sanitized process rather than
# degrading quietly.
env:
ASAN_OPTIONS: detect_leaks=1
LSAN_OPTIONS: suppressions=/ros_ws/src/prox_mpc/.github/asan.supp
UBSAN_OPTIONS: print_stacktrace=1

steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Install dependencies
run: |
apt-get update
apt-get install -y --no-install-recommends \
python3-colcon-common-extensions
rosdep update
rosdep install --from-paths . --ignore-src -y

- name: Create colcon workspace
run: |
mkdir -p /ros_ws/src
ln -s "$GITHUB_WORKSPACE" /ros_ws/src/prox_mpc

- name: Build with AddressSanitizer and UndefinedBehaviorSanitizer
working-directory: /ros_ws
run: |
. /opt/ros/jazzy/setup.sh
colcon build \
--symlink-install \
--cmake-args \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_CXX_FLAGS="-UEIGEN_NO_DEBUG -fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize-recover=all -O1 -g" \
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined" \
-DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address,undefined" \
--no-warn-unused-cli

# Reads the flags actually reaching the compiler back out of
# compile_commands.json, so a future reordering of the flags above
# cannot silently turn this job back into a decoration.
- name: Verify Eigen assertions are live and NDEBUG is unset
working-directory: /ros_ws
run: python3 src/prox_mpc/.github/scripts/check_no_eigen_debug.py "build/*/compile_commands.json"

- name: Test under AddressSanitizer and UndefinedBehaviorSanitizer
working-directory: /ros_ws
run: |
. /opt/ros/jazzy/setup.sh
. install/setup.sh
colcon test --return-code-on-test-failure

- name: Display test results
if: always()
working-directory: /ros_ws
run: colcon test-result --verbose

# Static analysis with Clang Thread Safety Analysis (the controller and tracker
# share state across the executor; TSA catches unguarded access).
clang-tsa:
Expand Down Expand Up @@ -125,5 +210,5 @@ jobs:
CC=clang CXX=clang++ colcon build \
--symlink-install \
--cmake-args \
-DCMAKE_CXX_FLAGS="-Wthread-safety" \
-DCMAKE_CXX_FLAGS="-Wthread-safety -Werror=thread-safety" \
--no-warn-unused-cli
4 changes: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ keywords:
- obstacle avoidance
- mobile robots
license: Apache-2.0
version: 1.0.0
date-released: '2026-07-19'
version: 2.0.0
date-released: '2026-09-13'
references:
- type: software
title: 'ProxSuite: a scalable and efficient QP solver'
Expand Down
28 changes: 24 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ that pattern.

## Commit conventions

- **Branching follows GitHub Flow**: `main` is the stable branch, `dev` is the
integration branch, and topic work happens on `feat/*`, `fix/*`, `chore/*`,
or `test/*` branches merged in via pull request.
- **Branching follows GitHub Flow**: `main` is the stable branch, and topic work
happens on `feat/*`, `fix/*`, `chore/*`, or `test/*` branches merged in via
pull request. A release is prepared on a `release/<version>` branch, which is
squash-merged into `main` so that `main` carries one commit per release; the
release branch is kept, not deleted, because it is where that release's
reviewable and bisectable history lives.
- **Commit messages follow Conventional Commits**, scoped to the package or
area they touch, matching real history in this repo, for example:
- `feat(controller): predictive dynamic-obstacle avoidance and model speed-cap forwarding`
Expand Down Expand Up @@ -142,7 +145,24 @@ that pattern.
Clang and `-Wthread-safety` - it does not run tests, only the
thread-safety-annotated build, so a change to mutex-guarded state in
`prox_mpc_controller` or `prox_mpc_obstacle_tracker` should also be checked
against that build if you touch shared/guarded state.
against that build if you touch shared/guarded state. A third CI job,
`sanitizers`, rebuilds Debug with AddressSanitizer and
UndefinedBehaviorSanitizer and cancels every package's directory-scope
`EIGEN_NO_DEBUG` define, so Eigen's own bounds assertions run alongside the
sanitizers - the ordinary `build-and-test` job cannot see an out-of-range
Eigen access, because `EIGEN_NO_DEBUG` stays defined there for solver-hot-path
performance. Reproduce it locally with:

```bash
colcon build --symlink-install --build-base build_asan --install-base install_asan \
--cmake-args -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_FLAGS="-UEIGEN_NO_DEBUG -fsanitize=address,undefined -fno-omit-frame-pointer -fno-sanitize-recover=all -O1 -g" \
-DCMAKE_EXE_LINKER_FLAGS="-fsanitize=address,undefined" \
-DCMAKE_SHARED_LINKER_FLAGS="-fsanitize=address,undefined" \
--no-warn-unused-cli
UBSAN_OPTIONS=print_stacktrace=1 colcon test --build-base build_asan --install-base install_asan \
--return-code-on-test-failure
```
- **Coverage: aspirational target, not an enforced CI gate.** The house
convention (see the `ros2-testing-ci` skill) targets >= 95% line coverage.
In this repo today, CI generates a filtered `lcov` report
Expand Down
Loading