Skip to content

Commit

Permalink
Merge branches enable-travis, fix-catkin-lint-issues (ros-visualizati…
Browse files Browse the repository at this point in the history
…on#1346), and remove-boost-signals1 (ros-visualization#1344)
  • Loading branch information
rhaschke committed Feb 17, 2019
4 parents 76a72ef + 29ecde8 + 707dc6f + f230eab commit c7b2daa
Show file tree
Hide file tree
Showing 14 changed files with 78 additions and 81 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# This config file for Travis CI utilizes https://github.com/ros-planning/moveit_ci/ package.
sudo: required
dist: xenial # distro used by Travis, moveit_ci uses the docker image's distro
services:
- docker
language: cpp
cache: ccache
compiler: gcc

notifications:
email:
recipients:
- rhaschke@techfak.uni-bielefeld.de
env:
global:
- ROS_DISTRO=melodic
- ROS_REPO=ros
- WARNINGS_OK=true
- ABI_BASE_URL=https://ni.www.techfak.uni-bielefeld.de/abicheck/rviz-${ROS_DISTRO}.tar.gz
matrix:
- TEST=catkin_lint
- TEST=abi

before_script:
- git clone -q --depth=1 https://github.com/ros-planning/moveit_ci.git .moveit_ci

script:
- .moveit_ci/travis.sh
13 changes: 4 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()

# Define global caktin_lint suppressions
#catkin_lint: ignore uninstalled_script missing_install_target

find_package(Boost REQUIRED
COMPONENTS
filesystem
program_options
signals
system
thread
)
Expand Down Expand Up @@ -115,7 +117,6 @@ add_definitions(-DQT_NO_KEYWORDS)

find_package(catkin REQUIRED
COMPONENTS
angles
cmake_modules
geometry_msgs
image_transport
Expand All @@ -138,19 +139,13 @@ find_package(catkin REQUIRED
tf
urdf
visualization_msgs
urdfdom_headers
)

if(${tf_VERSION} VERSION_LESS "1.11.3")
add_definitions("-DRVIZ_USE_BOOST_SIGNAL_1")
endif()

find_package(PythonLibs "${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}" REQUIRED)

find_package(Eigen3 QUIET)
if(NOT EIGEN3_FOUND)
# Fallback to cmake_modules
find_package(cmake_modules REQUIRED)
#catkin_lint: ignore_once deprecated_cmake_module
find_package(Eigen REQUIRED)
set(EIGEN3_INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS})
set(EIGEN3_LIBRARIES ${EIGEN_LIBRARIES}) # Not strictly necessary as Eigen is head only
Expand Down
Empty file modified ogre_media/fonts/liberation-sans/LiberationSans-Bold.ttf
100755 → 100644
Empty file.
Empty file modified ogre_media/fonts/liberation-sans/LiberationSans-BoldItalic.ttf
100755 → 100644
Empty file.
Empty file modified ogre_media/fonts/liberation-sans/LiberationSans-Italic.ttf
100755 → 100644
Empty file.
Empty file modified ogre_media/fonts/liberation-sans/LiberationSans-Regular.ttf
100755 → 100644
Empty file.
Empty file modified ogre_media/fonts/liberation-sans/SIL Open Font License.txt
100755 → 100644
Empty file.
99 changes: 38 additions & 61 deletions package.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<package>
<package format="2">
<name>rviz</name>
<version>1.13.1</version>
<description>
3D visualization tool for ROS.
</description>
<maintainer email="dhood@osrfoundation.org">D. Hood</maintainer>
<maintainer email="william@osrfoundation.org">William Woodall</maintainer>
<maintainer email="rhaschke@techfak.uni-bielefeld.de">Robert Haschke</maintainer>
<license>BSD</license>
<license>Creative Commons</license>

Expand All @@ -18,71 +18,48 @@

<buildtool_depend>catkin</buildtool_depend>

<build_depend>assimp-dev</build_depend>
<build_depend>cmake_modules</build_depend>
<build_depend>eigen</build_depend>
<build_depend>geometry_msgs</build_depend>
<build_depend>image_transport</build_depend>
<build_depend>interactive_markers</build_depend>
<build_depend>laser_geometry</build_depend>
<build_depend>libogre-dev</build_depend>
<build_depend>qtbase5-dev</build_depend>
<build_depend>libqt5-opengl-dev</build_depend>
<build_depend>map_msgs</build_depend>
<build_depend>message_filters</build_depend>
<build_depend>nav_msgs</build_depend>
<build_depend>pluginlib</build_depend>
<build_depend>python_qt_binding</build_depend>
<build_depend>resource_retriever</build_depend>
<build_depend>rosbag</build_depend>
<build_depend>rosconsole</build_depend>
<build_depend>roscpp</build_depend>
<build_depend>roslib</build_depend>
<build_depend>rospy</build_depend>
<build_depend>sensor_msgs</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>std_srvs</build_depend>
<build_depend>tf</build_depend>
<build_depend>tinyxml2</build_depend>
<build_depend>urdf</build_depend>
<build_depend>visualization_msgs</build_depend>
<build_depend>yaml-cpp</build_depend>
<build_depend>opengl</build_depend>
<build_depend>liburdfdom-dev</build_depend>
<build_depend>liburdfdom-headers-dev</build_depend>

<run_depend>assimp</run_depend>
<run_depend>eigen</run_depend>
<run_depend>geometry_msgs</run_depend>
<run_depend>image_transport</run_depend>
<run_depend>interactive_markers</run_depend>
<run_depend>laser_geometry</run_depend>
<run_depend>libogre-dev</run_depend>
<run_depend>libqt5-core</run_depend>
<run_depend>libqt5-gui</run_depend>
<run_depend>libqt5-widgets</run_depend>
<run_depend>libqt5-opengl</run_depend>
<run_depend>map_msgs</run_depend>
<run_depend>media_export</run_depend>
<run_depend>message_filters</run_depend>
<run_depend>nav_msgs</run_depend>
<run_depend>pluginlib</run_depend>
<run_depend>python_qt_binding</run_depend>
<run_depend>resource_retriever</run_depend>
<run_depend>rosbag</run_depend>
<run_depend>rosconsole</run_depend>
<run_depend>roscpp</run_depend>
<run_depend>roslib</run_depend>
<run_depend>rospy</run_depend>
<run_depend>sensor_msgs</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>std_srvs</run_depend>
<run_depend>tf</run_depend>
<run_depend>tinyxml2</run_depend>
<run_depend>urdf</run_depend>
<run_depend>visualization_msgs</run_depend>
<run_depend>yaml-cpp</run_depend>
<run_depend>opengl</run_depend>
<run_depend>liburdfdom-headers-dev</run_depend>
<depend>assimp-dev</depend>
<depend>geometry_msgs</depend>
<depend>image_transport</depend>
<depend>interactive_markers</depend>
<depend>laser_geometry</depend>
<depend>libogre-dev</depend>
<depend>map_msgs</depend>
<depend>message_filters</depend>
<depend>nav_msgs</depend>
<depend>pluginlib</depend>
<depend>python_qt_binding</depend>
<depend>resource_retriever</depend>
<depend>rosbag</depend>
<depend>rosconsole</depend>
<depend>roscpp</depend>
<depend>roslib</depend>
<depend>rospy</depend>
<depend>sensor_msgs</depend>
<depend>std_msgs</depend>
<depend>std_srvs</depend>
<depend>tf</depend>
<depend>tinyxml2</depend>
<depend>urdf</depend>
<depend>visualization_msgs</depend>
<depend>yaml-cpp</depend>
<depend>opengl</depend>

<exec_depend>libqt5-core</exec_depend>
<exec_depend>libqt5-gui</exec_depend>
<exec_depend>libqt5-widgets</exec_depend>
<exec_depend>libqt5-opengl</exec_depend>
<exec_depend>media_export</exec_depend>

<test_depend>rostest</test_depend>
<test_depend>rosunit</test_depend>

<export>
<rviz plugin="${prefix}/plugin_description.xml"/>
Expand Down
2 changes: 1 addition & 1 deletion src/python_bindings/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(rviz_BINDINGS "")
# add_subdirectory(shiboken)
add_subdirectory(sip)

message("Python binding generators: ${rviz_BINDINGS}")
message(STATUS "Python binding generators: ${rviz_BINDINGS}")
if(NOT rviz_BINDINGS)
message(FATAL_ERROR "No Python binding generator found.")
endif()
1 change: 1 addition & 0 deletions src/python_bindings/shiboken/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(rviz_shiboken_QT_COMPONENTS
QtGui
)

#catkin_lint: ignore_once duplicate_find
find_package(python_qt_binding REQUIRED)
include(${python_qt_binding_EXTRAS_DIR}/shiboken_helper.cmake)

Expand Down
3 changes: 3 additions & 0 deletions src/python_bindings/sip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ set(rviz_sip_DEPENDENT_FILES
${rviz_HDRS_DIR}/yaml_config_writer.h
)

#catkin_lint: ignore_once duplicate_find
find_package(python_qt_binding REQUIRED)
#catkin_lint: ignore_once external_file
include(${python_qt_binding_EXTRAS_DIR}/sip_helper.cmake)

# maintain context for different named target
Expand All @@ -61,6 +63,7 @@ if(sip_helper_FOUND)
else()
set(rviz_sip_LIBRARY_FILE librviz_sip${CMAKE_SHARED_LIBRARY_SUFFIX})
endif()
#catkin_lint: ignore_once missing_file external_file
install(FILES ${CATKIN_DEVEL_PREFIX}/${PYTHON_INSTALL_DIR}/rviz/${rviz_sip_LIBRARY_FILE}
DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION})
endif()
4 changes: 2 additions & 2 deletions src/rviz/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
find_package(PkgConfig)
pkg_check_modules(NEW_YAMLCPP yaml-cpp>=0.5)
if(NEW_YAMLCPP_FOUND)
add_definitions(-DRVIZ_HAVE_YAMLCPP_05)
Expand All @@ -16,7 +15,8 @@ include_directories(.)
# source for access at run-time.
set(ENV_CONFIG_FILE ${CMAKE_CURRENT_BINARY_DIR}/env_config.cpp)
set(RVIZ_VERSION ${rviz_VERSION})
message("making version ${RVIZ_VERSION}.")
message(STATUS "making version ${RVIZ_VERSION}.")
#catkin_lint: ignore_once env_var
set(ROS_DISTRO $ENV{ROS_DISTRO})

