A foundation policy for quadrotor control
Project description
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)
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-1.0.0.tar.gz
(111.3 kB
view details)
File details
Details for the file foundation_policy-1.0.0.tar.gz.
File metadata
- Download URL: foundation_policy-1.0.0.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff5dd992302065c39019681c55443b77c06cbc0075fcbcb2a3852660967d1115
|
|
| MD5 |
9361e2614b80f3f2b719e09df8982856
|
|
| BLAKE2b-256 |
f6366d8b95113741af8a750fc501774c66a0acb3a293859dc46e271d7a1ea86b
|