I'm not sure about roslaunch implementation, but extending roslaunch syntax with plugin-in style seems nice, so adding <custom-tag name="shpinxdoc" script="" /> <custom-tag name="rtconnect" script="/foo/bar/rtconnect.py" /> int roslaunch OR support "rospack roslaunch" as "rospack langs" and if system found <custom-roslaunch-package>/launch/rtconnect.py, then check rtconnect tag and invoke rtconnect.py script. ???