ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Compile a node using the C++ sound_play API and catkin

asked 2014-09-16 10:53:04 -0600

hiro64 gravatar image

Hello,

So, I have been trying for a moment to compile a catkin package written in C++ which would use the sound_play package API, but it seems never to find the header <sound_play sound_play.h="">, even though the sound_play package is installed and works normally through rosrun. I have tried to use rosmake in the sound_play package, and can see that the header is indeed in the right place, but still catkin can't find it. Maybe I am forgetting to add an include somewhere? This is ROS groovy I am using.

Thanks for any suggestions.

edit retag flag offensive close merge delete

Comments

If anyone gets into this situation, I have solved it by taking the headers (sound_play.h and SoundRequest.h) directly from the sound_play package and using them as part of the src of my package. This way, one is able to use their functions and the SoundClient class.

hiro64 gravatar image hiro64  ( 2014-09-18 13:58:23 -0600 )edit

That is probably not a solution we should recommend.

joq gravatar image joq  ( 2014-09-18 15:20:34 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-09-16 11:52:07 -0600

ahendrix gravatar image

sound_play in Groovy is a rosbuild package. You can only depend on it from other rosbuild packages, not from catkin. Sorry.

edit flag offensive delete link more

Comments

Oh, how sad for me haha But thanks. Would you happen to know any other way for me to either synthesize voice or play sound files using catkin on groovy?

hiro64 gravatar image hiro64  ( 2014-09-16 18:21:04 -0600 )edit

Question Tools

Stats

Asked: 2014-09-16 10:53:04 -0600

Seen: 372 times

Last updated: Sep 16 '14