Skip to main content

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)

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

Uploaded Source

File details

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

File metadata

  • Download URL: foundation_model-0.0.13.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.13.tar.gz
Algorithm Hash digest
SHA256 b31727859e7defa3d366f122dd467df8554a2a966804eeaa94e7b4da6cee3ce8
MD5 39a7ae33b83f93099beefb541205079d
BLAKE2b-256 ac8d480ee82c052016b6a7c818242e89a882621b02ae42dbdce762aed49e91d3

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.13 This release

1 file

0.0.12

1 file

0.0.11

1 file

0.0.10

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page