ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I don't know the ros way to do it, and personally I use python subbprocess to run the roscore first:
import subprocess
roscore = subprocess.Popen('roscore')
time.sleep(1) # wait a bit to be sure the roscore is really launched
then your code:
unittest.main() # for instance in my case I need a roscore to run some node tests