Skip to main content

A foundation model for continuous control

Project description

A Foundation Model for Continuous Control

Supports Python >= 3.6

from foundation_model import Quadrotor
import numpy as np
from scipy.spatial.transform import Rotation as R

quadrotor = Quadrotor()
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])
quadrotor.reset()
action = quadrotor.evaluate_step(observation)
print(action)

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

foundation_model-0.0.9.tar.gz (111.3 kB view details)

Uploaded Source

File details

Details for the file foundation_model-0.0.9.tar.gz.

File metadata

  • Download URL: foundation_model-0.0.9.tar.gz
  • Upload date:
  • Size: 111.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for foundation_model-0.0.9.tar.gz
Algorithm Hash digest
SHA256 4b17dc456dd766f2ee90b820745c7397bf06005f4c10e46e090b88b212fb9364
MD5 47deb0f7a8e9af2c278cf9ff6c3e7158
BLAKE2b-256 a23cd819accbad4e0b465f93ab93068715854357bd8b4fcfeb80112fba72ce27

See more details on using hashes here.

Supported by

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