Is it possible to launch multiple nodes from one python script?
I see that rospy.init_node()
can only be called once per process in the official documentation on nodes.
I'm trying to write a script that allows for two-way communication (one message publisher and one message subscriber) to interact with a single object. If I have to keep the publisher in one script and the subscriber in another, I'll have a bit of a mess on my hands if I want to interact with the single object.
Is there a simple way of spawning multiple nodes (one talker, one listener, in this case) from one single process?