Smooth the timestamp of TwistStamped messages in velocity_smoother#5861
Merged
SteveMacenski merged 14 commits intoros-navigation:mainfrom Jan 14, 2026
Merged
Smooth the timestamp of TwistStamped messages in velocity_smoother#5861SteveMacenski merged 14 commits intoros-navigation:mainfrom
SteveMacenski merged 14 commits intoros-navigation:mainfrom
Conversation
8 tasks
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 6 files with indirect coverage changes 🚀 New features to boost your workflow:
|
SteveMacenski
requested changes
Jan 13, 2026
SteveMacenski
approved these changes
Jan 14, 2026
Member
|
With that frame_id change, can you also fix the DCO job? |
…p of the smoothed velocity header message Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
…g_time in nav2_velocity_smoother/README.md Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
…meter examples in nav2_bringup Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
…t behavior Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
…smoother Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
…e timestamp), set the values individually. Has the advantage of not writing the timestamp two times. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
1ad1bca to
292ae4c
Compare
SteveMacenski
approved these changes
Jan 14, 2026
Lotusymt
pushed a commit
to Lotusymt/navigation2
that referenced
this pull request
Jan 16, 2026
…os-navigation#5861) * Add new parameter to nav2_velocity_smoother that updates the timestamp of the smoothed velocity header message Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Update parameter description of stamp_smoothed_velocity_with_smoothing_time in nav2_velocity_smoother/README.md Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Add new parameter stamp_smoothed_velocity_with_smoothing_time in parameter examples in nav2_bringup Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Fix lines too long cpplint issues in velocity_smoother.cpp Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Rephrase parameter description for improved clarity Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Rename delta time variable for clarity. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Revert jazzy-related changes to main Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Undo parametrization of smoothing timestamps and make this the default behavior Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Document the change in timestamp smoothing in the README of velocity_smoother Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Remove whitespace on line 322 to pass cpplint checks Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Part 2 of whitespace removals Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Make the smoothing time computation more concise. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Instead of copying the whole header (which copies the frame_id and the timestamp), set the values individually. Has the advantage of not writing the timestamp two times. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> --------- Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
Lotusymt
pushed a commit
to Lotusymt/navigation2
that referenced
this pull request
Jan 16, 2026
…os-navigation#5861) * Add new parameter to nav2_velocity_smoother that updates the timestamp of the smoothed velocity header message Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Update parameter description of stamp_smoothed_velocity_with_smoothing_time in nav2_velocity_smoother/README.md Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Add new parameter stamp_smoothed_velocity_with_smoothing_time in parameter examples in nav2_bringup Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Fix lines too long cpplint issues in velocity_smoother.cpp Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Rephrase parameter description for improved clarity Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Rename delta time variable for clarity. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Revert jazzy-related changes to main Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Undo parametrization of smoothing timestamps and make this the default behavior Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Document the change in timestamp smoothing in the README of velocity_smoother Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Remove whitespace on line 322 to pass cpplint checks Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Part 2 of whitespace removals Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Make the smoothing time computation more concise. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Instead of copying the whole header (which copies the frame_id and the timestamp), set the values individually. Has the advantage of not writing the timestamp two times. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> --------- Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> Signed-off-by: lotusymt <mengtiy5@uci.edu>
Pana1v
pushed a commit
to Arnav-panjla/navigation2
that referenced
this pull request
Feb 21, 2026
…os-navigation#5861) * Add new parameter to nav2_velocity_smoother that updates the timestamp of the smoothed velocity header message Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Update parameter description of stamp_smoothed_velocity_with_smoothing_time in nav2_velocity_smoother/README.md Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Add new parameter stamp_smoothed_velocity_with_smoothing_time in parameter examples in nav2_bringup Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Fix lines too long cpplint issues in velocity_smoother.cpp Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Rephrase parameter description for improved clarity Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Rename delta time variable for clarity. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Revert jazzy-related changes to main Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Undo parametrization of smoothing timestamps and make this the default behavior Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Document the change in timestamp smoothing in the README of velocity_smoother Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Remove whitespace on line 322 to pass cpplint checks Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Part 2 of whitespace removals Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Make the smoothing time computation more concise. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> * Instead of copying the whole header (which copies the frame_id and the timestamp), set the values individually. Has the advantage of not writing the timestamp two times. Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com> --------- Signed-off-by: Andrei Costinescu <andreicostinescu96@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Basic Info
Description of contribution in a few bullet points
builtin-interfaces/msg/Timestamp message header of the TwistStamped cmd_vel output is also smoothed based on the smoothing timeDescription of documentation updates required from your changes
Description of how this change was tested
Similar to #5858
Future work that may be required in bullet points
For Maintainers:
backport-*.