Skip to content

Conversation

@evan-palmer
Copy link
Member

Changes Made

This PR removes the deprecated unlockAndPublish API.

Testing

Testing was done using the controller demos.

@evan-palmer evan-palmer self-assigned this Jul 22, 2025
@evan-palmer evan-palmer requested a review from Copilot July 22, 2025 22:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the ROS2 controller codebase by replacing the deprecated unlockAndPublish API with the newer try_publish method across all controller implementations.

  • Updates all controller classes to use try_publish instead of unlockAndPublish
  • Refactors publisher state management by moving from lock-based message updates to direct state variable updates
  • Increments version numbers across all packages to 0.3.2 to reflect the API migration

Reviewed Changes

Copilot reviewed 40 out of 40 changed files in this pull request and generated no comments.

Show a summary per file
File Description
whole_body_controllers/* Updates IK controller to use new publishing API and type aliases
velocity_controllers/* Migrates sliding mode controllers from lock-based to direct state publishing
thruster_controllers/* Updates thruster controllers to use try_publish method
thruster_allocation_matrix_controller/* Replaces deprecated API in allocation matrix controller
end_effector_trajectory_controller/* Updates trajectory controller publishing mechanism
topic_sensors/* Version bump only, no code changes
ik_solvers/* Version bump only, no code changes
controller_coordinator/* Version bump only, no code changes
controller_common/* Version bump only, no code changes
auv_controllers/* Version bump only, no code changes
auv_control_msgs/* Version bump only, no code changes
auv_control_demos/* Version bump only, no code changes
Comments suppressed due to low confidence (1)

thruster_controllers/src/gz_passthrough_controller.cpp:141

  • [nitpick] The empty line at line 141 appears unnecessary and should be removed for better code consistency with other similar files in this PR.
  rt_controller_state_pub_->try_publish(controller_state_);

@evan-palmer evan-palmer merged commit f4b6661 into main Jul 22, 2025
2 of 3 checks passed
@evan-palmer evan-palmer deleted the dev-deprecations branch July 22, 2025 23:08
mergify bot pushed a commit that referenced this pull request Jul 22, 2025
* deprecate old realtime api

* update changelog and versions

* forgot one

* address comments

(cherry picked from commit f4b6661)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants