pub struct AcrobotParams<B: Backend> {Show 13 fields
pub max_steps_in_episode: I32<B>,
pub available_torque: Array<B, f32>,
pub dt: F32<B>,
pub link_length_1: F32<B>,
pub link_length_2: F32<B>,
pub link_mass_1: F32<B>,
pub link_mass_2: F32<B>,
pub link_com_pos_1: F32<B>,
pub link_com_pos_2: F32<B>,
pub link_moi: F32<B>,
pub max_vel_1: F32<B>,
pub max_vel_2: F32<B>,
pub torque_noise_max: F32<B>,
}Expand description
The parameters of Acrobot, in the order of gymnax’s EnvParams leaves.
Defaults follow Acrobot-v1.
Fields§
§max_steps_in_episode: I32<B>The time limit.
available_torque: Array<B, f32>The torque of each action ([-1, 0, 1]).
dt: F32<B>The time step.
link_length_1: F32<B>The length of the first link.
link_length_2: F32<B>The length of the second link.
link_mass_1: F32<B>The mass of the first link.
link_mass_2: F32<B>The mass of the second link.
link_com_pos_1: F32<B>The position of the center of mass of the first link.
link_com_pos_2: F32<B>The position of the center of mass of the second link.
link_moi: F32<B>The moment of inertia of both links.
max_vel_1: F32<B>The largest angular velocity of the first link.
max_vel_2: F32<B>The largest angular velocity of the second link.
torque_noise_max: F32<B>The bound of the uniform noise added to the torque.
Trait Implementations§
Source§impl<B: Backend> Tree<B> for AcrobotParams<B>
impl<B: Backend> Tree<B> for AcrobotParams<B>
Source§type On<__RuxlaC: Backend> = AcrobotParams<__RuxlaC>
type On<__RuxlaC: Backend> = AcrobotParams<__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 AcrobotParams<B>
impl<B> RefUnwindSafe for AcrobotParams<B>where
<B as Backend>::Scalar<i32>: RefUnwindSafe,
<B as Backend>::Array<f32>: RefUnwindSafe,
<B as Backend>::Scalar<f32>: RefUnwindSafe,
impl<B> Send for AcrobotParams<B>
impl<B> Sync for AcrobotParams<B>
impl<B> Unpin for AcrobotParams<B>
impl<B> UnsafeUnpin for AcrobotParams<B>where
<B as Backend>::Scalar<i32>: UnsafeUnpin,
<B as Backend>::Array<f32>: UnsafeUnpin,
<B as Backend>::Scalar<f32>: UnsafeUnpin,
impl<B> UnwindSafe for AcrobotParams<B>where
<B as Backend>::Scalar<i32>: UnwindSafe,
<B as Backend>::Array<f32>: UnwindSafe,
<B as Backend>::Scalar<f32>: UnwindSafe,
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