how to use service and subscriber function in same node????
if we are using service and subscriber in different scripts its working but we want write both of them in same script under a single node its not working.Please help me how to write service and subscriber function in same node.
Can you provide the snippet of your node? It may help in identifying the problem.
Please try to use the search and/or Google (add
site:answers.ros.org
to your query). Combining publishers, subscribers, service clients/servers and actions in one node has been discussed many, many times already.There shouldn't be any fundamental problem moving the code for both into one node. I'll second my friends here. Please post the code for the combined node and the two separate nodes and we will be able to help you.