2022-07-07 11:36:58 +02:00
|
|
|
from copy import deepcopy
|
|
|
|
|
2021-08-25 17:16:20 +02:00
|
|
|
from . import manipulation, suite
|
|
|
|
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS = {"DMP": [], "ProMP": []}
|
2021-08-25 17:16:20 +02:00
|
|
|
|
|
|
|
from gym.envs.registration import register
|
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
DEFAULT_BB_DICT_ProMP = {
|
|
|
|
"name": 'EnvName',
|
|
|
|
"wrappers": [],
|
|
|
|
"trajectory_generator_kwargs": {
|
|
|
|
'trajectory_generator_type': 'promp'
|
|
|
|
},
|
|
|
|
"phase_generator_kwargs": {
|
|
|
|
'phase_generator_type': 'linear'
|
|
|
|
},
|
|
|
|
"controller_kwargs": {
|
|
|
|
'controller_type': 'motor',
|
2022-07-11 16:42:56 +02:00
|
|
|
"p_gains": 50.,
|
|
|
|
"d_gains": 1.,
|
2022-07-07 11:36:58 +02:00
|
|
|
},
|
|
|
|
"basis_generator_kwargs": {
|
|
|
|
'basis_generator_type': 'zero_rbf',
|
|
|
|
'num_basis': 5,
|
|
|
|
'num_basis_zero_start': 1
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
DEFAULT_BB_DICT_DMP = {
|
|
|
|
"name": 'EnvName',
|
|
|
|
"wrappers": [],
|
|
|
|
"trajectory_generator_kwargs": {
|
|
|
|
'trajectory_generator_type': 'dmp'
|
|
|
|
},
|
|
|
|
"phase_generator_kwargs": {
|
|
|
|
'phase_generator_type': 'exp'
|
|
|
|
},
|
|
|
|
"controller_kwargs": {
|
|
|
|
'controller_type': 'motor',
|
2022-07-11 16:42:56 +02:00
|
|
|
"p_gains": 50.,
|
|
|
|
"d_gains": 1.,
|
2022-07-07 11:36:58 +02:00
|
|
|
},
|
|
|
|
"basis_generator_kwargs": {
|
|
|
|
'basis_generator_type': 'rbf',
|
|
|
|
'num_basis': 5
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
# DeepMind Control Suite (DMC)
|
|
|
|
kwargs_dict_bic_dmp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_bic_dmp['name'] = f"dmc:ball_in_cup-catch"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_bic_dmp['wrappers'].append(suite.ball_in_cup.MPWrapper)
|
2022-07-11 16:42:56 +02:00
|
|
|
# bandwidth_factor=2
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_bic_dmp['phase_generator_kwargs']['alpha_phase'] = 2
|
|
|
|
kwargs_dict_bic_dmp['trajectory_generator_kwargs']['weight_scale'] = 10 # TODO: weight scale 1, but goal scale 0.1
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
|
|
|
id=f'dmc_ball_in_cup-catch_dmp-v0',
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_bic_dmp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["DMP"].append("dmc_ball_in_cup-catch_dmp-v0")
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_bic_promp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_bic_promp['name'] = f"dmc:ball_in_cup-catch"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_bic_promp['wrappers'].append(suite.ball_in_cup.MPWrapper)
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
2021-11-30 16:11:32 +01:00
|
|
|
id=f'dmc_ball_in_cup-catch_promp-v0',
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_bic_promp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["ProMP"].append("dmc_ball_in_cup-catch_promp-v0")
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_easy_dmp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_reacher_easy_dmp['name'] = f"dmc:reacher-easy"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_easy_dmp['wrappers'].append(suite.reacher.MPWrapper)
|
2022-07-11 16:42:56 +02:00
|
|
|
# bandwidth_factor=2
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_easy_dmp['phase_generator_kwargs']['alpha_phase'] = 2
|
2022-07-11 16:18:18 +02:00
|
|
|
# TODO: weight scale 50, but goal scale 0.1
|
|
|
|
kwargs_dict_reacher_easy_dmp['trajectory_generator_kwargs']['weight_scale'] = 500
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
|
|
|
id=f'dmc_reacher-easy_dmp-v0',
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_bic_dmp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["DMP"].append("dmc_reacher-easy_dmp-v0")
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_easy_promp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_reacher_easy_promp['name'] = f"dmc:reacher-easy"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_easy_promp['wrappers'].append(suite.reacher.MPWrapper)
|
|
|
|
kwargs_dict_reacher_easy_promp['trajectory_generator_kwargs']['weight_scale'] = 0.2
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
2021-11-30 16:11:32 +01:00
|
|
|
id=f'dmc_reacher-easy_promp-v0',
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_reacher_easy_promp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["ProMP"].append("dmc_reacher-easy_promp-v0")
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_hard_dmp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_reacher_hard_dmp['name'] = f"dmc:reacher-hard"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_hard_dmp['wrappers'].append(suite.reacher.MPWrapper)
|
2022-07-11 16:42:56 +02:00
|
|
|
# bandwidth_factor = 2
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_hard_dmp['phase_generator_kwargs']['alpha_phase'] = 2
|
2022-07-11 16:18:18 +02:00
|
|
|
# TODO: weight scale 50, but goal scale 0.1
|
|
|
|
kwargs_dict_reacher_hard_dmp['trajectory_generator_kwargs']['weight_scale'] = 500
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
|
|
|
id=f'dmc_reacher-hard_dmp-v0',
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_reacher_hard_dmp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["DMP"].append("dmc_reacher-hard_dmp-v0")
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_hard_promp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_reacher_hard_promp['name'] = f"dmc:reacher-hard"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_reacher_hard_promp['wrappers'].append(suite.reacher.MPWrapper)
|
|
|
|
kwargs_dict_reacher_hard_promp['trajectory_generator_kwargs']['weight_scale'] = 0.2
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
2021-11-30 16:11:32 +01:00
|
|
|
id=f'dmc_reacher-hard_promp-v0',
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_reacher_hard_promp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["ProMP"].append("dmc_reacher-hard_promp-v0")
|
2021-08-25 17:16:20 +02:00
|
|
|
|
|
|
|
_dmc_cartpole_tasks = ["balance", "balance_sparse", "swingup", "swingup_sparse"]
|
|
|
|
|
|
|
|
for _task in _dmc_cartpole_tasks:
|
|
|
|
_env_id = f'dmc_cartpole-{_task}_dmp-v0'
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole_dmp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_cartpole_dmp['name'] = f"dmc:cartpole-{_task}"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole_dmp['wrappers'].append(suite.cartpole.MPWrapper)
|
2022-07-11 16:42:56 +02:00
|
|
|
# bandwidth_factor = 2
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole_dmp['phase_generator_kwargs']['alpha_phase'] = 2
|
2022-07-11 16:42:56 +02:00
|
|
|
# TODO: weight scale 50, but goal scale 0.1
|
|
|
|
kwargs_dict_cartpole_dmp['trajectory_generator_kwargs']['weight_scale'] = 500
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole_dmp['controller_kwargs']['p_gains'] = 10
|
|
|
|
kwargs_dict_cartpole_dmp['controller_kwargs']['d_gains'] = 10
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
|
|
|
id=_env_id,
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_cartpole_dmp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["DMP"].append(_env_id)
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2021-11-30 16:11:32 +01:00
|
|
|
_env_id = f'dmc_cartpole-{_task}_promp-v0'
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole_promp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_cartpole_promp['name'] = f"dmc:cartpole-{_task}"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole_promp['wrappers'].append(suite.cartpole.MPWrapper)
|
|
|
|
kwargs_dict_cartpole_promp['controller_kwargs']['p_gains'] = 10
|
|
|
|
kwargs_dict_cartpole_promp['controller_kwargs']['d_gains'] = 10
|
|
|
|
kwargs_dict_cartpole_promp['trajectory_generator_kwargs']['weight_scale'] = 0.2
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
|
|
|
id=_env_id,
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_cartpole_promp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["ProMP"].append(_env_id)
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole2poles_dmp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_cartpole2poles_dmp['name'] = f"dmc:cartpole-two_poles"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole2poles_dmp['wrappers'].append(suite.cartpole.TwoPolesMPWrapper)
|
2022-07-11 16:42:56 +02:00
|
|
|
# bandwidth_factor = 2
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole2poles_dmp['phase_generator_kwargs']['alpha_phase'] = 2
|
2022-07-11 16:18:18 +02:00
|
|
|
# TODO: weight scale 50, but goal scale 0.1
|
|
|
|
kwargs_dict_cartpole2poles_dmp['trajectory_generator_kwargs']['weight_scale'] = 500
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole2poles_dmp['controller_kwargs']['p_gains'] = 10
|
|
|
|
kwargs_dict_cartpole2poles_dmp['controller_kwargs']['d_gains'] = 10
|
2021-08-25 17:16:20 +02:00
|
|
|
_env_id = f'dmc_cartpole-two_poles_dmp-v0'
|
|
|
|
register(
|
|
|
|
id=_env_id,
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_cartpole2poles_dmp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["DMP"].append(_env_id)
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole2poles_promp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_cartpole2poles_promp['name'] = f"dmc:cartpole-two_poles"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole2poles_promp['wrappers'].append(suite.cartpole.TwoPolesMPWrapper)
|
|
|
|
kwargs_dict_cartpole2poles_promp['controller_kwargs']['p_gains'] = 10
|
|
|
|
kwargs_dict_cartpole2poles_promp['controller_kwargs']['d_gains'] = 10
|
|
|
|
kwargs_dict_cartpole2poles_promp['trajectory_generator_kwargs']['weight_scale'] = 0.2
|
2021-11-30 16:11:32 +01:00
|
|
|
_env_id = f'dmc_cartpole-two_poles_promp-v0'
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
|
|
|
id=_env_id,
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_cartpole2poles_promp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["ProMP"].append(_env_id)
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole3poles_dmp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_cartpole3poles_dmp['name'] = f"dmc:cartpole-three_poles"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole3poles_dmp['wrappers'].append(suite.cartpole.ThreePolesMPWrapper)
|
2022-07-11 16:42:56 +02:00
|
|
|
# bandwidth_factor = 2
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole3poles_dmp['phase_generator_kwargs']['alpha_phase'] = 2
|
2022-07-11 16:18:18 +02:00
|
|
|
# TODO: weight scale 50, but goal scale 0.1
|
|
|
|
kwargs_dict_cartpole3poles_dmp['trajectory_generator_kwargs']['weight_scale'] = 500
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole3poles_dmp['controller_kwargs']['p_gains'] = 10
|
|
|
|
kwargs_dict_cartpole3poles_dmp['controller_kwargs']['d_gains'] = 10
|
2021-08-25 17:16:20 +02:00
|
|
|
_env_id = f'dmc_cartpole-three_poles_dmp-v0'
|
|
|
|
register(
|
|
|
|
id=_env_id,
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_cartpole3poles_dmp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["DMP"].append(_env_id)
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole3poles_promp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_cartpole3poles_promp['name'] = f"dmc:cartpole-three_poles"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_cartpole3poles_promp['wrappers'].append(suite.cartpole.ThreePolesMPWrapper)
|
|
|
|
kwargs_dict_cartpole3poles_promp['controller_kwargs']['p_gains'] = 10
|
|
|
|
kwargs_dict_cartpole3poles_promp['controller_kwargs']['d_gains'] = 10
|
|
|
|
kwargs_dict_cartpole3poles_promp['trajectory_generator_kwargs']['weight_scale'] = 0.2
|
2021-11-30 16:11:32 +01:00
|
|
|
_env_id = f'dmc_cartpole-three_poles_promp-v0'
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
|
|
|
id=_env_id,
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_cartpole3poles_promp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["ProMP"].append(_env_id)
|
2021-08-25 17:16:20 +02:00
|
|
|
|
|
|
|
# DeepMind Manipulation
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_mani_reach_site_features_dmp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_mani_reach_site_features_dmp['name'] = f"dmc:manipulation-reach_site_features"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_mani_reach_site_features_dmp['wrappers'].append(manipulation.reach_site.MPWrapper)
|
|
|
|
kwargs_dict_mani_reach_site_features_dmp['phase_generator_kwargs']['alpha_phase'] = 2
|
2022-07-11 16:18:18 +02:00
|
|
|
# TODO: weight scale 50, but goal scale 0.1
|
|
|
|
kwargs_dict_mani_reach_site_features_dmp['trajectory_generator_kwargs']['weight_scale'] = 500
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_mani_reach_site_features_dmp['controller_kwargs']['controller_type'] = 'velocity'
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
|
|
|
id=f'dmc_manipulation-reach_site_dmp-v0',
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_mani_reach_site_features_dmp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["DMP"].append("dmc_manipulation-reach_site_dmp-v0")
|
2021-08-25 17:16:20 +02:00
|
|
|
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_mani_reach_site_features_promp = deepcopy(DEFAULT_BB_DICT_DMP)
|
2022-07-11 16:18:18 +02:00
|
|
|
kwargs_dict_mani_reach_site_features_promp['name'] = f"dmc:manipulation-reach_site_features"
|
2022-07-07 11:36:58 +02:00
|
|
|
kwargs_dict_mani_reach_site_features_promp['wrappers'].append(manipulation.reach_site.MPWrapper)
|
|
|
|
kwargs_dict_mani_reach_site_features_promp['trajectory_generator_kwargs']['weight_scale'] = 0.2
|
|
|
|
kwargs_dict_mani_reach_site_features_promp['controller_kwargs']['controller_type'] = 'velocity'
|
2021-08-25 17:16:20 +02:00
|
|
|
register(
|
2021-11-30 16:11:32 +01:00
|
|
|
id=f'dmc_manipulation-reach_site_promp-v0',
|
2022-07-11 16:18:18 +02:00
|
|
|
entry_point='alr_envs.utils.make_env_helpers:make_bb_env_helper',
|
|
|
|
kwargs=kwargs_dict_mani_reach_site_features_promp
|
2021-08-25 17:16:20 +02:00
|
|
|
)
|
2022-07-11 16:18:18 +02:00
|
|
|
ALL_DMC_MOVEMENT_PRIMITIVE_ENVIRONMENTS["ProMP"].append("dmc_manipulation-reach_site_promp-v0")
|