@@ -46,6 +46,8 @@ set(dependencies
46
46
std_srvs
47
47
builtin_interfaces
48
48
rviz_common
49
+ rviz_rendering
50
+ rviz_default_plugins
49
51
#interactive_markers
50
52
)
51
53
@@ -55,7 +57,7 @@ set(libraries
55
57
sync_slam_toolbox
56
58
async_slam_toolbox
57
59
toolbox_common
58
- SlamToolboxPlugin
60
+ # SlamToolboxPlugin
59
61
ceres_solver_plugin
60
62
)
61
63
@@ -95,27 +97,28 @@ rosidl_generate_interfaces(${PROJECT_NAME}
95
97
DEPENDENCIES builtin_interfaces geometry_msgs std_msgs action_msgs nav_msgs
96
98
)
97
99
98
- set (CMAKE_AUTOMOC ON )
99
- find_package (Qt5 ${rviz_QT_VERSION} REQUIRED Core Widgets)
100
- set (QT_LIBRARIES Qt5::Widgets Qt5::Core)
101
- macro (qt_wrap_ui)
102
- qt5_wrap_ui(${ARGN} )
103
- endmacro ()
104
- macro (qt_wrap_cpp)
105
- qt5_wrap_cpp(${ARGN} )
106
- endmacro ()
107
-
108
- #### rviz Plugin TODO port to ROS2
109
- qt_wrap_cpp (MOC_FILES rviz_plugin/slam_toolbox_rviz_plugin.h)
110
- set (SOURCE_FILES rviz_plugin/slam_toolbox_rviz_plugin.cpp )
111
- set (HEADER_FILES rviz_plugin/slam_toolbox_rviz_plugin.h )
112
- add_library (SlamToolboxPlugin ${SOURCE_FILES} ${HEADER_FILES} )
113
- ament_target_dependencies(SlamToolboxPlugin
114
- ${dependencies}
115
- )
116
- target_link_libraries (SlamToolboxPlugin karto ${rviz_DEFAULT_PLUGIN_LIBRARIES} ${QT_LIBRARIES} )
117
- rosidl_target_interfaces(SlamToolboxPlugin ${PROJECT_NAME} "rosidl_typesupport_cpp" )
118
- pluginlib_export_plugin_description_file(rviz_common rviz_plugins.xml)
100
+ #set(CMAKE_AUTOMOC ON)
101
+ #find_package(Qt5 ${rviz_QT_VERSION} REQUIRED Core Widgets)
102
+ #set(QT_LIBRARIES Qt5::Widgets Qt5::Core)
103
+ #macro(qt_wrap_ui)
104
+ # qt5_wrap_ui(${ARGN})
105
+ #endmacro()
106
+ #macro(qt_wrap_cpp)
107
+ # qt5_wrap_cpp(${ARGN})
108
+ #endmacro()
109
+
110
+ #### rviz Plugin
111
+ #qt_wrap_cpp(MOC_FILES rviz_plugin/slam_toolbox_rviz_plugin.h)
112
+ #set(SOURCE_FILES rviz_plugin/slam_toolbox_rviz_plugin.cpp )
113
+ #set(HEADER_FILES rviz_plugin/slam_toolbox_rviz_plugin.h )
114
+ #add_library(SlamToolboxPlugin ${SOURCE_FILES} ${HEADER_FILES})
115
+ #ament_target_dependencies(SlamToolboxPlugin
116
+ # ${dependencies}
117
+ #)
118
+ #target_link_libraries(SlamToolboxPlugin karto ${rviz_DEFAULT_PLUGIN_LIBRARIES} ${QT_LIBRARIES})
119
+ #rosidl_target_interfaces(SlamToolboxPlugin ${PROJECT_NAME} "rosidl_typesupport_cpp")
120
+ #target_compile_definitions(SlamToolboxPlugin PUBLIC "PLUGINLIB__DISABLE_BOOST_FUNCTIONS")
121
+ #pluginlib_export_plugin_description_file(slam_toolbox rviz_plugins.xml)
119
122
120
123
#### Ceres Plugin
121
124
add_library (ceres_solver_plugin solvers/ceres_solver.cpp)
@@ -194,7 +197,7 @@ install(DIRECTORY config
194
197
DESTINATION share
195
198
)
196
199
197
- install (FILES solver_plugins.xml rviz_plugins.xml
200
+ install (FILES solver_plugins.xml # rviz_plugins.xml
198
201
DESTINATION share
199
202
)
200
203
0 commit comments