added fmodex ros package for convenience (download and install fmodex)

git-svn-id: http://rtabmap.googlecode.com/svn/trunk/ros-pkg@563 f169173b-cf89-36c8-b27e-44dbe73f0c83
This commit is contained in:
matlabbe
2012-06-24 19:49:44 +00:00
parent ffcfa9236c
commit 262a80c33c
11 changed files with 163 additions and 9 deletions
+30
View File
@@ -0,0 +1,30 @@
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
# Debug : w/ debug symbols, w/o optimization
# Release : w/o debug symbols, w/ optimization
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)
rosbuild_init()
#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
#set the default path for built libraries to the "lib" directory
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
#uncomment if you have defined messages
#rosbuild_genmsg()
#uncomment if you have defined services
#rosbuild_gensrv()
#common commands for building c++ executables and libraries
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
#target_link_libraries(${PROJECT_NAME} another_library)
#rosbuild_add_boost_directories()
#rosbuild_link_boost(${PROJECT_NAME} thread)
#rosbuild_add_executable(example examples/example.cpp)
#target_link_libraries(example ${PROJECT_NAME})
+53
View File
@@ -0,0 +1,53 @@
# - Find Fmodex
# This module finds an installed Fmod package.
#
# It sets the following variables:
# Fmodex_FOUND - Set to false, or undefined, if Fmod isn't found.
# Fmodex_INCLUDE_DIRS - The Fmod include directory.
# Fmodex_LIBRARIES - The Fmod library to link against.
#
#
SET(Fmodex_ROOT)
# Add ROS Fmodex directory if ROS is installed
FIND_PROGRAM(ROSPACK_EXEC NAME rospack PATHS)
IF(ROSPACK_EXEC)
EXECUTE_PROCESS(COMMAND ${ROSPACK_EXEC} find fmodex
OUTPUT_VARIABLE Fmodex_ROS_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY "./"
)
IF(Fmodex_ROS_PATH)
MESSAGE(STATUS "Found Fmodex ROS pkg : ${Fmodex_ROS_PATH}")
SET(Fmodex_ROOT
${Fmodex_ROS_PATH}/fmodex
${Fmodex_ROOT}
)
ENDIF(Fmodex_ROS_PATH)
ENDIF(ROSPACK_EXEC)
FIND_PATH(Fmodex_INCLUDE_DIRS fmod.h PATHS ${Fmodex_ROOT}/include)
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex64 PATHS ${Fmodex_ROOT}/lib)
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
IF(NOT Fmodex_LIBRARIES)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex PATHS ${Fmodex_ROOT}/lib)
ENDIF(NOT Fmodex_LIBRARIES)
IF (Fmodex_INCLUDE_DIRS AND Fmodex_LIBRARIES)
SET(Fmodex_FOUND TRUE)
ENDIF (Fmodex_INCLUDE_DIRS AND Fmodex_LIBRARIES)
IF (Fmodex_FOUND)
# show which Fmod was found only if not quiet
IF (NOT Fmodex_FIND_QUIETLY)
MESSAGE(STATUS "Found Fmod: ${Fmodex_LIBRARIES}")
ENDIF (NOT Fmodex_FIND_QUIETLY)
ELSE (Fmodex_FOUND)
# fatal error if Fmod is required but not found
IF (Fmodex_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find Fmodex... (aka libfmodex)")
ENDIF (Fmodex_FIND_REQUIRED)
ENDIF (Fmodex_FOUND)
+20
View File
@@ -0,0 +1,20 @@
all: installed
TARBALL = build/fmodex44008.tar.gz
TARBALL_URL = http://rtabmap.googlecode.com/files/fmodex44008.tar.gz
SOURCE_DIR = build/fmodex44008
UNPACK_CMD = tar xzf
include $(shell rospack find mk)/download_unpack_build.mk
installed: $(SOURCE_DIR)/unpacked
mkdir -p fmodex
cp -r $(SOURCE_DIR)/include fmodex/.
cp -r $(SOURCE_DIR)/lib fmodex/.
touch installed
clean:
-rm -rf src $(SOURCE_DIR) installed
wipe: clean
-rm -rf build
+14
View File
@@ -0,0 +1,14 @@
/**
\mainpage
\htmlinclude manifest.html
\b fmodex
<!--
Provide an overview of your package.
-->
-->
*/
+14
View File
@@ -0,0 +1,14 @@
<package>
<description brief="fmodex">
fmodex
</description>
<author>Mathieu Labbé</author>
<license>BSD</license>
<review status="unreviewed" notes=""/>
<url>http://ros.org/wiki/fmodex</url>
</package>
+1 -1
View File
@@ -9,7 +9,7 @@
<node name="rtabmap_gui" pkg="rtabmap" type="rtabmap_gui" output="screen"/> <node name="rtabmap_gui" pkg="rtabmap" type="rtabmap_gui" output="screen"/>
<node name="camera" pkg="rtabmap" type="camera" output="screen"> <node name="camera" pkg="rtabmap_image" type="camera" output="screen">
<remap from="/camera/image" to="/image"/> <remap from="/camera/image" to="/image"/>
<param name="device_id" value="0" type="int"/> <param name="device_id" value="0" type="int"/>
<param name="image_hz" value="1.0" type="double"/> <param name="image_hz" value="1.0" type="double"/>
+2 -1
View File
@@ -40,5 +40,6 @@ FIND_PACKAGE(Qt4 COMPONENTS QtCore QtGui REQUIRED)
find_package(Fmodex REQUIRED) find_package(Fmodex REQUIRED)
INCLUDE(${QT_USE_FILE}) INCLUDE(${QT_USE_FILE})
rosbuild_add_executable(audio_player AudioPlayerNode.cpp ${Fmodex_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${Fmodex_INCLUDE_DIRS})
rosbuild_add_executable(audio_player AudioPlayerNode.cpp)
target_link_libraries(audio_player ${Fmodex_LIBRARIES} ${QT_LIBRARIES}) target_link_libraries(audio_player ${Fmodex_LIBRARIES} ${QT_LIBRARIES})
+25 -5
View File
@@ -7,14 +7,34 @@
# Fmodex_LIBRARIES - The Fmod library to link against. # Fmodex_LIBRARIES - The Fmod library to link against.
# #
# #
SET(Fmodex_ROOT)
# Add ROS Fmodex directory if ROS is installed
FIND_PROGRAM(ROSPACK_EXEC NAME rospack PATHS)
IF(ROSPACK_EXEC)
EXECUTE_PROCESS(COMMAND ${ROSPACK_EXEC} find fmodex
OUTPUT_VARIABLE Fmodex_ROS_PATH
OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY "./"
)
IF(Fmodex_ROS_PATH)
MESSAGE(STATUS "Found Fmodex ROS pkg : ${Fmodex_ROS_PATH}")
SET(Fmodex_ROOT
${Fmodex_ROS_PATH}/fmodex
${Fmodex_ROOT}
)
ENDIF(Fmodex_ROS_PATH)
ENDIF(ROSPACK_EXEC)
FIND_PATH(Fmodex_INCLUDE_DIRS fmod.h) FIND_PATH(Fmodex_INCLUDE_DIRS fmod.h PATHS ${Fmodex_ROOT}/include)
IF(CMAKE_SIZEOF_VOID_P EQUAL 8) IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex64) FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex64 PATHS ${Fmodex_ROOT}/lib)
ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex)
ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8) ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
IF(NOT Fmodex_LIBRARIES)
FIND_LIBRARY(Fmodex_LIBRARIES NAMES fmodex PATHS ${Fmodex_ROOT}/lib)
ENDIF(NOT Fmodex_LIBRARIES)
IF (Fmodex_INCLUDE_DIRS AND Fmodex_LIBRARIES) IF (Fmodex_INCLUDE_DIRS AND Fmodex_LIBRARIES)
SET(Fmodex_FOUND TRUE) SET(Fmodex_FOUND TRUE)
@@ -28,6 +48,6 @@ IF (Fmodex_FOUND)
ELSE (Fmodex_FOUND) ELSE (Fmodex_FOUND)
# fatal error if Fmod is required but not found # fatal error if Fmod is required but not found
IF (Fmodex_FIND_REQUIRED) IF (Fmodex_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find Fmod...") MESSAGE(FATAL_ERROR "Could not find Fmodex... (aka libfmodex)")
ENDIF (Fmodex_FIND_REQUIRED) ENDIF (Fmodex_FIND_REQUIRED)
ENDIF (Fmodex_FOUND) ENDIF (Fmodex_FOUND)
+1
View File
@@ -12,6 +12,7 @@
<depend package="std_msgs"/> <depend package="std_msgs"/>
<depend package="roscpp"/> <depend package="roscpp"/>
<depend package="rtabmap_lib"/> <depend package="rtabmap_lib"/>
<depend package="fmodex"/>
<rosdep name="libqt4-dev"/> <rosdep name="libqt4-dev"/>
+2 -2
View File
@@ -5,7 +5,7 @@ all: installed
SVN_DIR = build/utilite-svn SVN_DIR = build/utilite-svn
SVN_URL = https://utilite.googlecode.com/svn/trunk/ SVN_URL = https://utilite.googlecode.com/svn/trunk/
SVN_REVISION = -r173 SVN_REVISION = -rHEAD
#SVN_PATCH = opencvVer.patch #SVN_PATCH = opencvVer.patch
include $(shell rospack find mk)/svn_checkout.mk include $(shell rospack find mk)/svn_checkout.mk
@@ -27,4 +27,4 @@ clean:
-cd $(SVN_DIR)/build && make clean -cd $(SVN_DIR)/build && make clean
rm -rf $(INSTALL_DIR) installed rm -rf $(INSTALL_DIR) installed
.PHONY : clean download .PHONY : clean installfmodex
+1
View File
@@ -14,6 +14,7 @@
<versioncontrol type="svn" url="http://utilite.googlecode.com/svn/trunk/"/> <versioncontrol type="svn" url="http://utilite.googlecode.com/svn/trunk/"/>
<depend package="roscpp"/> <depend package="roscpp"/>
<depend package="fmodex"/>
<rosdep name="libqt4-dev"/> <rosdep name="libqt4-dev"/>
<rosdep name="libmp3lame-dev"/> <rosdep name="libmp3lame-dev"/>