When self.actor_params_generator is not None, we call the function get_attr_val_from_sample, but the definition of this function was in rlgpu which is no longer available: from rlgpu.tasks.base.base_task import get_attr_val_from_sample. This results in an error when trying to run the code with customized domain randomization.
Solution
To fix this issue, we need to provide a replacement for the get_attr_val_from_sample function within the codebase.
Problem
When
self.actor_params_generator
is not None, we call the functionget_attr_val_from_sample
, but the definition of this function was inrlgpu
which is no longer available:from rlgpu.tasks.base.base_task import get_attr_val_from_sample
. This results in an error when trying to run the code with customized domain randomization.Solution
To fix this issue, we need to provide a replacement for the
get_attr_val_from_sample
function within the codebase.