44
55import rcs_fr3
66import typer
7- from rcs_fr3 .desk import load_creds_fr3_desk
7+ from rcs_fr3 .desk import load_creds_franka_desk
88
99logger = logging .getLogger (__name__ )
1010
@@ -25,7 +25,7 @@ def home(
2525 unlock : Annotated [bool , typer .Option ("-u" , help = "unlocks the robot" )] = False ,
2626):
2727 """Moves the FR3 to home position"""
28- user , pw = load_creds_fr3_desk ()
28+ user , pw = load_creds_franka_desk ()
2929 rcs_fr3 .desk .home (ip , user , pw , shut , unlock )
3030
3131
@@ -35,7 +35,7 @@ def info(
3535 include_gripper : Annotated [bool , typer .Option ("-g" , help = "includes gripper" )] = False ,
3636):
3737 """Prints info about the robots current joint position and end effector pose, optionally also the gripper."""
38- user , pw = load_creds_fr3_desk ()
38+ user , pw = load_creds_franka_desk ()
3939 rcs_fr3 .desk .info (ip , user , pw , include_gripper )
4040
4141
@@ -44,7 +44,7 @@ def lock(
4444 ip : Annotated [str , typer .Argument (help = "IP of the robot" )],
4545):
4646 """Locks the robot."""
47- user , pw = load_creds_fr3_desk ()
47+ user , pw = load_creds_franka_desk ()
4848 rcs_fr3 .desk .lock (ip , user , pw )
4949
5050
@@ -53,7 +53,7 @@ def unlock(
5353 ip : Annotated [str , typer .Argument (help = "IP of the robot" )],
5454):
5555 """Prepares the robot by unlocking the joints and putting the robot into the FCI mode."""
56- user , pw = load_creds_fr3_desk ()
56+ user , pw = load_creds_franka_desk ()
5757 rcs_fr3 .desk .unlock (ip , user , pw )
5858 with rcs_fr3 .desk .Desk (ip , user , pw ) as d :
5959 d .activate_fci ()
@@ -66,7 +66,7 @@ def fci(
6666 shutdown : Annotated [bool , typer .Option ("-s" , help = "After ctrl+c shuts the robot down" )] = False ,
6767):
6868 """Puts the robot into FCI mode, optionally unlocks the robot. Waits for ctrl+c to exit."""
69- user , pw = load_creds_fr3_desk ()
69+ user , pw = load_creds_franka_desk ()
7070 try :
7171 with rcs_fr3 .desk .FCI (rcs_fr3 .desk .Desk (ip , user , pw ), unlock = unlock , lock_when_done = False ):
7272 while True :
@@ -83,7 +83,7 @@ def guiding_mode(
8383 unlock : Annotated [bool , typer .Option ("-u" , help = "unlocks the robot" )] = False ,
8484):
8585 """Enables or disables guiding mode."""
86- user , pw = load_creds_fr3_desk ()
86+ user , pw = load_creds_franka_desk ()
8787 rcs_fr3 .desk .guiding_mode (ip , user , pw , disable , unlock )
8888
8989
@@ -92,7 +92,7 @@ def shutdown(
9292 ip : Annotated [str , typer .Argument (help = "IP of the robot" )],
9393):
9494 """Shuts the robot down"""
95- user , pw = load_creds_fr3_desk ()
95+ user , pw = load_creds_franka_desk ()
9696 rcs_fr3 .desk .shutdown (ip , user , pw )
9797
9898
0 commit comments