Skip to content

Commit

Permalink
Install sounds. Fixes #29.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahendrix committed Jan 20, 2014
1 parent 790f6e8 commit f5a1355
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sound_play/CMakeLists.txt
Expand Up @@ -33,3 +33,6 @@ install(FILES

install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})

install(DIRECTORY sounds
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
2 changes: 1 addition & 1 deletion sound_play/scripts/soundplay_node.py
Expand Up @@ -301,7 +301,7 @@ def __init__(self):
rospy.init_node('sound_play')
self.diagnostic_pub = rospy.Publisher("/diagnostics", DiagnosticArray)

rootdir = os.path.join(os.path.dirname(__file__),'..','sounds')
rootdir = os.path.join(roslib.packages.get_pkg_dir('sound_play'),'sounds')

self.builtinsoundparams = {
SoundRequest.BACKINGUP : (os.path.join(rootdir, 'BACKINGUP.ogg'), 0.1),
Expand Down

0 comments on commit f5a1355

Please sign in to comment.