6 from argparse
import ArgumentParser
12 if __name__ ==
'__main__':
13 rospy.init_node(
"julius_cli")
16 p.add_argument(
"-i",
"--isolated", help=
"isolated word recognition",
18 p.add_argument(
"-n",
"--name", help=
"name of grammar / vocabulary",
20 p.add_argument(
"path_or_words", nargs=
'+', type=str)
22 print(rospy.myargv()[1:])
24 args = p.parse_args(rospy.myargv()[1:])
29 if len(args.path_or_words) < 1:
30 p.error(
"Need at least one word to register")
31 words = args.path_or_words
34 if len(args.path_or_words) != 1:
35 p.error(
"Only one path supported")
36 path = args.path_or_words[0]
def register_isolated(name, words)
def register_grammar(name, path)