Skip to main content

Python API for controlling the Blue robot arm

Project description

blue_interface

[ API Reference ] [ Examples ]

robot arm splash

build mypy lint

Blue Interface is a platform-agnostic Python API for controlling Blue robotic arms. It uses rosbridge 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:

from blue_interface import BlueInterface

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

Installation

From PyPi:

pip install blue_interface

From source:

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blue_interface-0.1.tar.gz (11.7 kB view hashes)

Uploaded Source

Built Distribution

blue_interface-0.1-py3-none-any.whl (12.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page