From 0b006a7f98481cce59e48ea2bd294ab527fc494f Mon Sep 17 00:00:00 2001 From: Tin Nguyen MBP <40393525+tinng81@users.noreply.github.com> Date: Sun, 8 Nov 2020 14:34:55 +0700 Subject: [PATCH 1/2] FIX pose_utils not declared as linked lib --- uav_simulator/Utils/multi_map_server/CMakeLists.txt | 2 +- uav_simulator/Utils/odom_visualization/CMakeLists.txt | 2 +- uav_simulator/so3_disturbance_generator/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/uav_simulator/Utils/multi_map_server/CMakeLists.txt b/uav_simulator/Utils/multi_map_server/CMakeLists.txt index 29cd5568..37237f92 100755 --- a/uav_simulator/Utils/multi_map_server/CMakeLists.txt +++ b/uav_simulator/Utils/multi_map_server/CMakeLists.txt @@ -166,7 +166,7 @@ add_dependencies(multi_map_visualization multi_map_server_messages_cpp) target_link_libraries(multi_map_visualization ${catkin_LIBRARIES} ${ARMADILLO_LIBRARIES} - pose_utils + ${pose_utils_LIBRARIES} ) ############# diff --git a/uav_simulator/Utils/odom_visualization/CMakeLists.txt b/uav_simulator/Utils/odom_visualization/CMakeLists.txt index 7b42d04c..9bc9c464 100755 --- a/uav_simulator/Utils/odom_visualization/CMakeLists.txt +++ b/uav_simulator/Utils/odom_visualization/CMakeLists.txt @@ -159,7 +159,7 @@ add_executable(odom_visualization src/odom_visualization.cpp) target_link_libraries(odom_visualization ${catkin_LIBRARIES} ${ARMADILLO_LIBRARIES} - pose_utils + ${pose_utils_LIBRARIES} ) ############# diff --git a/uav_simulator/so3_disturbance_generator/CMakeLists.txt b/uav_simulator/so3_disturbance_generator/CMakeLists.txt index 235b8420..4cffbda2 100755 --- a/uav_simulator/so3_disturbance_generator/CMakeLists.txt +++ b/uav_simulator/so3_disturbance_generator/CMakeLists.txt @@ -71,6 +71,6 @@ add_dependencies(so3_disturbance_generator ${PROJECT_NAME}_gencfg) target_link_libraries(so3_disturbance_generator ${catkin_LIBRARIES} ${ARMADILLO_LIBRARIES} - pose_utils + ${pose_utils_LIBRARIES} ) From 4d83750ad0533824d6db49d6b53bc01133843626 Mon Sep 17 00:00:00 2001 From: Tin Nguyen MBP <40393525+tinng81@users.noreply.github.com> Date: Sun, 8 Nov 2020 14:39:37 +0700 Subject: [PATCH 2/2] REFACTOR deprecated DEFAULT_CLASS Removed redundant registered class for export --- uav_simulator/so3_control/src/so3_control_nodelet.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/uav_simulator/so3_control/src/so3_control_nodelet.cpp b/uav_simulator/so3_control/src/so3_control_nodelet.cpp index 10649b2b..e1af2f58 100755 --- a/uav_simulator/so3_control/src/so3_control_nodelet.cpp +++ b/uav_simulator/so3_control/src/so3_control_nodelet.cpp @@ -214,5 +214,4 @@ SO3ControlNodelet::onInit(void) } #include -PLUGINLIB_DECLARE_CLASS(so3_control, SO3ControlNodelet, SO3ControlNodelet, - nodelet::Nodelet); +PLUGINLIB_EXPORT_CLASS(SO3ControlNodelet, nodelet::Nodelet); \ No newline at end of file