Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release

on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+*"

permissions:
contents: write

jobs:
release:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7
with:
fetch-depth: 0

- name: Setup Python
uses: actions/setup-python@v7
with:
python-version: "3.14"

- name: Verify tag matches package versions
shell: python
run: |
import os
import pathlib
import sys
import xml.etree.ElementTree as ET

tag = os.environ["GITHUB_REF_NAME"]
mismatched = []
for manifest in sorted(pathlib.Path(".").glob("*/package.xml")):
version = ET.parse(manifest).getroot().findtext("version")
if version != tag:
mismatched.append((manifest, version))

for manifest, version in mismatched:
print(f"::error file={manifest}::Tag {tag} does not match package version {version}")
if mismatched:
sys.exit(1)

- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: |
prerelease=""
case "${GITHUB_REF_NAME}" in *-*) prerelease="--prerelease" ;; esac
gh release create "${GITHUB_REF_NAME}" \
--generate-notes --verify-tag ${prerelease}
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.291
rev: v0.17.3
hooks:
- id: ruff
args: ["--fix", "--exit-non-zero-on-fix"]

- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
rev: v2.4.3
hooks:
- id: codespell

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
rev: v23.1.3
hooks:
- id: clang-format
types_or: [c++, c]

- repo: https://github.com/BlankSpruce/gersemi
rev: 0.21.0
- repo: https://github.com/BlankSpruce/gersemi-pre-commit
rev: 0.29.2
hooks:
- id: gersemi

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand Down
2 changes: 2 additions & 0 deletions auv_control_demos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog for package auv_control_demos

## 0.5.2 (2026-11-03)

## 0.5.1 (2026-08-14)

- Declares the missing `rclpy` dependency
Expand Down
2 changes: 1 addition & 1 deletion auv_control_demos/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package format="3">

<name>auv_control_demos</name>
<version>0.5.1</version>
<version>0.5.2</version>
<description>Example package that includes demos for using auv_controllers in individual and chained modes</description>

<maintainer email="evanp922@gmail.com">Evan Palmer</maintainer>
Expand Down
2 changes: 2 additions & 0 deletions auv_control_msgs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog for package auv_control_msgs

## 0.5.2 (2026-11-03)

## 0.5.1 (2026-08-14)

- Declares the missing `builtin_interfaces` dependency
Expand Down
2 changes: 1 addition & 1 deletion auv_control_msgs/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package format="3">

<name>auv_control_msgs</name>
<version>0.5.1</version>
<version>0.5.2</version>
<description>Custom messages for AUV controllers</description>

<maintainer email="evanp922@gmail.com">Evan Palmer</maintainer>
Expand Down
4 changes: 4 additions & 0 deletions auv_controllers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for package auv_controllers

## 0.5.2 (2026-11-03)

- Adds the missing `controller_coordinator`, `impedance_controller`, and `trajectory_controllers` dependencies

## 0.5.1 (2026-08-14)

## 0.5.0 (2026-05-29)
Expand Down
5 changes: 4 additions & 1 deletion auv_controllers/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package format="3">

<name>auv_controllers</name>
<version>0.5.1</version>
<version>0.5.2</version>
<description>Meta package for auv_controllers</description>

<maintainer email="evanp922@gmail.com">Evan Palmer</maintainer>
Expand All @@ -18,10 +18,13 @@

<exec_depend>auv_control_msgs</exec_depend>
<exec_depend>controller_common</exec_depend>
<exec_depend>controller_coordinator</exec_depend>
<exec_depend>ik_solvers</exec_depend>
<exec_depend>impedance_controller</exec_depend>
<exec_depend>thruster_allocation_matrix_controller</exec_depend>
<exec_depend>thruster_controllers</exec_depend>
<exec_depend>topic_sensors</exec_depend>
<exec_depend>trajectory_controllers</exec_depend>
<exec_depend>twist_controllers</exec_depend>
<exec_depend>whole_body_controllers</exec_depend>

Expand Down
4 changes: 4 additions & 0 deletions controller_common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog for package controller_common

## 0.5.2 (2026-11-03)

- Adds `common::interfaces` helpers for creating, reading, and resetting reference interfaces

## 0.5.1 (2026-08-14)

