sound_play action client c++
Hi all
Anyone knows how to use the sound_play action_lib client request c++ version?
I've see that only a python test file is available.
Thank you so much
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
Hi all
Anyone knows how to use the sound_play action_lib client request c++ version?
I've see that only a python test file is available.
Thank you so much
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
Asked: 2017-07-17 12:25:58 -0500
Seen: 281 times
Last updated: Aug 02 '17
How to correctly declare a Polygon message
Best practices to use subscriber inside a class
Generic message to JSON converter in C++?
Changing Festival voice used by ROS.
Using boost::bind to pass additional arguments to my subscriber callback fails
How to load CollisionObject or PointCloud files via ROS C++ API
Using Catkin with CMake Interface Library
some of the examples in C++ are given here.