Metadata-Version: 2.1
Name: blue-interface
Version: 0.1
Summary: Python API for controlling the Blue robot arm
Home-page: http://github.com/berkeleyopenarms/blue_interface
Author: Rachel Thomasson, Brent Yi, Philipp Wu, Greg Balke
Author-email: brentyi@berkeley.edu
License: BSD
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: ws4py
Requires-Dist: PyDispatcher
Requires-Dist: numpy
Requires-Dist: enum34
Requires-Dist: typing

# blue_interface

[
**[API Reference](https://blue-interface.readthedocs.io)**
] [
**[Examples](https://github.com/berkeleyopenarms/blue_interface/tree/master/examples)**
]


![robot arm splash](https://brentyi.github.io/filestore/blue_single_arm_resized.png)

![build](https://github.com/berkeleyopenarms/blue_interface/workflows/build/badge.svg)
![mypy](https://github.com/berkeleyopenarms/blue_interface/workflows/mypy/badge.svg?branch=master)
![lint](https://github.com/berkeleyopenarms/blue_interface/workflows/lint/badge.svg)

Blue Interface is a platform-agnostic Python API for controlling Blue robotic
arms. It uses [rosbridge](https://github.com/RobotWebTools/rosbridge_suite) to
communicate with Blue's ROS-based control system over a network connection.

**Features:**

- No dependency on ROS (or any particular version of Ubuntu)
- Easy connection to multiple robots
- Support for both Python 2 and 3
- Support for Mac, Windows, and Linux
- Support for Jupyter Notebooks

It's designed to be lightweight and easy-to-use! Sending a Blue "right" arm to
its zero position, for example, is as simple as:

```python
from blue_interface import BlueInterface

blue = BlueInterface(side="right", ip="127.0.0.1")
blue.set_joint_positions([0] * 7)
```

### Installation

From PyPi:

```sh
pip install blue_interface
```

From source:

```sh
git clone https://github.com/berkeleyopenarms/blue_interface.git
cd blue_interface
pip install -e .
```

### Examples

- `gripper_controller.py` - An example of opening and closing Blue's gripper.
- `inverse_kinematics.py` - An example of sending Blue an end effector pose
  command.
- `print_status.py` - An example of reading state and printing values from Blue.
- `zero_position.py` - An example of sending Blue a command in joint space.


