Skip to content

fixing static layer update bounds with different fram #5194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

2linkthefire
Copy link

@2linkthefire 2linkthefire commented May 27, 2025


Basic Info

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

Description of contribution in a few bullet points

Fix incomplete update bounds issue for static layers if global frame has rotation with map frame.

Description of how this change was tested

Fixed and tested in ROS1 navigation package on my physical robot platform in production for 1 week, migrated to ROS2.


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

@2linkthefire 2linkthefire force-pushed the main branch 5 times, most recently from 31c87c5 to 000863d Compare May 27, 2025 06:18
@tonynajjar
Copy link
Contributor

Does this try to fix the same thing as #4911?

Signed-off-by: 2linkthefire <byepanda@163.com>
Copy link

codecov bot commented May 27, 2025

Codecov Report

Attention: Patch coverage is 28.00000% with 18 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
nav2_costmap_2d/plugins/static_layer.cpp 28.00% 18 Missing ⚠️
Files with missing lines Coverage Δ
nav2_costmap_2d/plugins/static_layer.cpp 68.90% <28.00%> (-5.53%) ⬇️

... and 8 files with indirect coverage changes

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

@2linkthefire
Copy link
Author

Does this try to fix the same thing as #4911?

Not exactly. This is a basic map range error that existed in ros1. The footprint clearing function mentioned in this question seems to be a new addition to ros2.

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.

I think this is correct, but how did you test / validate this?

There's also alot of untested code if you look at the codecov annotations - please fill these gaps with an integration test

Generally this looks good to me and I have no notes

@SteveMacenski
Copy link
Member

@2linkthefire any update? :-)

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