Skip to content

Fix the message header timestamp of the velocity_smoother, when the input timed out#4959

Merged
SteveMacenski merged 1 commit intoros-navigation:mainfrom
georgflick:fix_velocity_smoother_timeout
Mar 5, 2025
Merged

Fix the message header timestamp of the velocity_smoother, when the input timed out#4959
SteveMacenski merged 1 commit intoros-navigation:mainfrom
georgflick:fix_velocity_smoother_timeout

Conversation

@georgflick
Copy link
Contributor


Basic Info

Info Please fill out this column
Ticket(s) this addresses None
Primary OS tested on Ubuntu
Robotic platform tested on None
Does this PR contain AI generated software? No

Description of contribution in a few bullet points

  • Populate the header stamp of the TwistStamped message with the actual time, in the case that the velocity command times out and sends zero velocities to stop the robot.

Description of documentation updates required from your changes

  • Not needed

Description of how this change was tested

  • Checked in simulation using ros2 topic echo /cmd_vel_smoothed , that the header.stamp is always populated by a timestamp and not zero at the end of a path or after cancelling a path

For Maintainers:

  • Check that any new parameters added are updated in docs.nav2.org
  • Check that any significant change is added to the migration guide
  • Check that any new features OR changes to existing behaviors are reflected in the tuning guide
  • Check that any new functions have Doxygen added
  • Check that any new features have test coverage
  • Check that any new plugins is added to the plugins page
  • If BT Node, Additionally: add to BT's XML index of nodes for groot, BT package's readme table, and BT library lists

…d out.

Signed-off-by: Georg Flick <georg.flick@enway.ai>
@codecov
Copy link

codecov bot commented Mar 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
nav2_velocity_smoother/src/velocity_smoother.cpp 93.53% <100.00%> (+0.02%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@SteveMacenski SteveMacenski left a comment

Choose a reason for hiding this comment

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

Nice, I think this does it perfectly, thanks for the PR!

@SteveMacenski SteveMacenski merged commit bace7fd into ros-navigation:main Mar 5, 2025
11 checks passed
SteveMacenski pushed a commit that referenced this pull request Apr 15, 2025
…d out. (#4959)

Signed-off-by: Georg Flick <georg.flick@enway.ai>
SteveMacenski added a commit that referenced this pull request Apr 15, 2025
* Add short delay before lookup transform in polygon test (#4939)

* Add short delay before lookup transform

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Fix linting

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

---------

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>

* Populate stamped command message with now timestamp, if velocity timed out. (#4959)

Signed-off-by: Georg Flick <georg.flick@enway.ai>

* Integrate ClearCostmapExceptRegion and ClearCostmapAroundRobot Services into the API (#4962)

* Add ClearCostmapExceptRegion and ClearCostmapAroundRobot services to BasicNavigator API

Signed-off-by: BCKSELFDRIVEWORLD <bckselfdrive@gmail.com>

* typo ament_flake8

Signed-off-by: BCKSELFDRIVEWORLD <bckselfdrive@gmail.com>

* type fix ament_flake

Signed-off-by: BCKSELFDRIVEWORLD <bckselfdrive@gmail.com>

---------

Signed-off-by: BCKSELFDRIVEWORLD <bckselfdrive@gmail.com>

* Fix urls in node hybrid (#4973)

Signed-off-by: mattbooker <mattbooker97@gmail.com>

* Use main function to replace global variable in gtest. (#4978)

Signed-off-by: ChenYing Kuo <evshary@gmail.com>

* nav2_behavior_tree: fix input port parsing error in AreErrorCodesPresent (#4986)

The getInput method does not support std::set<uint16_t> parsing. So,
let's replace the type of the input port by std::vector<int> which is
supported, and convert the list to a std::set<uint16_t>.

This commit fixes issue #4985.

Signed-off-by: Dylan De Coeyer <dylan.decoeyer@quimesis.be>

* Change to goal checker orientation for yaw angle (#4988)

- Fixed discrepancy in goal checker orientation, which was checking for
< tolerance instead of <= tolerance, as all the other limit checks are.
- Reduced tolerance time for the progress checker unit tests to
0.1 seconds, to reduce test runtime from ~17 to ~7 seconds.

Signed-off-by: Rasmus Larsson <rasmus.larsson@accenture.com>

* Declare_parameter_if_not_declared in docking navigator (#5023)

Signed-off-by: Alberto Tudela <ajtudela@gmail.com>

* bumping to 1.3.6 for release

Signed-off-by: Steve Macenski <stevenmacenski@gmail.com>

---------

Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Signed-off-by: Georg Flick <georg.flick@enway.ai>
Signed-off-by: BCKSELFDRIVEWORLD <bckselfdrive@gmail.com>
Signed-off-by: mattbooker <mattbooker97@gmail.com>
Signed-off-by: ChenYing Kuo <evshary@gmail.com>
Signed-off-by: Dylan De Coeyer <dylan.decoeyer@quimesis.be>
Signed-off-by: Rasmus Larsson <rasmus.larsson@accenture.com>
Signed-off-by: Alberto Tudela <ajtudela@gmail.com>
Signed-off-by: Steve Macenski <stevenmacenski@gmail.com>
Co-authored-by: mini-1235 <58433591+mini-1235@users.noreply.github.com>
Co-authored-by: Georg Flick <54032815+georgflick@users.noreply.github.com>
Co-authored-by: Burak Can Kaya <146545020+BCKSELFDRIVEWORLD@users.noreply.github.com>
Co-authored-by: Matthew Booker <mattbooker97@gmail.com>
Co-authored-by: ChenYing Kuo (CY) <evshary@gmail.com>
Co-authored-by: DylanDeCoeyer-Quimesis <102609575+DylanDeCoeyer-Quimesis@users.noreply.github.com>
Co-authored-by: RasmusLar <101558931+RasmusLar@users.noreply.github.com>
Co-authored-by: Alberto Tudela <ajtudela@gmail.com>
stevedanomodolor pushed a commit to stevedanomodolor/navigation2 that referenced this pull request Apr 29, 2025
…d out. (ros-navigation#4959)

Signed-off-by: Georg Flick <georg.flick@enway.ai>
Signed-off-by: stevedanomodolor <stevedan.o.omodolor@gmail.com>
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.

2 participants