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

Revision history [back]

I solved it alone because there's nothing about it on the wiki or other pages (only python)
For who will be in my same situation, I post some code snippet
Here is what is needed to be included

#include <actionlib/client/simple_action_client.h>
#include <sound_play/SoundRequestAction.h>


The definition of the Action Client

typedef actionlib::SimpleActionClient<sound_play::SoundRequestAction> SoundClientTest;


The definition of the Sound Client Goal

sound_play::SoundRequestGoal goal;


All the other things are the same as, for ex, the move base action client.
I hope this could be helpful