Skip to content

Commit

Permalink
Updated brakes.py example
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSchneider42 committed Jun 12, 2024
1 parent cc45236 commit 9d71409
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions examples/brakes.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
from argparse import ArgumentParser
from time import sleep
import argparse
from franky import RobotWebSession

from franky import Robot


if __name__ == '__main__':
parser = ArgumentParser(description='Control Franka Emika Panda Desk interface remotely.')
parser.add_argument('--host', default='172.16.0.2', help='FCI IP of the robot')
parser.add_argument('--user', default='admin', help='user name to login into Franka Desk')
parser.add_argument('--password', help='password')
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Unlock the brakes of a Franka robot.")
parser.add_argument("host", type=str, help="FCI IP of the robot")
parser.add_argument("user", type=str, help="Login username of Franka desk")
parser.add_argument("password", type=str, help="Login password of Franka Desk.")

args = parser.parse_args()

with Robot(args.host, args.user, args.password) as api:
# api.lock_brakes()
api.unlock_brakes()
with RobotWebSession(args.host, args.user, args.password) as robot_web_session:
# robot_web_session.lock_brakes()
robot_web_session.unlock_brakes()

0 comments on commit 9d71409

Please sign in to comment.