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

You should be able to publish, subscribe, use services in composed nodes the same way you do with regular nodes. Unfortunately the code sample you provided is not enough to help you (and the formatting make it hard to read). How do you compose your nodes? how do you invoke them ?

If it helps, I pushed an example of Node that publishes and subscribes here The main is creating an executor and adding the node to it. To compose more nodes in that process you would need to add more node like it's done in the composition example