#!/usr/bin/env python
import commands
import os,sys,string
import re
if __name__ == '__main__' :
p = commands.getoutput("pgrep roscore ")
commands.getoutput("kill %s " % p)
import commands
import os,sys,string
import re
if __name__ == '__main__' :
p = commands.getoutput("pgrep roscore ")
commands.getoutput("kill %s " % p)