pib3¶
Inverse kinematics and trajectory generation for the PIB humanoid robot.
-
What is pib3?
A Python library that enables the PIB robot to draw images using its arm. Convert any image to robot arm trajectories.
-
Quick & Easy
Just three lines of code to convert an image to a trajectory and run it on your robot.
-
Multiple Backends
Works with real robots and Webots simulation.
-
Intuitive Control
Control joints using simple percentages (0-100%) instead of radians.
-
Audio System
Play audio, record from microphones, and use text-to-speech on the robot.
Features¶
- Image to Trajectory: Convert any image to robot drawing trajectories
- Joint Enum: IDE tab completion for joint names (
Joint.ELBOW_LEFT) - Percentage Control: Use 0-100% values that work across all backends
- Real Robot Support: Connect via rosbridge websocket
- Webots Integration: Full simulator support
- Audio Playback & Recording: Play sounds, record from microphones, text-to-speech
- Camera & AI: Stream camera images and run AI detection models
Quick Example¶
import pib3
from pib3 import Robot, Joint
# Convert image to trajectory
trajectory = pib3.generate_trajectory("drawing.png")
# Execute on robot with IDE tab completion
with Robot(host="172.26.34.149") as robot:
robot.set_joint(Joint.ELBOW_LEFT, 50.0) # Use Joint enum
robot.run_trajectory(trajectory)
Installation¶
See the Installation Guide for detailed instructions.
Getting Started¶
-
Set up pib3 on Linux or Windows with virtual environments.
-
Get up and running in 5 minutes with simple examples.
-
Calibrate joint limits for accurate percentage-based control.
Tutorials¶
Learn how to use pib3 effectively:
- Image to Trajectory - Convert images to robot movements
- Controlling the Robot - Master the joint control API
- Camera, AI & IMU - Stream camera, run AI models, read sensors
- Audio System - Play audio, record, text-to-speech
- Working with Sketches - Manipulate sketches programmatically
- Custom Configurations - Fine-tune all parameters
API Reference¶
- Core Types - Joint enum, Stroke, Sketch, Trajectory
- Configuration - All configuration options
- Backends - Robot, Webots
- Audio System - Playback, recording, text-to-speech
- Camera & AI - Camera streaming, AI detection, IMU sensors
Project Links¶
License¶
MIT License - see LICENSE for details.