File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ version = "0.6.0"
88description =" RCS integration of tacto"
99dependencies = [
1010 " rcs>=0.6.0" ,
11+ " omegaconf" ,
1112 " mujoco-tacto@git+https://github.com/utn-air/mujoco-tacto.git@main"
1213]
1314readme = " README.md"
Original file line number Diff line number Diff line change 55
66import cv2
77import gymnasium as gym
8- import hydra
98import tacto
9+ from omegaconf import OmegaConf
1010
1111logger = logging .getLogger (__name__ )
1212
@@ -51,8 +51,8 @@ def __init__(
5151 if tacto_bg is None :
5252 tacto_bg = str (files ("tacto" ) / "assets" / "bg_digit_240_320.jpg" )
5353 logger .warning (f"No tacto_bg provided, using default from package: { tacto_bg } " )
54- hydra . initialize_config_dir (tacto_config )
55- t_config = hydra . compose ( "digit.yaml" )
54+ config_path = os . path . join (tacto_config , "digit.yaml" )
55+ t_config = OmegaConf . load ( config_path )
5656 self .tacto_sensor = tacto .Sensor (** t_config .tacto , background = cv2 .imread (tacto_bg ))
5757 self .tacto_fps = tacto_fps
5858 self .tacto_last_render = - 1
You can’t perform that action at this time.
0 commit comments