8000 GitHub - typhoidcoma/robot-arm-controller: Xbox Controller Robot Arm Controller
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

typhoidcoma/robot-arm-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robot Arm Controller

Robot Arm

This project simulates a robot arm using MuJoCo and Pygame. It reads inputs from an Xbox-Controller and updates the simulated robot's joints in real time.

Dependencies

Install dependencies via pip:

pip install pygame mujoco numpy

Usage

  1. Connect an Xbox controller.
  2. Ensure the MuJoCo model file is available at robots\trs_so_arm100\scene.xml.
  3. Run the simulation:
python xbox_mujoco_soarm100.py
# or
python xbox_controller_phospho_soarm100.py

Project Structure

  • src/utils/simulation_process.py: Main simulation loop using Pygame and MuJoCo.
  • Other files and scripts can be added as needed.

Features

  • Analog Stick Control:
    • Left Stick:
      • Vertical Axis: Controls forward/backward motion (affects the X-axis).
      • Horizontal Axis: Controls left/right motion (affects the Y-axis).
    • Right Stick:
      • Vertical Axis: Controls up/down motion (affects the Z-axis).
  • Gripper Control:
    • Right Trigger: Adjusts the gripper position continuously based on how hard the trigger is pressed. A fully pressed trigger closes the gripper (0.0), and a released trigger keeps it open (1.0).
  • User Position Configuration:
    • At startup, you are prompted to enter 1 if you are behind the robot or 2 if you are facing the robot. This setting determines how the left stick inputs are mapped to the X and Y axes.

Prerequisites

  • Python 3.6+
  • pygame (for reading Xbox controller inputs)
  • requests (for HTTP requests)

Installation

  1. Clone the Repository:

    git clone https://github.com/yourusername/robot-arm-controller.git
    cd robot-arm-controller

About

Xbox Controller Robot Arm Controller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0