ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
As far as I know, roscpp only creates one node per process. Multiple calls to ros::init()
will not actually create multiple nodes. This function actually protects itself against repeated calls using an initialized
flag to bypass many operations if called more than once.
If you need to create multiple nodes in a single process, I suggest you look into nodelets. These are fully supported, and are the typical method used to combine nodes for image processing.
See this question for more discussion.