pub trait Env<Obs, Action> {
// Required methods
fn reset(&mut self);
fn step(&mut self, action: &Action) -> (bool, f32);
fn observe(&self, obs: &mut Obs);
}
Expand description
Main trait implement by each environements
pub trait Env<Obs, Action> {
// Required methods
fn reset(&mut self);
fn step(&mut self, action: &Action) -> (bool, f32);
fn observe(&self, obs: &mut Obs);
}
Main trait implement by each environements