Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions environments/environment.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ end
gradients: flag for computing gradients of dynamics
attitude_decompress: flag for pre- and post-concatenating Jacobians with attitude Jacobians
"""
function step(env::Environment, x, u;
function Base.step(env::Environment, x, u;
gradients=false,
attitude_decompress=false)

Expand Down Expand Up @@ -108,7 +108,7 @@ function step(env::Environment, x, u;
return get_observation(env), -costs, done, info
end

function step(env::Environment, u;
function Base.step(env::Environment, u;
gradients=false,
attitude_decompress=false)
step(env, env.state, u;
Expand Down Expand Up @@ -155,7 +155,7 @@ is_done(env::Environment, x) = false
env: Environment
x: state
"""
function reset(env::Environment{X};
function Base.reset(env::Environment{X};
x=nothing) where X

initialize!(env.mechanism, type2symbol(X))
Expand Down
4 changes: 2 additions & 2 deletions src/Dojo.jl
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ export
dynamics_jacobian_state,
dynamics_jacobian_input,
get_environment,
step,
#step,
get_observation,
cost,
is_done,
reset,
#reset,
render,
seed,
close,
Expand Down