Skip to main content

Library used to control the Orbita actuator

Project description

Orbita python module

Actuator description

To control this actuator, a vector must be used to represent the orientation of the platform. An angle must also be identified to know the rotation of the platform on its own Z axis.

The orbita library allows the user to chose the orientation of the platform by typing a vector and an angle and to get the angles of the disks needed to do this rotation of the platform.

It also allows the user to use a quaternion (which can be provided by another system) to represent the rotation of the platform and get the angles of the disks.

Installation

Use the package manager pip to install the orbita library.

pip install orbita

Usage

from orbita import *
a = Actuator([0,0,85],[0,0,65],35) #Creates the actuator object
a.get_new_frame_from_vector(vector,angle) #returns new X,Y,Z vectors coordinates
a.get_angles_from_vector(vector,angle) #returns q11,q12 and q13 angles values
a.get_new_frame_from_quaternion(quaternion) #returns new X,Y,Z vectors coordinates
a.get_angles_from_quaternion(quaternion) #returns q11,q12 and q13 angles values

The last method needs the last angular position of the disks and an offset of 360°. These values need to be reset everytime the user reset the position of the disks.

a.reset_last_angles()
a.reset_offset()

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

orbita-0.3.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

orbita-0.3.1-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file orbita-0.3.1.tar.gz.

File metadata

  • Download URL: orbita-0.3.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for orbita-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a3087e4cebec2a0f9ebb45ec13f84dc67edd1a45e183066d5ec117db8785d10f
MD5 f4c6a54437bbeadb135cf29e22b728a2
BLAKE2b-256 d09e0de5b5cf7203fc4375b618a48eba23d4de73f765fc3b27d2a914565d37fa

See more details on using hashes here.

File details

Details for the file orbita-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: orbita-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 9.1 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/41.2.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.8.1

File hashes

Hashes for orbita-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60983901f1f5e154fb82861a38494e3cd94155774703b40f04652bf00ca17a9c
MD5 2a434db73b20748d8209b2cefe9cd8f5
BLAKE2b-256 aaf91292ef50d34c25f4b23e56174a5182b731ad23c172125f8d6b963365c0ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page