Skip to content

Conversation

@Timple
Copy link
Contributor

@Timple Timple commented Nov 6, 2025

This pushes out all other logs. I think once every 5 seconds is enough to catch the eye.

@codecov
Copy link

codecov bot commented Nov 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
...map_2d/include/nav2_costmap_2d/layered_costmap.hpp 100.00% <ø> (ø)
nav2_costmap_2d/src/costmap_2d_ros.cpp 86.54% <100.00%> (-0.27%) ⬇️
nav2_costmap_2d/src/layered_costmap.cpp 96.63% <100.00%> (+0.17%) ⬆️

... and 16 files with indirect coverage changes

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

@Timple Timple force-pushed the ssht branch 2 times, most recently from 14b02ec to e6f9f55 Compare November 10, 2025 07:10
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 generally agree with you, but I don't love exposing ROS at increasingly lower levels than already done so. There's only a single log that is using the throttle and its in a situation that should, practically speaking, never happen except in a poor situation.

Can you provide some motivating feedback about why you're seeing so much logging like this that a change like this is necessary -- and the cause of the error cannot be fixed?

Sorry for the delay - ROSCon + vacation and all that jazz 😄

}

LayeredCostmap::LayeredCostmap(std::string global_frame, bool rolling_window, bool track_unknown)
: LayeredCostmap(rclcpp::get_logger("nav2_costmap_2d"), rclcpp::Clock{RCL_ROS_TIME}, global_frame,
Copy link
Member

@SteveMacenski SteveMacenski Nov 18, 2025

Choose a reason for hiding this comment

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

I don't think there's a sane default for the clock type like this. I think this needs to always be a real clock if a clock is used. That's an argument - to me - to change the constructor of LayeredCostmap to have the clock/logger fields at the end in the existing constructor rather than adding a new one. If we're adding it, make it strictly required since there's no sane workaround.

@Timple
Copy link
Contributor Author

Timple commented Nov 18, 2025

I generally agree with you, but I don't love exposing ROS at increasingly lower levels than already done so. There's only a single log that is using the throttle

Yes, that was my original feeling as well. So we might as well leave this PR to it's first commit?

and the cause of the error cannot be fixed?

It can and it's already fixed. But the terminal output was scrolling up fast so I had to scroll a lot to get to the rootcause 😄

I don't feel strongly about this PR. But in general I don't like log spams so I fixed it. We can

A) Drag in the logger and the clock.
B) Keep it at the first commit and simply construct the clock only in rare scenarios.
C) Drop this PR alltogether.

@SteveMacenski
Copy link
Member

SteveMacenski commented Nov 19, 2025

B) Keep it at the first commit and simply construct the clock only in rare scenarios.

I like this one. Lets just do this. With my long term planning surrounding costmaps, I don't want to invest too much time in Costmap2D but I also don't want to muddle it up more than it already is 😆

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
@mergify
Copy link
Contributor

mergify bot commented Nov 20, 2025

@Timple, your PR has failed to build. Please check CI outputs and resolve issues.
You may need to rebase or pull in main due to API changes (or your contribution genuinely fails).

