Wrapper around RobotPulse version >= 1.6.0
Latest PulseApi version: pip3 install pulse-api -i https://pip.rozum.com/simple
Connect to robot:
from pulseapi_integration import *
host = '127.0.0.0:8081'
robot = NewRobotPulse(host)
New function:
set_reference_frame(robot_position)
Set reference frame in the respect to the robot base, further robot works relative it.
robot.set_reference_frame(position([x,y,z],[r,p,w]))
get_reference_frame()
Return a dict with keys 'point' and 'rotation'
robot.get_reference_frame()
>>> {'point': {'x': 0.0, 'y': 0.0, 'z': 0.0},
'rotation': {'roll': 0.0, 'pitch': 0.0, 'yaw': 0.0}}
- run_positions( target_positions, speed=None, velocity=None, acceleration=None, tcp_max_velocity=None, motion_type=MT_JOINT )
Starts the list of points recalculated relative to the reference coordinate system.
target_positions = [
position([x, y, z], [r, p, w]),
position([x, y, z], [r, p, w])
]
robot.run_positions(target_positions, speed=5)
- set_position( target_position, speed=None, velocity=None, acceleration=None, tcp_max_velocity=None, motion_type=MT_JOINT )
Set the robot in the given position. If an reference frame is specified, the robot moves relative to it.
set_position(position([x, y, z], [r, p, w]), speed=5)
untwist()
Allows the robot exit from TWISTED state, after the rotors were manually rotated into ~correct place
robot.untwist()
>>> <Response [503]> (if all is OK)
move_along_axis(axis, distance, velocity)
Allows to move along one of each axis: 'x', 'y', 'z', 'roll', 'pitch', 'yaw' at a given distance, at a specified speed
axis = 'x'
distance = 0.1
velocity = 1
robot.move_along_axis(axis, distance, velocity)
stop_by_digital_input(number_of_input)
Stop the robot from the Digital Input
number_of_DI = 1
robot.stop_by_digital_input(number_of_DI)
- sensing( axis, detect_distance, velocity, retract_distance=0.01, retract_velocity=0.3, number_of_input=1 )
Mini case.
axis = 'x'
detect_distance = 0.1
velocity = 1
robot.sensing(axis, detect_distance, velocity)
get_position_rel_base()
Returns the position relative to the base, even if an reference frame is specified.
robot.get_position_rel_base()
>>> {'point': {'x': -0.09161, 'y': -0.2911, 'z': 1.07063},
'rotation': {'roll': 3.08421, 'pitch': 0.72008, 'yaw':0.17362}}
- go_home( speed=None, velocity=None, acceleration=None, tcp_max_velocity=None, motion_type=MT_JOINT )
Return the robot on home position pose[0, -90, 0, -90, -90, 0]
robot.go_home()
Metadata
Release files for pulseapi-integration 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pulseapi_integration-0.1.3.tar.gz | 7.6 kB | Without provenance | Details for pulseapi_integration-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pulseapi_integration-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for pulseapi_integration-0.1.3-py3-none-any.whl |
Total release size: 16.2 kB
Release files / pulseapi_integration-0.1.3.tar.gz
| Download URL | pulseapi_integration-0.1.3.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a18702c57fc43d5f4d73970440c55db4bf0a2b8fb4a30620fcb29554d5d9580e
|
|
BLAKE2b-256 checksum How to use checksums |
9e7e3e1565a599f6fcb19796e220f8cea925d4a58d71626d3e7524b23d1f47a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
|
Release files / pulseapi_integration-0.1.3-py3-none-any.whl
| Download URL | pulseapi_integration-0.1.3-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e902145f9b606cf21c66d0a8d9ce9bc80af98734307af6fb2714e35ad445be71
|
|
BLAKE2b-256 checksum How to use checksums |
1d6f9713e9f800e18b4510f7c6ac671bd2b6335078f24919422047f200ca4be2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.0
|
Security for pulseapi-integration 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.