Skip to main content

SuperBot

SuperBot is a modern, modular robotics framework designed for controlling dual-arm piper robots and other robotic systems. It provides a clean, intuitive API for robot control, sensor integration, and utility functions.

Features

  • Modular architecture with separate modules for bots, sensors, and utilities
  • Dual-arm piper robot control interface
  • Sensor management system
  • Utility functions for robotics operations
  • Clean, well-documented API

Installation

pip install superbot

OpenCV 摄像头预览(Linux)

如果你只想快速查看 USB 摄像头画面,可以直接使用仓库里的 see_umi.py

1) 安装依赖

pip install opencv-python

2) 查看可用摄像头编号

python find_opencv.py

输出会显示可用摄像头编号(如 012)。

3) 启动预览

默认打开 source=0

python see_umi.py

指定摄像头编号:

python see_umi.py --source 1

推荐参数(兼容性较好):

python see_umi.py --source 0 --format MJPG --backend v4l2 --width 640 --height 480 --fps 30

退出:按 qEsc

4) 常用参数

  • --source:摄像头设备号(默认 0
  • --format:像素格式,支持 AUTO / MJPG / YUYV
  • --backend:采集后端,支持 v4l2 / auto
  • --width --height:目标分辨率
  • --fps:目标帧率

5) 画面异常排查

当出现花屏、偏色、卡顿时,通常是像素格式或分辨率不匹配:

  1. 优先尝试 MJPG

    python see_umi.py --source 0 --format MJPG --backend v4l2 --width 640 --height 480
    
  2. 若仍异常,改为 YUYV

    python see_umi.py --source 0 --format YUYV --backend v4l2 --width 640 --height 480
    
  3. 观察程序启动时打印的实际参数(format/size/fps),确认驱动是否应用了你的设置。

Quick Start

from superbot import RobotWrapper

# Initialize the robot wrapper with CAN interfaces
robot = RobotWrapper(can_interfaces=("can_left", "can_right"))

# Move to a specific pose
import numpy as np
target_pose = np.eye(4)  # 4x4 identity matrix as example
robot.move_to_pose(left_target=target_pose, right_target=target_pose)

# Close the grippers halfway
robot.set_gripper(0.5, 0.5)

# Get current robot state
state = robot.get_current_state()
print(state)

Architecture

SuperBot follows a modular design:

  • bots: Contains robot-specific implementations (dual_piper, etc.)
  • sensors: Sensor management and interfaces
  • utils: Common utility functions for robotics operations
  • transport: Zero-copy instant VLA data transportation lib powered by memap && zeromq, fastest solution to sending data to poliy server.

Zero Transport

zero transport uses zmq and mmap for zero-copy data sharing, unlike most VLA policy server using http sending msgpack or binary, we are currently support data types contains:

  • array;
  • string (scalars);

Remote policy servers also expose a quick connectivity check by default:

curl http://<server-host>:8080/echo
# hello world, superbot

Contributing

Contributions are welcome! Please see the contributing guidelines for details.

报错记录

load extensions from /home/lumos7/miniconda3/envs/startouch/lib/python3.10/site-packages/extensions 2026-03-23 19:14:56.429 | ERROR | superbot.bots.dual_touch:_import_single_arm_right:107 - 无法导入 SingleArm,请确认 /home/lumos7/startouch-v1/interface_py 下存在 startouchclass.py: libstartouch.so: cannot open shared object file: No such file or directory client.sh: 行 12: --instruction: 未找到命令

修复:

编辑库配置文件

sudo nano /etc/ld.so.conf.d/startouch.conf

在文件中添加一行库文件所在的目录路径(替换成你实际的路径)

/home/lumos7/startouch-v1/lib

保存退出(按 Ctrl+O 回车,再按 Ctrl+X)

更新系统库缓存

sudo ldconfig

验证(能看到 libstartouch.so 即可)

ldconfig -p | grep startouch

Download files

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

Source Distribution

superbot2-0.1.3.tar.gz (120.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

superbot2-0.1.3-py3-none-any.whl (152.6 kB view details)

Uploaded Python 3

File details

Details for the file superbot2-0.1.3.tar.gz.

File metadata

  • Download URL: superbot2-0.1.3.tar.gz
  • Upload date:
  • Size: 120.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for superbot2-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8aaef70c0ba030679defcba16a556d179ba97ceb032537df3a8899b07fdc9cf4
MD5 895d15457396a4bdaa07c07860b090a8
BLAKE2b-256 921559ade27a2858cc23500de58ef0392d17c21f6da353f844c2e2997c3532fc

See more details on using hashes here.

File details

Details for the file superbot2-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: superbot2-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 152.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for superbot2-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 15ec01aecedc49eeb5bd698f543692068bf6253f415416b6109d7a805f2dee1e
MD5 9ed7b3479dabac74239c442879630b1d
BLAKE2b-256 ebed2ecfd3880931f89e2ac95bfb76d7ff4f94a602f8565bc3b02edc1399f55c

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page