Skip to content

shuosha/robot_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot Control

Robot control system for real robot environment setup and operation.

Installation

Prerequisites

Python Environment Setup with uv (Python 3.9)

  1. Create virtual environment with Python 3.9:

    uv venv --python 3.9
  2. Activate the virtual environment:

    source .venv/bin/activate
  3. Install project dependencies:

    uv sync
  4. Install PyTorch with CUDA support (for foundation pose):

    uv pip uninstall setuptools && uv pip install setuptools==69.5.1
    uv pip install torchvision==0.16.0+cu121 torchaudio==2.1.0 torch==2.1.0+cu121 --index-url https://download.pytorch.org/whl/cu121
  5. Install PyTorch3D:

    uv pip install --quiet --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py39_cu118_pyt200/download.html

Hardware Setup

Intel RealSense Camera

  1. Update Ubuntu:

    sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
  2. Install core packages:

    sudo apt-get install libssl-dev libusb-1.0-0-dev libudev-dev pkg-config libgtk-3-dev v4l-utils
  3. Install build tools:

    sudo apt-get install git wget cmake build-essential
  4. Prepare Linux backend and development environment:

    Note: Unplug any connected RealSense cameras before proceeding.

    sudo apt-get install libglfw3-dev libgl1-mesa-dev libglu1-mesa-dev at
  5. Build and install librealsense:

    cd src/third_party/librealsense
    git checkout v2.56.5
    ./scripts/setup_udev_rules.sh
    mkdir build && cd build
    cmake ../ -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=true -DBUILD_PYTHON_BINDINGS:bool=true -DPYTHON_EXECUTABLE=$(which python)
    cd ../../../
    sudo make uninstall && make clean && make -j8 && sudo make install
  6. Test RealSense viewer:

    realsense-viewer

Gello Robot Setup

  1. Install DYNAMIXEL Wizard 2.0:

  2. Add user to dialout group:

    sudo usermod -aG dialout <your_account_id>
    sudo reboot
  3. Clone and setup Gello:

    python scripts/gello_get_offset.py --start-joints 0 -0.79 0 0.52 0 1.31 0 --joint-signs 1 1 1 1 1 1 1 --port /dev/ttyUSB0

    Note: Verify port, baudrate, and robot IP settings as needed.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published