Fix for Quality of Service (QoS) settings incompatibility between Gazebo plugin and depthimage_to_laserscan package #74
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.
Hello Maintainers,
I've recently encountered an issue while using the depthimage_to_laserscan package in the context of the ROS2 Galactic distribution: https://answers.ros.org/question/417736/depth_image_to_laserscan-not-publishing-to-kinect_scan-topic-in-ros2-galactic/?answer=417845#post-id-417845
The problem arose due to a mismatch in the Quality of Service (QoS) settings between the Gazebo depth camera plugin publisher and the subscriber in the depthimage_to_laserscan package.
The Gazebo plugin uses a Best Effort QoS policy for publishing depth camera images, while the depthimage_to_laserscan package, by default, subscribes with a Reliable QoS policy. This mismatch was causing the depthimage_to_laserscan package to not receive any messages from the Gazebo publisher.
To fix this issue, I modified the QoS policy used by the depthimage_to_laserscan subscriber to Best Effort. This change aligns the QoS policy of the depthimage_to_laserscan package with that of the Gazebo publisher, thereby enabling successful communication.
I believe this fix is important as it allows the depthimage_to_laserscan package to function correctly with standard Gazebo plugins in newer ROS2 distributions like Galactic. This will benefit many developers and researchers who rely on this functionality for their projects and increase the overall compatibility of the package with the ROS2 ecosystem.
Thank you for considering my pull request. I look forward to your feedback.