Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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?

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 * 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?