## 0.5.0 (2026-05-29)
Expand Down
4 changes: 3 additions & 1 deletion controller_common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ find_package(rclcpp REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(nav_msgs REQUIRED)
find_package(auv_control_msgs REQUIRED)
find_package(hardware_interface REQUIRED)

add_library(controller_common SHARED)
target_sources(
Expand All @@ -31,6 +32,7 @@ target_link_libraries(
${geometry_msgs_TARGETS}
${nav_msgs_TARGETS}
${auv_control_msgs_TARGETS}
hardware_interface::hardware_interface
)

install(
Expand All @@ -43,6 +45,6 @@ install(
)

ament_export_targets(export_controller_common HAS_LIBRARY_TARGET)
ament_export_dependencies("rclcpp" "geometry_msgs" "nav_msgs" "auv_control_msgs")
ament_export_dependencies("rclcpp" "geometry_msgs" "nav_msgs" "auv_control_msgs" "hardware_interface")

ament_package()
20 changes: 20 additions & 0 deletions controller_common/include/controller_common/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@

#pragma once

#include <string>
#include <vector>

#include "auv_control_msgs/msg/impedance_command.hpp"
#include "geometry_msgs/msg/pose.hpp"
#include "geometry_msgs/msg/twist.hpp"
#include "geometry_msgs/msg/wrench.hpp"
#include "hardware_interface/handle.hpp"
#include "nav_msgs/msg/odometry.hpp"

namespace common
Expand Down Expand Up @@ -75,4 +77,22 @@ auto isclose(double a, double b, double rtol = 1e-05, double atol = 1e-08) -> bo

} // namespace math

namespace interfaces
{

/// Create a reference interface `<prefix>/<name>` for a chainable controller, initialized to NaN.
auto make_reference_interface(const std::string & prefix, const std::string & name)
-> hardware_interface::CommandInterface::SharedPtr;

/// Read the values of the interfaces into `values` without blocking.
/// Values that cannot be read (e.g., because the interface is locked) are left unchanged.
auto read_values(
const std::vector<hardware_interface::CommandInterface::SharedPtr> & interfaces,
std::vector<double> & values) -> void;

/// Write `value` to all interfaces without blocking.
auto fill(const std::vector<hardware_interface::CommandInterface::SharedPtr> & interfaces, double value) -> void;

} // namespace interfaces

} // namespace common
3 changes: 2 additions & 1 deletion controller_common/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package format="3">

<name>controller_common</name>
<version>0.5.1</version>
<version>0.5.2</version>
<description>Common interfaces for controllers used in this project</description>

<maintainer email="evanp922@gmail.com">Evan Palmer</maintainer>
Expand All @@ -20,6 +20,7 @@
<depend>geometry_msgs</depend>
<depend>nav_msgs</depend>
<depend>auv_control_msgs</depend>
<depend>hardware_interface</depend>

<export>
<build_type>ament_cmake</build_type>
Expand Down
37 changes: 37 additions & 0 deletions controller_common/src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@

#include <cmath>
#include <limits>
#include <memory>
#include <ranges>
#include <tuple>

namespace common
{
Expand Down Expand Up @@ -207,4 +210,38 @@ auto isclose(double a, double b, double rtol, double atol) -> bool

} // namespace math

namespace interfaces
{

auto make_reference_interface(const std::string & prefix, const std::string & name)
-> hardware_interface::CommandInterface::SharedPtr
{
hardware_interface::InterfaceInfo info;
info.name = name;
auto interface =
std::make_shared<hardware_interface::CommandInterface>(hardware_interface::InterfaceDescription(prefix, info));
std::ignore = interface->set_value(nan);
return interface;
}

auto read_values(
const std::vector<hardware_interface::CommandInterface::SharedPtr> & interfaces,
std::vector<double> & values) -> void
{
for (auto && [interface, value] : std::views::zip(interfaces, values)) {
if (const auto v = interface->get_optional(); v.has_value()) {
value = v.value();
}
}
}

auto fill(const std::vector<hardware_interface::CommandInterface::SharedPtr> & interfaces, double value) -> void
{
for (const auto & interface : interfaces) {
std::ignore = interface->set_value(value);
}
}

} // namespace interfaces

} // namespace common
2 changes: 2 additions & 0 deletions controller_coordinator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog for package controller_coordinator

## 0.5.2 (2026-11-03)

## 0.5.1 (2026-08-14)

## 0.5.0 (2026-05-29)
Expand Down
12 changes: 11 additions & 1 deletion controller_coordinator/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,17 @@ target_link_libraries(

install(
TARGETS controller_coordinator controller_coordinator_parameters
DESTINATION lib/controller_coordinator
EXPORT export_controller_coordinator
RUNTIME DESTINATION lib/controller_coordinator
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

ament_export_targets(export_controller_coordinator HAS_LIBRARY_TARGET)
ament_export_dependencies(
"rclcpp"
"controller_manager_msgs"
"std_srvs"
)

ament_package()
2 changes: 1 addition & 1 deletion controller_coordinator/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package format="3">

<name>controller_coordinator</name>
<version>0.5.1</version>
<version>0.5.2</version>
<description>A high-level node used to load and activate/deactivate control systems</description>

<maintainer email="evanp922@gmail.com">Evan Palmer</maintainer>
Expand Down
2 changes: 2 additions & 0 deletions ik_solvers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Changelog for package ik_solvers

## 0.5.2 (2026-11-03)

## 0.5.1 (2026-08-14)

- Declares the `python3-numpy` build dependency required by Pinocchio's Python bindings
Expand Down
2 changes: 1 addition & 1 deletion ik_solvers/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<package format="3">

<name>ik_solvers</name>
<version>0.5.1</version>
<version>0.5.2</version>
<description>Inverse kinematics solvers used for whole-body control</description>

<maintainer email="evanp922@gmail.com">Evan Palmer</maintainer>
Expand Down
5 changes: 3 additions & 2 deletions ik_solvers/src/task_priority_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,9 @@ auto TaskPriorityIKSolver::solve_ik(const Eigen::Isometry3d & goal, const Eigen:
const double joint_limit_gain = params_.joint_limit_task.constrained_joints_map[joint_name].gain;

// insert the joint limit constraint
hierarchy_.insert(std::make_shared<hierarchy::JointConstraint>(
model_, primal, ub, lb, tol, activation, joint_name, joint_limit_gain));
hierarchy_.insert(
std::make_shared<hierarchy::JointConstraint>(
model_, primal, ub, lb, tol, activation, joint_name, joint_limit_gain));
}

// find the safe solutions and choose the one with the smallest norm
Expand Down
5 changes: 5 additions & 0 deletions impedance_controller/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog for package impedance_controller

## 0.5.2 (2026-11-03)

- Exports reference interfaces with `on_export_reference_interfaces_list`, replacing the `on_export_reference_interfaces` API removed upstream
- Replaces the deprecated `RealtimeBuffer` with `RealtimeThreadSafeBox`

## 0.5.1 (2026-08-14)

- Declares dependencies that were previously pulled in transitively
Expand Down
Loading
Loading