Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecated QoS warnings #69

Merged
merged 2 commits into from
Jan 29, 2024
Merged

Fix deprecated QoS warnings #69

merged 2 commits into from
Jan 29, 2024

Conversation

arjo129
Copy link
Member

@arjo129 arjo129 commented Jan 26, 2024

Currently the building visualization system issues the following warnings on humble.

[rmf_visualization_building_systems-6] [INFO] [1706257149.805404052] [building_systems_visualizer]: Building systems visualizer started...
[rmf_visualization_building_systems-6] /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/qos.py:307: UserWarning: HistoryPolicy.RMW_QOS_POLICY_HISTORY_KEEP_LAST is deprecated. Use HistoryPolicy.KEEP_LAST instead.
[rmf_visualization_building_systems-6]   warnings.warn(
[rmf_visualization_building_systems-6] /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/qos.py:307: UserWarning: ReliabilityPolicy.RMW_QOS_POLICY_RELIABILITY_RELIABLE is deprecated. Use ReliabilityPolicy.RELIABLE instead.
[rmf_visualization_building_systems-6]   warnings.warn(
[rmf_visualization_building_systems-6] /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/qos.py:307: UserWarning: DurabilityPolicy.RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL is deprecated. Use DurabilityPolicy.TRANSIENT_LOCAL instead.
[rmf_visualization_building_systems-6]   warnings.warn(

This PR migrates away towards the newer API.

Currently the building visualization system issues the following
warnings on humble.
```
[rmf_visualization_building_systems-6] [INFO] [1706257149.805404052] [building_systems_visualizer]: Building systems visualizer started...
[rmf_visualization_building_systems-6] /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/qos.py:307: UserWarning: HistoryPolicy.RMW_QOS_POLICY_HISTORY_KEEP_LAST is deprecated. Use HistoryPolicy.KEEP_LAST instead.
[rmf_visualization_building_systems-6]   warnings.warn(
[rmf_visualization_building_systems-6] /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/qos.py:307: UserWarning: ReliabilityPolicy.RMW_QOS_POLICY_RELIABILITY_RELIABLE is deprecated. Use ReliabilityPolicy.RELIABLE instead.
[rmf_visualization_building_systems-6]   warnings.warn(
[rmf_visualization_building_systems-6] /opt/ros/humble/local/lib/python3.10/dist-packages/rclpy/qos.py:307: UserWarning: DurabilityPolicy.RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL is deprecated. Use DurabilityPolicy.TRANSIENT_LOCAL instead.
[rmf_visualization_building_systems-6]   warnings.warn(

```
This PR migrates away towards the newer API.

Signed-off-by: Arjo Chakravarty <arjoc@google.com>
@Yadunund
Copy link
Member

Is this ready for review?

@arjo129
Copy link
Member Author

arjo129 commented Jan 29, 2024

Yep!

@Yadunund Yadunund changed the title Fix warnings issued when running on humble Fix deprecated QoS warnings Jan 29, 2024
@Yadunund Yadunund merged commit c07dbdb into main Jan 29, 2024
3 checks passed
@Yadunund Yadunund deleted the arjo/fix/warnings_about_qos branch January 29, 2024 04:11
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.

None yet

2 participants