From 9be6dfe235266aaa4ec96d6f637ed66921675fc6 Mon Sep 17 00:00:00 2001 From: Felipe Gomes de Melo Date: Fri, 8 Dec 2023 13:20:18 -0300 Subject: [PATCH] Fix fromMsg missing symbol rviz plugin error A detailed discussion may be found here https://github.com/ros2/geometry2/issues/639 --- rviz_carla_plugin/CMakeLists.txt | 4 +++- rviz_carla_plugin/src/carla_control_panel_ROS2.cpp | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rviz_carla_plugin/CMakeLists.txt b/rviz_carla_plugin/CMakeLists.txt index 83904edb..e90018ef 100644 --- a/rviz_carla_plugin/CMakeLists.txt +++ b/rviz_carla_plugin/CMakeLists.txt @@ -52,6 +52,7 @@ elseif(${ROS_VERSION} EQUAL 2) find_package(carla_ros_scenario_runner_types COMPONENTS) find_package(pluginlib REQUIRED) find_package(rviz_ogre_vendor REQUIRED) + find_package(tf2_geometry_msgs REQUIRED) set(CMAKE_AUTOMOC ON) @@ -74,7 +75,8 @@ elseif(${ROS_VERSION} EQUAL 2) plugin_description_ros2.xml) ament_target_dependencies(rviz_carla_plugin rclcpp carla_msgs nav_msgs - carla_ros_scenario_runner_types rviz_common) + carla_ros_scenario_runner_types rviz_common + tf2_geometry_msgs) ament_export_libraries(${PROJECT_NAME}) diff --git a/rviz_carla_plugin/src/carla_control_panel_ROS2.cpp b/rviz_carla_plugin/src/carla_control_panel_ROS2.cpp index a9dc0b98..1b7f0383 100644 --- a/rviz_carla_plugin/src/carla_control_panel_ROS2.cpp +++ b/rviz_carla_plugin/src/carla_control_panel_ROS2.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include