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

Revision history [back]

click to hide/show revision 1
initial version

I don't think this is possible as the sound_play::Soundclient only publishes requests but does not listen for any feedback. I also don't understand your code. How is your feedback-object linked to the Soundclient? Does this piece of code even compile? (and btw: .playing is not a function)

You could run the soundplay_node in sound_play. This nodes offers an SoundRequest-ActionServer to which you can send your goal and wait for the result. In my experiements, the result-message came around 2 seconds after the sound really finished, but you could check that with your setup.