configure_file(env_config.cpp.in ${ENV_CONFIG_FILE} @ONLY)
Expand Down
1 change: 1 addition & 0 deletions src/rviz/default_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ file(GENERATE
OUTPUT "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/cmake/default_plugin_location.cmake"
CONTENT "set(rviz_DEFAULT_PLUGIN_FILE_NAME $<TARGET_FILE_NAME:${rviz_DEFAULT_PLUGIN_LIBRARY_TARGET_NAME}>)"
)
#catkin_lint: ignore_once missing_file external_file
# Install from the devel space to the install space.
install(FILES "${CATKIN_DEVEL_PREFIX}/${CATKIN_PACKAGE_SHARE_DESTINATION}/cmake/default_plugin_location.cmake"
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/cmake
Expand Down
8 changes: 0 additions & 8 deletions src/rviz/default_plugin/effort_display.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ namespace tf
typedef boost::shared_ptr<M const> MConstPtr;
typedef ros::MessageEvent<M const> MEvent;
typedef boost::function<void(const MConstPtr&, FilterFailureReason)> FailureCallback;
#ifdef RVIZ_USE_BOOST_SIGNAL_1
typedef boost::signal<void(const MConstPtr&, FilterFailureReason)> FailureSignal;
#else
typedef boost::signals2::signal<void(const MConstPtr&, FilterFailureReason)> FailureSignal;
#endif

// If you hit this assert your message does not have a header, or does not have the HasHeader trait defined for it
ROS_STATIC_ASSERT(ros::message_traits::HasHeader<M>::value);
Expand Down Expand Up @@ -496,11 +492,7 @@ namespace tf

ros::Duration time_tolerance_; ///< Provide additional tolerance on time for messages which are stamped but can have associated duration

#ifdef RVIZ_USE_BOOST_SIGNAL_1
boost::signals::connection tf_connection_;
#else
boost::signals2::connection tf_connection_;
#endif
message_filters::Connection message_connection_;

FailureSignal failure_signal_;
Expand Down

0 comments on commit c7b2daa

Please sign in to comment.