@SteveMacenski SteveMacenski merged commit 4d29041 into ros-navigation:main Nov 20, 2025
12 of 13 checks passed
decwest pushed a commit to decwest/navigation2 that referenced this pull request Dec 10, 2025
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
decwest pushed a commit to decwest/navigation2 that referenced this pull request Dec 11, 2025
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Signed-off-by: Decwest <fumiyaonishi1016@gmail.com>
SteveMacenski pushed a commit that referenced this pull request Jan 24, 2026
Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
SteveMacenski added a commit that referenced this pull request Jan 24, 2026
* No need to spam the logs (#5674)

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>

* Conditionally call onLoop based on node status (#5700)

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

* Allow for no progress checkers to be configured (#5701)

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

* Fix: wait for drive_on_heading_client instead of backup_client (#5724)

The basic navigator was waiting for the backup_client in the
driveOnHeading function.

Signed-off-by: agennart <antoine.gennart@quimesis.be>
Co-authored-by: agennart <antoine.gennart@quimesis.be>

* Fix: reset controller_server loop_rate when missed desired rate #5712 (#5723)

When a single iteration takes longer than the expected period,
this impacts the next iterations behavior since they will have
less time to perform the control logic, thus increasing the actual
controller_frequency. By resetting the loop_rate on sleep() failure,
this ensures that each iteration will have a full period to exectue its
logic.

Signed-off-by: agennart <antoine.gennart@quimesis.be>
Co-authored-by: agennart <antoine.gennart@quimesis.be>

* temporary fix bug null pointer (#5749)

* temporary fix bug null pointer

Signed-off-by: suifengersan123 <yangabc810@gmail.com>

* add return

Signed-off-by: suifengersan123 <yangabc810@gmail.com>

* remove return

Signed-off-by: suifengersan123 <yangabc810@gmail.com>

---------

Signed-off-by: suifengersan123 <yangabc810@gmail.com>

* fix: change warning to exception when goal poses cannot be transformed (#5759)

- Replace RCLCPP_WARN with std::runtime_error exception in onPreempt method
- Remove bt_action_server_->terminatePendingGoal() call after accepting goal
- Add required stdexcept include for exception handling

Fixes issue where navigators accept pending goal but are not properly
terminated if rejected during goal pose transformation.

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

* Update obstacle layer usage of max ranges (#5697)

* Use cell distance for obstacle marking max range

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* Don't raytrace clear the cell containing the current observation

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* Add tests for max marking and clearing ranges

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* Fix cpplint failures

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* Fix distance calculation

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* fix casting, formatting

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* check origin is in map, update CMakeLists

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* use hypot instead of squared dist

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* Move origin calc out of loop

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* Revert don't raytrace observation cell

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* Revert don't raytrace origin if it is observation cell

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* Remove new line

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

---------

Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>

* [mppi] Don't reset zone-based speed limits (#5768)

* [mppi] Don't reset zone-based speed limits

Signed-off-by: Adi Vardi <adi.vardi@enway.ai>

* [mppi] update motion model params from speed_limit

Signed-off-by: Adi Vardi <adi.vardi@enway.ai>

* fix linting issue

Signed-off-by: Adi Vardi <adi.vardi@enway.ai>

* Revert: reset speed limits after param change

Signed-off-by: Adi Vardi <adi.vardi@enway.ai>

---------

Signed-off-by: Adi Vardi <adi.vardi@enway.ai>

* Bugfix inactive publishers (#5748)

* Do not publish costmap unless active

Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>

* Fix style

Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>

* Fix typo

Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>

* Use layers isEnabled() to prevent publishing

Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>

* Fix style

Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>

* Add missing include for CostmapLayer type

Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>

* Remove extra scoping

Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>

---------

Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>
Co-authored-by: Christopher Thompson <cthompson@metalsharkboats.com>

* Fix MAX_NON_OBSTACLE_COST in theta star planner (#5865)

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

* Bump jazzy to 1.3.11 for release

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

---------

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Signed-off-by: Steve Macenski <stevenmacenski@gmail.com>
Signed-off-by: SteveMacenski <stevenmacenski@gmail.com>
Signed-off-by: agennart <antoine.gennart@quimesis.be>
Signed-off-by: suifengersan123 <yangabc810@gmail.com>
Signed-off-by: Simon Dathan <simon.dathan@kudan.eu>
Signed-off-by: Adi Vardi <adi.vardi@enway.ai>
Signed-off-by: Christopher Thompson <cthompson@metalsharkboats.com>
Signed-off-by: mini-1235 <mauricepurnawan@gmail.com>
Co-authored-by: Tim Clephas <tim.clephas@nobleo.nl>
Co-authored-by: Saitama <gennartan@users.noreply.github.com>
Co-authored-by: agennart <antoine.gennart@quimesis.be>
Co-authored-by: suifengersan123 <136066397+suifengersan123@users.noreply.github.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
Co-authored-by: Simon Dathan <simon.dathan@kudan.eu>
Co-authored-by: Adi Vardi <57910756+adivardi@users.noreply.github.com>
Co-authored-by: Christopher Thompson <pele1410@gmail.com>
Co-authored-by: Christopher Thompson <cthompson@metalsharkboats.com>
Co-authored-by: Maurice Alexander Purnawan <mauricepurnawan@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.

3 participants