00001 Dependencies = []
00002
00003 def execute(macro, args):
00004 if (args[0] == '<' and args[-1] == '>'):
00005 return macro.formatter.emphasis(1) + macro.formatter.code(1) + macro.formatter.text(args) + macro.formatter.code(0) + macro.formatter.emphasis(0)
00006 type_ = args.split()[0]
00007 splits = type_.split('/')
00008 if len(splits) != 2:
00009 return "invalid message type for MsgLink(srv/type)"
00010 pkg, base = splits
00011 return macro.formatter.url(1, "http://ros.org/doc/api/%s/html/srv/%s.html"%(pkg, base)) + macro.formatter.text(type_)+ macro.formatter.url(0)