mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-12-21 00:51:21 +00:00
Corrected max_elliptical_distance
This commit is contained in:
parent
63a1506fad
commit
705bd462c3
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ mutable struct LocalCOMWithAdditionalShapeRewardEnvHelper <: EnvHelper
|
|||
function LocalCOMWithAdditionalShapeRewardEnvHelper(
|
||||
shared::EnvHelperSharedProps, half_box_len::Float64, skin_radius::Float64
|
||||
)
|
||||
max_elliptical_distance = sqrt(2) * half_box_len / shared.elliptical_a_b_ratio
|
||||
max_elliptical_distance = sqrt(
|
||||
half_box_len^2 + (half_box_len / shared.elliptical_a_b_ratio)^2
|
||||
)
|
||||
|
||||
max_distance_to_local_center_of_mass = skin_radius
|
||||
|
||||
|
|
Loading…
Reference in a new issue