Using the Rethink Sawyer Arm¶
One of the main goals of perls2 is to make it easier to work with real robots. Currently SVL has two types of robotic arms, the Rethink Sawyer Arm and the Franka Emika Panda.
Using Real Robots¶
To set up a test for real robots, perls2 provides several bash scripts. These scripts set up the environments and run the necessary for processes for running real robot control.
Instructions for using the Sawyer Arms.¶
The following instructions use tmux to create multiple windows in the same terminal.
From the workstation:
Open a terminal
ssh into the nuc
ssh [user_name]@[nuc_id]
Make sure you have the E-STOP ready.
Run the following commands:
cd ~/perls2;
./scripts/start_sawyer_control.sh ~/perls2_local_control_pc
The robot should move to the reset position.
Open a new terminal.
Source your perls2 env and run your code! For example, run the Gravity Compensation demo.
python perls2/demos/run_gc_demo.py --world=Real
Torque control.¶
Torque control for real robots requires fast control frequencies (500Hz - 1kHz) for stability. Because of this, we use a separate computer other than the work station for sending these torque commands to the robot. This computer (a NUC) has nothing else running, which reduces latency for the control loop.
Rethink Sawyer Infrastructure¶
To use the Rethink Sawyer arms, we have to use ROS-kinetic. Unfortunately ROS-kinetic only works with python 2.7, which has been outdated for some time. To overcome this limitation, we use Redis, an in-memory database to communicate between the process running on the workstation and the process sending torque commands the sawyer that runs on the NUC.