roslaunch python api access node class
Hello, I have been trying to use the roslaunch python API (http://wiki.ros.org/roslaunch) to instantiate a node and launch it. My question is, is it possible to access the node to be dispatched variables using this API? I tried applying this example to my use-case but without any success:
import roslaunch
package = 'rqt_gui'
executable = 'rqt_gui'
node = roslaunch.core.Node(package, executable)
launch = roslaunch.scriptapi.ROSLaunch()
launch.start()
process = launch.launch(node)
print process.is_alive()
process.stop()
(from http://wiki.ros.org/roslaunch/API%20U...)
EDIT: Is there any way of getting the launched node name? That would work as well for my use-case.