A Foundation Model for Continuous Control
Supports Python >= 3.6
from foundation_model import QuadrotorPolicy
import numpy as np
from scipy.spatial.transform import Rotation as R
policy = QuadrotorPolicy()
position = [0, 0, 0]
orientation = [1, 0, 0, 0]
orientation_rotation_matrix = R.from_quat(np.array(orientation)[[1, 2, 3, 0]]).as_matrix().ravel().tolist()
linear_velocity = [0, 0, 0]
angular_velocity = [0, 0, 0]
previous_action = [0, 0, 0, 0]
observation = np.array([position + orientation_rotation_matrix + linear_velocity + angular_velocity + previous_action])
policy.reset()
action = policy.evaluate_step(observation)
print(action)
Metadata
Release files for foundation-model 0.0.13
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 | |
|---|---|---|---|---|
| foundation_model-0.0.13.tar.gz | 111.3 kB | Without provenance | Details |
Release files / foundation_model-0.0.13.tar.gz
| Download URL | foundation_model-0.0.13.tar.gz |
|---|---|
| Size | 111.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b31727859e7defa3d366f122dd467df8554a2a966804eeaa94e7b4da6cee3ce8
|
|
BLAKE2b-256 checksum How to use checksums |
ac8d480ee82c052016b6a7c818242e89a882621b02ae42dbdce762aed49e91d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for foundation-model 0.0.13
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.