1
0
Fork 0
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:
Mo8it 2022-01-31 18:53:58 +01:00
parent 63a1506fad
commit 705bd462c3

View file

@ -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