This repository provides a Python script (ur10_control.py) for controlling a UR10 robot using the URX library. The script allows users to connect to a UR10 robot, move it to a specified position, rotate it around its fixed position, and perform other basic operations.
This repository provides a simple Python script to control a UR10 robot. The script utilizes the urx
library for communication with the robot over the network.
Before running the script, ensure that you have the following:
- Python installed on your system
- The
urx
library installed (can be installed via pip:pip install urx
) - The IP address of your UR10 robot
- Clone this repository to your local machine:
git clone https://github.com/yourusername/ur10-python-control.githttps://github.com/codershiyar/ur10-python-control
- Navigate to the repository directory:
cd ur10-python-control
-
Open the
ur10_control.py
file and replace"192.168.1.100"
with the IP address of your UR10 robot. -
Run the script:
python ur10_control.py
This will connect to the robot, move it to a specified position, pause for safety, stop the robot, and disconnect from it.
You can customize the script by modifying the target position in the ur10_control.py
file. Additionally, you can adjust the acceleration and velocity parameters for the movement.
Replace "192.168.1.100" in the Python script and the README.md file with the actual IP address of your UR10 robot.