Observations¶
For all environments, a variety of observation types can be used. These are defined with the observation
module. Each environment has a default observation, which can be changed or customized
using environment configurations. For example:
import gymnasium as gym
import flyer_env
env = gym.make('flyer-v1')
env.configure({
'observation': {
}
})
env.reset()
Kinematics¶
The KinematicObservation
is a \(V \times F\) array containing a list of
\(V\) nearby vehicles by a set of features of size \(F\), listed in the "features"
configuration field. For example:
Name |
Param |
Description |
Unit |
---|---|---|---|
|
\(x\) |
Aircraft’s position in the \(x\)-axis |
[\(m\)] |
|
\(y\) |
Aircraft’s position in the \(y\)-axis |
[\(m\)] |
|
\(z\) |
Aircraft’s position in the \(z\)-axis |
[\(m\)] |
|
\(\psi\) |
Aircraft’s heading angle |
[\(rad\)] |
|
\(\theta\) |
Aircraft’s pitch angle |
[\(rad\)] |
|
\(\phi\) |
Aircraft’s bank angle |
[\(rad\)] |
|
\(V_{\infty}\) |
Aircraft’s airspeed |
[\(m/s\)] |
Dynamics¶
Name |
Param |
Description |
Unit |
---|---|---|---|
|
\(x\) |
Aircraft’s position in the \(x\)-axis |
[\(m\)] |
|
\(y\) |
Aircraft’s position in the \(y\)-axis |
[\(m\)] |
|
\(z\) |
Aircraft’s position in the \(z\)-axis |
[\(m\)] |
|
\(\theta\) |
Aircraft’s pitch angle |
[\(rad\)] |
|
\(\phi\) |
Aircraft’s roll angle |
[\(rad\)] |
|
\(\psi\) |
Aircraft’s yaw angle |
[\(rad\)] |
|
\(u\) |
Aircraft’s linear velocity in the \(x\)-axis |
[\(m/s\)] |
|
\(v\) |
Aircraft’s linear velocity in the \(y\)-axis |
[\(m/s\)] |
|
\(w\) |
Aircraft’s linear velocity in the \(z\)-axis |
[\(m/s\)] |
|
\(p\) |
Aircraft’s rotational velocity in the \(x\)-axis |
[\(rad/s\)] |
|
\(q\) |
Aircraft’s rotational velocity in the \(y\)-axis |
[\(rad/s\)] |
|
\(r\) |
Aircraft’s rotational velocity in the \(z\)-axis |
[\(rad/s\)] |