Skip to content

Commit

Permalink
fixed missing robot_name arg
Browse files Browse the repository at this point in the history
  • Loading branch information
gaddison-bdai committed Jan 30, 2025
1 parent 56168d8 commit 417495f
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions spot_examples/spot_examples/arm_walk_to_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,29 @@ def arg_float(x):
return x


## example from hello_spot.py
# def cli() -> argparse.ArgumentParser:
# parser = argparse.ArgumentParser()
# parser.add_argument("--robot", type=str, default=None)
# return parser
#
#
# @ros_process.main(cli())
# def main(args: argparse.Namespace) -> None:
# hello_spot = HelloSpot(args.robot)
# hello_spot.initialize_robot()
# hello_spot.stand_default()
# hello_spot.stand_twisted()
# hello_spot.stand_3_pt_traj()
#

def cli() -> argparse.ArgumentParser:
parser = argparse.ArgumentParser()
# parser.add_argument("--robot", type=str, default=None)
parser.add_argument('-i', '--image-source', help='Get image from source',
default='frontleft_fisheye_image')
parser.add_argument('-d', '--distance', help='Distance from object to walk to (meters).',
default=None, type=arg_float)
parser.add_argument("--robot", type=str, default=None)
# parser.add_argument('-i', '--image-source', help='Get image from source',
# default='frontleft_fisheye_image')
# parser.add_argument('-d', '--distance', help='Distance from object to walk to (meters).',
# default=None, type=arg_float)
return parser


Expand Down

0 comments on commit 417495f

Please sign in to comment.