def rosrun(stack, fname, *params): rosrun_bin = pal_path.get_ros_bin_path('rosrun') process = spawn_command(rosrun_bin, stack, fname, *params) if process is None: raise LaunchError(stack, fname, '[execution failed]')
def roslaunch(stack, fname, *params): roslaunch_bin = pal_path.get_ros_bin_path('roslaunch') launchfile = fname if fname.endswith('.launch') else '%s.launch' % fname process = spawn_command(roslaunch_bin, stack, launchfile, *params) if process is None: raise LaunchError(stack, launchfile, '[execution failed]')