Change layer QoS policy#91
Merged
josephduchesne merged 15 commits intoavidbots:ros2-humblefrom Dec 21, 2022
Merged
Conversation
Fix usage of get_parameter in YamlPreprocessor. Change integer in yaml out-file to floating point number (result of a calculation in lua).
This fixes a problem where rviz doesn't start on time to catch the publish of the layer markers.
|
Important note: In order for this to work, we had to manually set the correct policy in Rviz too. For the map example, it is a dropdown under map settings. The selected policy should be changed to |
josephduchesne
approved these changes
Dec 21, 2022
Collaborator
|
This fix seems fine. In a production context I'd be a little worried about massive debug messages hanging around, but for the simulator I think it's acceptable. |
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.
A problem showed up during the migration of the
turtlebot_flatlandproject to Ros2: the World layer wasn't showing up.Apparently, in Ros1 the last x published messages would be saved for late-joining subscribers (not sure about the exact mechanic). In Ros2, this is a configurable setting managed with the new QoS settings, more specifically, the Durability setting.
The problem is caused by the
flatland_serverpublishing the layers' markers too fast for rviz to catch them.The small change in this commit (setting the durability QoS policy) fixes the problem, without resorting to always re-publishing layer information (currently it only publishes when there's a change).