Repository navigation
Use const_cast in map server dirname fallback - #6275
Merged
SteveMacenski merged 2 commits intoJul 22, 2026
Merged
SteveMacenski merged 2 commits into
SteveMacenski merged 2 commits into
Conversation
This upstreams a small RoboStack Windows portability fix for nav2_map_server. The local dirname fallback returns a mutable char pointer but falls back to a static const "." string when no directory separator is present. Using const_cast expresses the intended qualifier conversion without the broader C-style cast used downstream. Origin: patch/ros-rolling-nav2-map-server.win.patch, authored by Daisuke Nishimatsu. Signed-off-by: Tobias Fischer <[email protected]>
Contributor
Author
|
FYI @wep21 and @traversaro: I opened this while upstreaming RoboStack patches tracked in RoboStack/robostack#124. This one comes from |
SteveMacenski
approved these changes
Jul 20, 2026
Contributor
|
Tick the box to add this pull request to the merge queue (same as
|
Member
|
Merging #6281 imminently, check that its been merged, rebase/pull in main and I can merge if CI passes for your work! |
Contributor
Author
|
Have just rebased @SteveMacenski |
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.
This is part of an effort to contribute RoboStack downstream patches back upstream.
Origin:
patch/ros-rolling-nav2-map-server.win.patch, authored by Daisuke Nishimatsu.nav2_map_serverhas a localdirnamefallback for Windows. When the input has no directory separator, it returns a mutable pointer to a static"."fallback string to match the surrounding helper signature. Usingconst_castkeeps the existing behavior while avoiding the broader cast used downstream.