Add static cast for buffer data + force C++-17#92
Draft
luca-della-vedova wants to merge 2 commits intomainfrom
Draft
Add static cast for buffer data + force C++-17#92luca-della-vedova wants to merge 2 commits intomainfrom
luca-della-vedova wants to merge 2 commits intomainfrom
Conversation
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Signed-off-by: Luca Della Vedova <lucadv@intrinsic.ai>
Member
Author
|
We should probably revert the hacky C++-17 change but it is pending a fix on rmf_websocket itself to have it C++-20 compatible. Marking as draft for now. |
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.
Bug fix
Fixed bug
Fixes builds on rolling.
Fix applied
Rolling builds for
rmf_visualization_floorplanshave been failing with this kind of error (from buildfarm):The issue seems to be due to the new
Bufferintroduced inrosidl, meant to be an abstraction for a CPU or GPU buffer.It seems it can be implicitly converted do its inner
std::vector(ref), so I just added astatic_castto the inner vector type. This should:Hence this should fix rolling builds without breaking compatibility with older ROS distros.
Furthermore,
rmf_visualization_schedulebuilds are broken for a reason similar to rmf_websocket, with the difference that here it seems a transitive target is forcing the CXX version, so we need to override it.Test it!
Build it under rolling (you will need to build rolling from source since it's not released yet), then build it under Jazzy.
GenAI Use
We follow OSRA's policy on GenAI tools