Communication driver for Techman robots
Project description
What is techmanpy
?
techmanpy
is an easy-to-use communication driver for Techman robots written in Python.
With it, motion commands can be executed, internal parameters can be changed and the state of the robot can be monitored: providing a solid foundation for any custom (ROS) control software.
By using asyncio
for all socket communications, it provides an elegant coroutine-based API.
Here's how to command your robot to move:
#!/usr/bin/env python
import asyncio
import techmanpy
async def move():
async with techmanpy.connect_sct(robot_ip='<robot IP address>') as conn:
await conn.move_to_joint_angles_ptp([10, -10, 10, -10, 10, -10], 0.10, 200)
asyncio.run(move())
And here's how to listen to the TMFlow server:
#!/usr/bin/env python
import asyncio
import techmanpy
async def listen():
async with techmanpy.connect_svr(robot_ip='<robot IP address>') as conn:
conn.add_broadcast_callback(print)
await conn.keep_alive()
asyncio.run(listen())
Requirements
TMFlow: 1.80+
Python: 3.8+
Installation
$ python3 -m pip install techmanpy
Test connection with TMFlow
To verify that your connection with the robot is all set-up:
$ python3 test_connection.py <robot IP address>
What else?
Bug reports, patches and suggestions are welcome! Feel free to open an issue or send a pull request.
techmanpy
is not affiliated, authorized, or in any way officially connected with Techman Robot. Use this software at your own risk, it did not undergo any official quality assurance.
This package is released under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file techmanpy-1.2.tar.gz
.
File metadata
- Download URL: techmanpy-1.2.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08c71dc27492609aaa3191d124e2e97ebb7ca136c6c3d79846b32f8bf1f42eea |
|
MD5 | 5caf62a1ad85b3246da839da80f7ff87 |
|
BLAKE2b-256 | 9f59c0379d867fcede067604c504d47f8ed590405e693cc1117ada56474b1fcd |
File details
Details for the file techmanpy-1.2-py3-none-any.whl
.
File metadata
- Download URL: techmanpy-1.2-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c55b5adef1467ec1092649fc7aef7f98273ce784322a8025df21e13e63520ad |
|
MD5 | 637fbccd4ab6e5824fd773b3e8b07089 |
|
BLAKE2b-256 | addecc7cfaeee6ad1a46caeba2d91f2d28f148a46c42bfa555f0a073404d92fc |