Skip to content

Commit 3960a0f

Browse files
committed
initial commit
0 parents  commit 3960a0f

File tree

9 files changed

+1018
-0
lines changed

9 files changed

+1018
-0
lines changed

CMakeLists.txt

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
cmake_minimum_required(VERSION 2.8.3)
2+
project(rviz_mesh_display)
3+
4+
## Find catkin and any catkin packages on which
5+
## this package depends at build time
6+
find_package(catkin REQUIRED COMPONENTS roscpp rospy roslib std_msgs shape_msgs geometry_msgs
7+
# vigir_interactive_marker_server_custom
8+
rviz pluginlib class_loader
9+
cv_bridge)
10+
11+
set(CMAKE_AUTOMOC ON)
12+
set(CMAKE_INCLUDE_CURRENT_DIR ON)
13+
14+
## This plugin includes Qt widgets, so we must include Qt like so:
15+
find_package(Qt5 COMPONENTS Widgets Core REQUIRED)
16+
17+
find_package(OpenGL REQUIRED)
18+
19+
## I prefer the Qt signals and slots to avoid defining "emit", "slots",
20+
## etc because they can conflict with boost signals, so define QT_NO_KEYWORDS here.
21+
add_definitions(-DQT_NO_KEYWORDS)
22+
23+
catkin_package(
24+
LIBRARIES
25+
rviz_mesh_display
26+
${OPENGL_LIBRARIES}
27+
INCLUDE_DIRS
28+
rviz_mesh_display/src
29+
${OPENGL_INCLUDE_DIR}
30+
CATKIN_DEPENDS
31+
roscpp
32+
rospy
33+
roslib
34+
std_msgs
35+
shape_msgs
36+
geometry_msgs
37+
rviz
38+
pluginlib
39+
class_loader
40+
cv_bridge
41+
)
42+
43+
include_directories(
44+
rviz_mesh_display/src
45+
${catkin_INCLUDE_DIRS})
46+
47+
include_directories(SYSTEM
48+
${OPENGL_INCLUDE_DIR}
49+
${QT_INCLUDE_DIR})
50+
51+
link_directories(${catkin_LIBRARY_DIRS})
52+
53+
add_subdirectory(rviz_mesh_display)
54+
55+
install(FILES
56+
mesh_display_custom_plugin_description.xml
57+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
58+
59+
#install(DIRECTORY icons DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

package.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0"?>
2+
<package>
3+
<name>rviz_mesh_display</name>
4+
<version>0.1.0</version>
5+
<description>The OCS rviz plugins package</description>
6+
<maintainer email="[email protected]">Felipe Bacim</maintainer>
7+
<license>TORC</license>
8+
<author email="[email protected]">Felipe Bacim</author>
9+
10+
<buildtool_depend>catkin</buildtool_depend>
11+
12+
<build_depend>roscpp</build_depend>
13+
<build_depend>rospy</build_depend>
14+
<build_depend>roslib</build_depend>
15+
<build_depend>std_msgs</build_depend>
16+
<build_depend>shape_msgs</build_depend>
17+
<build_depend>geometry_msgs</build_depend>
18+
<build_depend>pluginlib</build_depend>
19+
<build_depend>class_loader</build_depend>
20+
<build_depend>rviz</build_depend>
21+
<build_depend>cv_bridge</build_depend>
22+
23+
<run_depend>roscpp</run_depend>
24+
<run_depend>rospy</run_depend>
25+
<run_depend>roslib</run_depend>
26+
<run_depend>std_msgs</run_depend>
27+
<run_depend>shape_msgs</run_depend>
28+
<run_depend>geometry_msgs</run_depend>
29+
<run_depend>pluginlib</run_depend>
30+
<run_depend>class_loader</run_depend>
31+
<run_depend>rviz</run_depend>
32+
<run_depend>cv_bridge</run_depend>
33+
34+
<export>
35+
<rviz plugin="${prefix}/rviz_mesh_display_custom_plugin_description.xml"/>
36+
</export>
37+
</package>

rviz_mesh_display/CMakeLists.txt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Convert the Qt Signals and Slots for QWidget events
2+
# qt5_wrap_cpp(MOC_SOURCES src/mesh_display_custom.h)
3+
4+
include_directories(${catkin_INCLUDE_DIRS} ${CMAKE_CURRENT_BINARY_DIR})
5+
6+
set(VIGIR_MESH_LIB_NAME rviz_plugin_mesh_display)
7+
8+
add_library(${VIGIR_MESH_LIB_NAME}_core src/mesh_display_custom.cpp ${MOC_SOURCES})
9+
target_link_libraries(${VIGIR_MESH_LIB_NAME}_core ${catkin_LIBRARIES} Qt5::Widgets)
10+
11+
add_dependencies(${VIGIR_MESH_LIB_NAME}_core ${catkin_EXPORTED_TARGETS})
12+
13+
add_library(${VIGIR_MESH_LIB_NAME} src/plugin_init.cpp)
14+
target_link_libraries(${VIGIR_MESH_LIB_NAME} ${VIGIR_MESH_LIB_NAME}_core ${catkin_LIBRARIES})
15+
16+
add_dependencies(${VIGIR_MESH_LIB_NAME} ${catkin_EXPORTED_TARGETS})
17+
18+
install(TARGETS ${VIGIR_MESH_LIB_NAME} ${VIGIR_MESH_LIB_NAME}_core
19+
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
20+
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})
21+
22+
install(DIRECTORY textures
23+
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/rviz_plugin_mesh_display
24+
)
25+
26+

0 commit comments

Comments
 (0)