arguments for scripts(maybe useful?)
This commit is contained in:
@@ -140,9 +140,12 @@ if __name__ == '__main__':
|
||||
|
||||
rospy.init_node('masterloop')
|
||||
ap = ArgumentParser()
|
||||
ap.add_argument('-i', '--autoimitate',
|
||||
help='Switch between moving and imitating automatically',
|
||||
action='store_true')
|
||||
aig = ap.add_mutually_exclusive_group(required=False)
|
||||
aig.add_argument('--autoimitate', dest='autoimitate',
|
||||
action='store_true')
|
||||
aig.add_argument('--no-autoimitate', dest='autoimitate',
|
||||
action='store_false')
|
||||
ap.set_defaults(autoimitate=False)
|
||||
args, _ = ap.parse_known_args()
|
||||
|
||||
AI = args.autoimitate
|
||||
|
||||
Reference in New Issue
Block a user