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_policy-0.0.9.tar.gz (111.3 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: foundation_policy-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_policy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 c22f9a42c0da581bcde111ca58dab56442da73e1cb73f60d6a6846bd6df89b76
MD5 3c9b27735862c12b58a5f66232a66647
BLAKE2b-256 0e8d7feaf64451a08df7e258f966a1ddf9b6a8a41319a13e62857c4240562650

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