How can I run roscore from python ?
Whenever I launch a node from python using the roslaunch script api :
#Start roslaunch
launch = roslaunch.scriptapi.ROSLaunch()
launch.start()
# start required nodes
empty_srv_node = roslaunch.core.Node('rostful_node', 'emptyService.py', name='empty_service')
empty_srv_process = launch.launch(empty_srv_node)
I get an error on rospy.init_node() because master is not started :
Unable to register with master node [http://localhost:11311]: master may not be running yet. Will keep trying.
Question : How can I run roscore ( not only rosmaster ) from python if needed ? I would expect roslaunch to do it but it seems it doesnt.
Thank you.