File tree Expand file tree Collapse file tree 5 files changed +10
-10
lines changed
Expand file tree Collapse file tree 5 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function ant(;
7676 return env
7777end
7878
79- function step (env:: Environment{Ant} , x, u;
79+ function Base . step (env:: Environment{Ant} , x, u;
8080 gradients= false ,
8181 attitude_decompress= false )
8282
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ function get_observation(env::Environment{Pendulum})
9999 end
100100end
101101
102- function step (env:: Environment{Pendulum} , x, u;
102+ function Base . step (env:: Environment{Pendulum} , x, u;
103103 gradients= false ,
104104 attitude_decompress= false )
105105 mechanism = env. mechanism
Original file line number Diff line number Diff line change 44 env = Dojo. get_environment (" pendulum" ,
55 timestep= timestep,
66 gravity= - 10.0 );
7- Dojo . reset (env);
7+ reset (env);
88 Dojo. initialize_pendulum! (env. mechanism,
99 angle= 0.25 * π)
1010 u1 = rand (Dojo. input_dimension (env. mechanism))
3333 env = Dojo. get_environment (" halfcheetah" ,
3434 timestep= timestep,
3535 gravity= - 10.0 );
36- Dojo . reset (env);
36+ reset (env);
3737
3838 # get body
3939 @test Dojo. get_body (env. mechanism, :origin ). name == :origin
5050 env2 = Dojo. get_environment (:halfcheetah ,
5151 timestep= timestep,
5252 gravity= - 10.0 );
53- Dojo . reset (env);
53+ reset (env);
5454 Dojo. set_maximal_state! (env2. mechanism, zeros (Dojo. maximal_dimension (env2. mechanism)))
5555 z2 = Dojo. get_maximal_state (env2. mechanism)
5656 @test norm (z2) < 1.0e-8
Original file line number Diff line number Diff line change 33 env = Dojo. get_environment (" pendulum" ,
44 timestep= 0.1 ,
55 gravity= 0.0 );
6- Dojo . reset (env);
6+ reset (env);
77
88 # step (no control)
99 z1 = Dojo. get_maximal_state (env. mechanism)
2222 # get environment and simulate
2323 env = Dojo. get_environment (" pendulum" ,
2424 timestep= 0.1 );
25- Dojo . reset (env);
25+ reset (env);
2626 Dojo. initialize_pendulum! (env. mechanism,
2727 angle= 0.25 * π)
2828 storage = Dojo. simulate! (env. mechanism, 1.0 ,
3737 s = Dojo. generate_storage (env. mechanism, z)
3838 @test typeof (s) <: Dojo.Storage
3939 @test Dojo. length (s) == 10
40- end
40+ end
Original file line number Diff line number Diff line change 2929 # get environment and simulate
3030 env = Dojo. get_environment (" halfcheetah" ,
3131 timestep= 0.1 )
32- Dojo . reset (env)
32+ reset (env)
3333 storage = Dojo. simulate! (env. mechanism, 0.25 ,
3434 record= true ,
3535 verbose= true );
4343 vis = Dojo. Visualizer ();
4444 # get environment and simulate
4545 env = Dojo. get_environment (" quadruped" , timestep= 0.1 )
46- Dojo . reset (env)
46+ reset (env)
4747 storage = Dojo. simulate! (env. mechanism, 0.25 ,
4848 record= true ,
4949 verbose= false )
You can’t perform that action at this time.
0 commit comments