rospy.init_node in multiprocessing.Process
Hello everyone,
I have the following setup:
- The main thread which starts a ROS node with services, pubs, and subs
- A multiprocessing.Process which also should start an (anonymous) ROS node that has pubs and subs
So far so good. When I start (fork) the new process before calling rospy.init_node, everything works fine when I start from the command line.
However, when I start the application via roslaunch, I get the following error:
shutdown request: new node registered with same name
It looks like roslaunch/node enforces a new name in every node started as a subprocess. Any ideas how to circumvent the problem?
I found the culprit: https://github.com/strawlab/ros_comm/... Looks like the name mappings override even anonymous nodes.