pub struct PendulumParams<B: Backend> {
pub max_steps_in_episode: I32<B>,
pub max_speed: F32<B>,
pub max_torque: F32<B>,
pub dt: F32<B>,
pub g: F32<B>,
pub m: F32<B>,
pub l: F32<B>,
}Expand description
The parameters of Pendulum, in the order of gymnax’s EnvParams leaves.
Defaults follow Pendulum-v1.
Fields§
§max_steps_in_episode: I32<B>The time limit.
max_speed: F32<B>The largest angular velocity.
max_torque: F32<B>The largest torque.
dt: F32<B>The time step.
g: F32<B>Gravity.
m: F32<B>The mass of the pendulum.
l: F32<B>The length of the pendulum.
Trait Implementations§
Source§impl<B: Backend> Tree<B> for PendulumParams<B>
impl<B: Backend> Tree<B> for PendulumParams<B>
Source§type On<__RuxlaC: Backend> = PendulumParams<__RuxlaC>
type On<__RuxlaC: Backend> = PendulumParams<__RuxlaC>
The same structure on backend
C.Source§fn unflatten_like(
&self,
leaves: &mut dyn Iterator<Item = <B as Backend>::Leaf>,
) -> Self
fn unflatten_like( &self, leaves: &mut dyn Iterator<Item = <B as Backend>::Leaf>, ) -> Self
Builds a value of the same structure from leaves.
Auto Trait Implementations§
impl<B> Freeze for PendulumParams<B>
impl<B> RefUnwindSafe for PendulumParams<B>
impl<B> Send for PendulumParams<B>
impl<B> Sync for PendulumParams<B>
impl<B> Unpin for PendulumParams<B>
impl<B> UnsafeUnpin for PendulumParams<B>
impl<B> UnwindSafe for PendulumParams<B>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more