how to use a rosnode as action client as well as simple action client both
I want to use a single node as both action client sending goals to action server as well as simple action client sending to a second simple action server.
in which language? C++, python, node.js?
in python language
@DB yes you can do that. What exactly do you have problems with? Please elaborate...
I have problem in code , to initialize the action client and simple action client in one node , do I have to create two separate classes and write like:
# Initialize Action Client self._ac = actionlib.ActionClient('/action_iot_ros', msgIotRosAction)
#initialize simple action client self._ac = actionlib.ActionClient('/action_turtle', myActionMsgAction)
Is this correct?
I don't understand what you mean with "create two classes". Create two classes that each contain an action client as a member? or instantiate two members in one class? or do you have a class at all?
Maybe you should edit your question and paste in the code that you think should do the trick. This would help in understanding your issues.
Yes, I meant create two classes that each contain an action client as a member
You can actually do all of those. Create two classes each containing an action client, create one class containing both, not have a class and have everything just live in main... This all depends on your use case, if you need to share data from one action client with the other, etc...
Again: Please elaborate and provide clear description of what you issue is, what you've tried, what you don't understand and what you try to achieve in the first place.
Otherwise we cannot help!