Skip to content

fix(velocity_smoother): receive the latched external velocity limit - #141

Merged
kotaro-hihara merged 1 commit into
v4.4.0.1-hotfixfrom
fix/v4.4.0.1-hotfix/external_velocity_limit_initial_max_vel
Oct 20, 2026
Merged

kotaro-hihara merged 1 commit into
v4.4.0.1-hotfixfrom
fix/v4.4.0.1-hotfix/external_velocity_limit_initial_max_vel

Conversation

@kotaro-hihara

Copy link
Copy Markdown

The selector publishes max_vel with transient_local durability, so this subscription must use the same QoS to receive it at startup.

related to this PR

Description

velocity_smoother subscribed to ~/input/external_velocity_limit_mps with the default volatile QoS. The external velocity limit selector now publishes max_vel once with rclcpp::QoS{1}.transient_local(), and a volatile subscriber does not receive that sample if it starts later. This changes the subscription to the same QoS so the smoother receives the latched limit at startup.

Related links

Parent Issue:

  • Link

related to tier4/autoware_universe#3628

How was this PR tested?

  • Built autoware_velocity_smoother locally.
  • Runtime check is together with the universe PR above: /planning/scenario_planning/max_velocity is published once at startup, and this node still receives max_vel.

Notes for reviewers

The topic name and message type are unchanged. Only the subscription durability changes from volatile to transient_local. A publisher that stays volatile will no longer match this subscription.

Interface changes

QoS only. ~/input/external_velocity_limit_mps (autoware_internal_planning_msgs/msg/VelocityLimit) is now rclcpp::QoS{1}.transient_local() instead of the default volatile QoS.

Effects on system behavior

On the rule-based path, velocity_smoother receives the selector's startup max_vel instead of missing it until a later limit message is published.

The selector publishes max_vel with transient_local durability, so this subscription must use the same QoS to receive it at startup.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kotaro-hihara
kotaro-hihara merged commit 138bbda into v4.4.0.1-hotfix Oct 20, 2026
@kotaro-hihara
kotaro-hihara deleted the fix/v4.4.0.1-hotfix/external_velocity_limit_initial_max_vel branch October 20, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants