Move robot with blends
Project description
Rounding motion for robot Pulse by Rozum Robotics
Requirements
Python 3.6+
pulse-api (pip3 install pulse-api -i https://pip.rozum.com/simple)
pulseapi-integration (pip3 install pulseapi-integration)
Installation
To get the latest version, use the following command:
pip install pulseapi-integration-rounding-motion
Getting started
Examples use the latest version of the library.
Quickstart
from math import pi
from pulseapi_integration import *
from pulseapi_integration_rounding_motion.rounding_motion import rounding_motion
host = "192.168.1.33:8081"
robot = NewRobotPulse(host)
SPEED = 20
x = -0.58
y = -0.20
z = 0.155
robot.set_reference_frame(position([x, y, z], [0, 0, 0]))
targets = [
[position([0.015, 0.072, 0.1], [pi, 0, 0])],
[position([0.015, 0.08, 0.1], [pi, 0, 0], [output_action(1, SIG_HIGH)])],
[position([0.015, 0.09, 0.1], [pi, 0, 0])],
[position([0.015, 0.1234, 0.1], [pi, 0, 0]), [0.003]],
[position([0.0277, 0.1234, 0.1], [pi, 0, 0]), [0.006]],
[position([0.0277, 0.135, 0.1], [pi, 0, 0]), [0.003]],
[position([0.1300, 0.135, 0.1], [pi, 0, 0]), [0.003]],
[position([0.1300, 0.1234, 0.1], [pi, 0, 0]), [0.006]],
[position([0.142, 0.1234, 0.1], [pi, 0, 0]), [0.006]],
[position([0.1425, 0.1345, 0.1], [pi, 0, 0]), [0.003]],
[position([0.2458, 0.135, 0.1], [pi, 0, 0]), [0.003]],
[position([0.2458, 0.1234, 0.1], [pi, 0, 0]), [0.006]],
[position([0.2585, 0.1234, 0.1], [pi, 0, 0]), [0.003]],
[position([0.26, 0.0266, 0.1], [pi, 0, 0]), [0.003]],
[position([0.2473, 0.0266, 0.1], [pi, 0, 0]), [0.006]],
[position([0.2483, 0.015, 0.1], [pi, 0, 0]), [0.003]],
[position([0.144, 0.0137, 0.1], [pi, 0, 0]), [0.003]],
[position([0.144, 0.0261, 0.1], [pi, 0, 0]), [0.006]],
[position([0.132, 0.0261, 0.1], [pi, 0, 0]), [0.006]],
[position([0.132, 0.0145, 0.1], [pi, 0, 0]), [0.003]],
[position([0.0287, 0.015, 0.1], [pi, 0, 0]), [0.003]],
[position([0.0287, 0.0266, 0.1], [pi, 0, 0]), [0.006]],
[position([0.016, 0.0266, 0.1], [pi, 0, 0]), [0.003]],
[position([0.015, 0.0296, 0.1], [pi, 0, 0])],
[position([0.015, 0.04, 0.1], [pi, 0, 0], [output_action(1, SIG_LOW)])],
[position([0.015, 0.08, 0.1], [pi, 0, 0])]
]
home_pose = pose([0, -90, 0, -90, -90, 0])
start_pose = pose([0, -90, 90, -90, -90, 0])
robot.set_pose(home_pose, speed=20)
robot.set_pose(start_pose, speed=20)
robot.run_positions(rounding_motion(targets), speed=SPEED, motion_type=MT_LINEAR)
robot.set_pose(start_pose, speed=20)
New function:
rounding_motion(targets)
Return new_target_list with angle rounding
Target parameters: [position([x, y, z], [r, p, y], [action]), [rounding_radius_in_meters]]
Important! A list of points must consist of three or more points. There should be no rounding radius at the first and last point.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pulseapi_integration_rounding_motion-0.0.5.tar.gz.
File metadata
- Download URL: pulseapi_integration_rounding_motion-0.0.5.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e29a8d522ed7829fe27c9dc2f941baf73cf210344917e94098e4605165b65b45
|
|
| MD5 |
b8e295efb370563c5920b32a239ac782
|
|
| BLAKE2b-256 |
48c1fba2c930af07a25f953212ba14f6971555852ea45c44ab4e504b2b44c197
|
File details
Details for the file pulseapi_integration_rounding_motion-0.0.5-py3-none-any.whl.
File metadata
- Download URL: pulseapi_integration_rounding_motion-0.0.5-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
43c5dcde5ea61007cbc87f43173151f03a5d20fed5f4408d2aaccfa6a62d3a53
|
|
| MD5 |
dcc8d58cc02511800cfbbefb581f138b
|
|
| BLAKE2b-256 |
3f90551020a2566859f4cf7e3ae63e51bf847d695ef8ef854559e76190dd3cab
|