Elite EC Series Python SDK
Introduction
There was no Python SDK for the Elite EC Series of Cobots, so I decided to make one. This SDK is based on the ELITE ROBOTS EC Series Programming Manual, provided by Elite Robots. The official manual provides functions that establish socket communication for controlling the robot. This SDK is the more pythonic version of the official manual.
Usage
Please insure that the robot is in remote mode when using this SDK.
You can instantiate a robot class for each robot, the robot class requires IP address at the time of object creation.
warehouse_bot = Robot("192.168.0.1")
You need to follow these steps to send commands to the robot.
- Instantiate a new robot object with IP and Port (by default Robot class uses Port 8055).
- Make connection to the robot.
- Send commands to the robot using the execute function or set variables using setVariable function.
- After usage is over, You should ideally disconnect the robot using disconnect function.
Example Program
import robot
warehouse_bot = Robot("192.168.0.1")
# Connect to the robot
connection, message = warehouse_bot.connect()
print(message)
if connection:
# Accessing the value of System Variable B at address 1
_, result = warehouse_bot.getVariable("SysVarB", 1)
print("Value of SysVarB at addr 1: ", result)
# Executing pause_trajectory command mentioned in the Programming Manual
_, result = warehouse_bot.execute("pause_trajectory")
print(result)
# Disconnection the robot
result, message = warehouse_bot.disconnect()
print(message)
Further Development
This SDK was made for the sole purpose of making my projects using this robot, easy to read and understand, the official "SDK", requires many lines of code to be written each time and it is difficult to understand.
Metadata
Release files for elite-ec-sdk 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| elite-ec-sdk-0.0.2.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| elite_ec_sdk-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / elite-ec-sdk-0.0.2.tar.gz
| Download URL | elite-ec-sdk-0.0.2.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
859bd4d0333b0cf37dda0ae6de1befc4952f7729ee403e8d6148842388aecc32
|
|
BLAKE2b-256 checksum How to use checksums |
0160505ea9da79b4ae2e8abee1482cbc60615ff88386f8b38492236e851b08ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|
Release files / elite_ec_sdk-0.0.2-py3-none-any.whl
| Download URL | elite_ec_sdk-0.0.2-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b300c6ad3c277627d0474ac317c506265f21769c24cb501a47840f684e003bb2
|
|
BLAKE2b-256 checksum How to use checksums |
c3cbecb6765b1f7a307bc1c8d66cec6ebab4250ecfa8459523df47918ccea25f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.1
|