From 4db2caabbc3ae21169e5ad51c44f207f55d158d6 Mon Sep 17 00:00:00 2001 From: CursedRock17 Date: Sun, 27 Oct 2024 22:28:07 -0400 Subject: [PATCH] Fix Deprecated tf2 headers Signed-off-by: CursedRock17 --- .../rviz_common/transformation/frame_transformer.hpp | 4 ++-- .../include/rviz_default_plugins/displays/tf/frame_info.hpp | 2 +- .../include/rviz_default_plugins/displays/tf/tf_display.hpp | 6 +++--- .../publishers/laser_scan_publisher.hpp | 2 +- .../publishers/point_cloud2_publisher.hpp | 2 +- .../publishers/point_cloud_publisher.hpp | 2 +- .../rviz_visual_testing_framework/visual_test_fixture.hpp | 2 +- .../rviz_visual_testing_framework/visual_test_publisher.hpp | 2 +- .../src/internal/transform_message_creator.cpp | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/rviz_common/include/rviz_common/transformation/frame_transformer.hpp b/rviz_common/include/rviz_common/transformation/frame_transformer.hpp index f6f7cdbb4..9480ad5f4 100644 --- a/rviz_common/include/rviz_common/transformation/frame_transformer.hpp +++ b/rviz_common/include/rviz_common/transformation/frame_transformer.hpp @@ -36,8 +36,8 @@ #include #include -#include "tf2/buffer_core_interface.h" -#include "tf2/exceptions.h" +#include "tf2/buffer_core_interface.hpp" +#include "tf2/exceptions.hpp" #include "tf2_ros/async_buffer_interface.h" #include // NOLINT diff --git a/rviz_default_plugins/include/rviz_default_plugins/displays/tf/frame_info.hpp b/rviz_default_plugins/include/rviz_default_plugins/displays/tf/frame_info.hpp index 14d875f9b..3bd45b05e 100644 --- a/rviz_default_plugins/include/rviz_default_plugins/displays/tf/frame_info.hpp +++ b/rviz_default_plugins/include/rviz_default_plugins/displays/tf/frame_info.hpp @@ -34,7 +34,7 @@ #include -#include "tf2/time.h" +#include "tf2/time.hpp" #include "rviz_default_plugins/displays/tf/tf_display.hpp" #include "rviz_default_plugins/visibility_control.hpp" diff --git a/rviz_default_plugins/include/rviz_default_plugins/displays/tf/tf_display.hpp b/rviz_default_plugins/include/rviz_default_plugins/displays/tf/tf_display.hpp index abc338f44..3347264f7 100644 --- a/rviz_default_plugins/include/rviz_default_plugins/displays/tf/tf_display.hpp +++ b/rviz_default_plugins/include/rviz_default_plugins/displays/tf/tf_display.hpp @@ -42,9 +42,9 @@ #include #include "geometry_msgs/msg/transform_stamped.hpp" -#include "tf2/exceptions.h" -#include "tf2/buffer_core.h" -#include "tf2/time.h" +#include "tf2/exceptions.hpp" +#include "tf2/buffer_core.hpp" +#include "tf2/time.hpp" #include "rviz_common/interaction/forwards.hpp" #include "rviz_common/display.hpp" diff --git a/rviz_default_plugins/test/rviz_default_plugins/publishers/laser_scan_publisher.hpp b/rviz_default_plugins/test/rviz_default_plugins/publishers/laser_scan_publisher.hpp index 65ad8c9c3..d325a1dbf 100644 --- a/rviz_default_plugins/test/rviz_default_plugins/publishers/laser_scan_publisher.hpp +++ b/rviz_default_plugins/test/rviz_default_plugins/publishers/laser_scan_publisher.hpp @@ -38,7 +38,7 @@ #include "rclcpp/rclcpp.hpp" #include "sensor_msgs/msg/laser_scan.hpp" #include "std_msgs/msg/header.hpp" -#include "tf2/LinearMath/Quaternion.h" +#include "tf2/LinearMath/Quaternion.hpp" using namespace std::chrono_literals; // NOLINT diff --git a/rviz_default_plugins/test/rviz_default_plugins/publishers/point_cloud2_publisher.hpp b/rviz_default_plugins/test/rviz_default_plugins/publishers/point_cloud2_publisher.hpp index 3ca76b0a0..6f0ac40cd 100644 --- a/rviz_default_plugins/test/rviz_default_plugins/publishers/point_cloud2_publisher.hpp +++ b/rviz_default_plugins/test/rviz_default_plugins/publishers/point_cloud2_publisher.hpp @@ -35,7 +35,7 @@ #include #include "geometry_msgs/msg/transform_stamped.hpp" -#include "tf2/LinearMath/Quaternion.h" +#include "tf2/LinearMath/Quaternion.hpp" #include "rclcpp/rclcpp.hpp" #include "sensor_msgs/msg/point_cloud2.hpp" #include "std_msgs/msg/header.hpp" diff --git a/rviz_default_plugins/test/rviz_default_plugins/publishers/point_cloud_publisher.hpp b/rviz_default_plugins/test/rviz_default_plugins/publishers/point_cloud_publisher.hpp index e7e658d2d..e51767743 100644 --- a/rviz_default_plugins/test/rviz_default_plugins/publishers/point_cloud_publisher.hpp +++ b/rviz_default_plugins/test/rviz_default_plugins/publishers/point_cloud_publisher.hpp @@ -34,7 +34,7 @@ #include #include "geometry_msgs/msg/transform_stamped.hpp" -#include "tf2/LinearMath/Quaternion.h" +#include "tf2/LinearMath/Quaternion.hpp" #include "rclcpp/rclcpp.hpp" #include "std_msgs/msg/header.hpp" #include "sensor_msgs/msg/point_cloud.hpp" diff --git a/rviz_visual_testing_framework/include/rviz_visual_testing_framework/visual_test_fixture.hpp b/rviz_visual_testing_framework/include/rviz_visual_testing_framework/visual_test_fixture.hpp index 032f106c4..f75a09628 100644 --- a/rviz_visual_testing_framework/include/rviz_visual_testing_framework/visual_test_fixture.hpp +++ b/rviz_visual_testing_framework/include/rviz_visual_testing_framework/visual_test_fixture.hpp @@ -38,7 +38,7 @@ #include "rclcpp/clock.hpp" #include "std_msgs/msg/header.hpp" #include "geometry_msgs/msg/transform_stamped.hpp" -#include "tf2/LinearMath/Quaternion.h" +#include "tf2/LinearMath/Quaternion.hpp" #include "tf2_ros/static_transform_broadcaster.h" #include "rviz_visual_testing_framework/internal/display_handler.hpp" diff --git a/rviz_visual_testing_framework/include/rviz_visual_testing_framework/visual_test_publisher.hpp b/rviz_visual_testing_framework/include/rviz_visual_testing_framework/visual_test_publisher.hpp index e1ff4d2fa..3751aca81 100644 --- a/rviz_visual_testing_framework/include/rviz_visual_testing_framework/visual_test_publisher.hpp +++ b/rviz_visual_testing_framework/include/rviz_visual_testing_framework/visual_test_publisher.hpp @@ -40,7 +40,7 @@ #include "rclcpp/clock.hpp" #include "std_msgs/msg/header.hpp" #include "geometry_msgs/msg/transform_stamped.hpp" -#include "tf2/LinearMath/Quaternion.h" +#include "tf2/LinearMath/Quaternion.hpp" #include "tf2_ros/static_transform_broadcaster.h" #include "internal/transform_message_creator.hpp" diff --git a/rviz_visual_testing_framework/src/internal/transform_message_creator.cpp b/rviz_visual_testing_framework/src/internal/transform_message_creator.cpp index a6fa59d99..f975814f6 100644 --- a/rviz_visual_testing_framework/src/internal/transform_message_creator.cpp +++ b/rviz_visual_testing_framework/src/internal/transform_message_creator.cpp @@ -33,7 +33,7 @@ #include "rclcpp/rclcpp.hpp" #include "rclcpp/clock.hpp" -#include "tf2/LinearMath/Quaternion.h" +#include "tf2/LinearMath/Quaternion.hpp" geometry_msgs::msg::TransformStamped createStaticTransformMessageFor( std::string header_frame_id, std::string child_frame_id)