Skip to content

Commit 52c585a

Browse files
wasm fix
1 parent 4e4fb8f commit 52c585a

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
```
77

88
```
9-
cp ../RLtools.js/rl_tools.js blob/rl_tools.js
9+
cp ../rltools.js/main.js blob/lib/rltools.js
1010
```
1111

1212
```

blob

wasm/environment.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ namespace builder{
3232
01.00, // d_action
3333
};
3434

35+
struct PARAMETERS_DOMAIN_RANDOMIZATION_OPTIONS{
36+
static constexpr bool ON = false;
37+
static constexpr bool THRUST_TO_WEIGHT = ON;
38+
static constexpr bool MASS = ON;
39+
static constexpr bool THRUST_TO_WEIGHT_TO_TORQUE_TO_INERTIA = ON;
40+
static constexpr bool MASS_SIZE_DEVIATION = ON;
41+
};
42+
3543
using PARAMETERS_SPEC = ParametersBaseSpecification<T, TI, 4, REWARD_FUNCTION>;
36-
using PARAMETERS_TYPE = ParametersDomainRandomization<ParametersSpecification<T, TI, ParametersDisturbances<ParametersSpecification<T, TI, ParametersBase<PARAMETERS_SPEC>>>>>;
44+
using PARAMETERS_TYPE = ParametersDomainRandomization<ParametersDomainRandomizationSpecification<T, TI, PARAMETERS_DOMAIN_RANDOMIZATION_OPTIONS, ParametersDisturbances<ParametersSpecification<T, TI, ParametersBase<PARAMETERS_SPEC>>>>>;
3745

3846
static constexpr typename PARAMETERS_TYPE::Dynamics dynamics = parameters::dynamics::registry<MODEL, PARAMETERS_SPEC>;
3947
static constexpr TI SIMULATION_FREQUENCY = 100;

0 commit comments

Comments
 (0)