Utility to quickly map servos on an adafruit I2C driver board, to proper names. Can produce a yaml output file, useful as input for other robotics applications.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

49 lines
879 B

from MikesServoMapper import MikesServoMapper
import argparse
def main():
parser = argparse.ArgumentParser(
prog="Mike's Servo Mapper (for adafruit driver board)"
)
parser.add_argument(
"--config", "--config-file",
help="Path to a yaml file describing some configuration stuffs",
required=False,
default=None,
dest="config_file"
)
parser.add_argument(
"--name",
help="Specify a target name (can be used multiple times)",
required=False,
default=[],
action="append",
dest="names"
)
parser.add_argument(
"--output", "--output-path",
help="Override the default mapping output path",
required=False,
default=None,
dest="output_file"
)
args = parser.parse_args()
mapper = MikesServoMapper(
config_file=args.config_file,
names=args.names,
output_file=args.output_file
)
mapper.run()
if __name__ == "__main__":
main()