@@ -137,9 +137,10 @@ class PlaygroundGo1EnvFns {
137137 }
138138};
139139
140- using PlaygroundGo1EnvSpec = EnvSpec<PlaygroundGo1EnvFns>;
141- using PlaygroundGo1PixelEnvFns = PixelObservationEnvFns<PlaygroundGo1EnvFns>;
142- using PlaygroundGo1PixelEnvSpec = EnvSpec<PlaygroundGo1PixelEnvFns>;
140+ using Go1Aliases = PlaygroundEnvAliases<PlaygroundGo1EnvFns>;
141+ using PlaygroundGo1EnvSpec = Go1Aliases::Spec;
142+ using PlaygroundGo1PixelEnvFns = Go1Aliases::PixelFns;
143+ using PlaygroundGo1PixelEnvSpec = Go1Aliases::PixelSpec;
143144
144145template <typename EnvSpecT, bool kFromPixels >
145146class PlaygroundGo1EnvBase : public Env <EnvSpecT>, public PlaygroundMujocoEnv {
@@ -734,11 +735,14 @@ class PlaygroundGo1EnvBase : public Env<EnvSpecT>, public PlaygroundMujocoEnv {
734735 }
735736};
736737
737- using PlaygroundGo1Env = PlaygroundGo1EnvBase<PlaygroundGo1EnvSpec, false >;
738- using PlaygroundGo1PixelEnv =
739- PlaygroundGo1EnvBase<PlaygroundGo1PixelEnvSpec, true >;
740- using PlaygroundGo1EnvPool = AsyncEnvPool<PlaygroundGo1Env>;
741- using PlaygroundGo1PixelEnvPool = AsyncEnvPool<PlaygroundGo1PixelEnv>;
738+ template <typename Spec, bool kFromPixels >
739+ using Go1Base = PlaygroundGo1EnvBase<Spec, kFromPixels >;
740+ using Go1Env = Go1Base<PlaygroundGo1EnvSpec, false >;
741+ using Go1PixelEnv = Go1Base<PlaygroundGo1PixelEnvSpec, true >;
742+ using PlaygroundGo1Env = Go1Env;
743+ using PlaygroundGo1PixelEnv = Go1PixelEnv;
744+ using PlaygroundGo1EnvPool = PlaygroundEnvPoolT<PlaygroundGo1Env>;
745+ using PlaygroundGo1PixelEnvPool = PlaygroundEnvPoolT<PlaygroundGo1PixelEnv>;
742746
743747class PlaygroundGo1GetupEnvFns {
744748 public:
@@ -804,10 +808,10 @@ class PlaygroundGo1GetupEnvFns {
804808 }
805809};
806810
807- using PlaygroundGo1GetupEnvSpec = EnvSpec <PlaygroundGo1GetupEnvFns>;
808- using PlaygroundGo1GetupPixelEnvFns =
809- PixelObservationEnvFns<PlaygroundGo1GetupEnvFns> ;
810- using PlaygroundGo1GetupPixelEnvSpec = EnvSpec<PlaygroundGo1GetupPixelEnvFns> ;
811+ using Go1GetupAliases = PlaygroundEnvAliases <PlaygroundGo1GetupEnvFns>;
812+ using PlaygroundGo1GetupEnvSpec = Go1GetupAliases::Spec;
813+ using PlaygroundGo1GetupPixelEnvFns = Go1GetupAliases::PixelFns ;
814+ using PlaygroundGo1GetupPixelEnvSpec = Go1GetupAliases::PixelSpec ;
811815
812816template <typename EnvSpecT, bool kFromPixels >
813817class PlaygroundGo1GetupEnvBase : public Env <EnvSpecT>,
@@ -1238,12 +1242,15 @@ class PlaygroundGo1GetupEnvBase : public Env<EnvSpecT>,
12381242 }
12391243};
12401244
1241- using PlaygroundGo1GetupEnv =
1242- PlaygroundGo1GetupEnvBase<PlaygroundGo1GetupEnvSpec, false >;
1243- using PlaygroundGo1GetupPixelEnv =
1244- PlaygroundGo1GetupEnvBase<PlaygroundGo1GetupPixelEnvSpec, true >;
1245- using PlaygroundGo1GetupEnvPool = AsyncEnvPool<PlaygroundGo1GetupEnv>;
1246- using PlaygroundGo1GetupPixelEnvPool = AsyncEnvPool<PlaygroundGo1GetupPixelEnv>;
1245+ template <typename Spec, bool kFromPixels >
1246+ using Go1GetupBase = PlaygroundGo1GetupEnvBase<Spec, kFromPixels >;
1247+ using Go1GetupEnv = Go1GetupBase<PlaygroundGo1GetupEnvSpec, false >;
1248+ using Go1GetupPixelEnv = Go1GetupBase<PlaygroundGo1GetupPixelEnvSpec, true >;
1249+ using PlaygroundGo1GetupEnv = Go1GetupEnv;
1250+ using PlaygroundGo1GetupPixelEnv = Go1GetupPixelEnv;
1251+ using PlaygroundGo1GetupEnvPool = PlaygroundEnvPoolT<PlaygroundGo1GetupEnv>;
1252+ using Go1GetupPixelEnvPool = PlaygroundEnvPoolT<PlaygroundGo1GetupPixelEnv>;
1253+ using PlaygroundGo1GetupPixelEnvPool = Go1GetupPixelEnvPool;
12471254
12481255class PlaygroundGo1HandstandEnvFns {
12491256 public:
@@ -1310,11 +1317,10 @@ class PlaygroundGo1HandstandEnvFns {
13101317 }
13111318};
13121319
1313- using PlaygroundGo1HandstandEnvSpec = EnvSpec<PlaygroundGo1HandstandEnvFns>;
1314- using PlaygroundGo1HandstandPixelEnvFns =
1315- PixelObservationEnvFns<PlaygroundGo1HandstandEnvFns>;
1316- using PlaygroundGo1HandstandPixelEnvSpec =
1317- EnvSpec<PlaygroundGo1HandstandPixelEnvFns>;
1320+ using Go1HandstandAliases = PlaygroundEnvAliases<PlaygroundGo1HandstandEnvFns>;
1321+ using PlaygroundGo1HandstandEnvSpec = Go1HandstandAliases::Spec;
1322+ using PlaygroundGo1HandstandPixelEnvFns = Go1HandstandAliases::PixelFns;
1323+ using PlaygroundGo1HandstandPixelEnvSpec = Go1HandstandAliases::PixelSpec;
13181324
13191325template <typename EnvSpecT, bool kFromPixels >
13201326class PlaygroundGo1HandstandEnvBase : public Env <EnvSpecT>,
@@ -1799,13 +1805,18 @@ class PlaygroundGo1HandstandEnvBase : public Env<EnvSpecT>,
17991805 }
18001806};
18011807
1802- using PlaygroundGo1HandstandEnv =
1803- PlaygroundGo1HandstandEnvBase<PlaygroundGo1HandstandEnvSpec, false >;
1804- using PlaygroundGo1HandstandPixelEnv =
1805- PlaygroundGo1HandstandEnvBase<PlaygroundGo1HandstandPixelEnvSpec, true >;
1806- using PlaygroundGo1HandstandEnvPool = AsyncEnvPool<PlaygroundGo1HandstandEnv>;
1807- using PlaygroundGo1HandstandPixelEnvPool =
1808- AsyncEnvPool<PlaygroundGo1HandstandPixelEnv>;
1808+ template <typename Spec, bool kFromPixels >
1809+ using Go1HandstandBase = PlaygroundGo1HandstandEnvBase<Spec, kFromPixels >;
1810+ using Go1HandstandSpec = PlaygroundGo1HandstandEnvSpec;
1811+ using Go1HandstandPixelSpec = PlaygroundGo1HandstandPixelEnvSpec;
1812+ using Go1HandstandEnv = Go1HandstandBase<Go1HandstandSpec, false >;
1813+ using Go1HandstandPixelEnv = Go1HandstandBase<Go1HandstandPixelSpec, true >;
1814+ using PlaygroundGo1HandstandEnv = Go1HandstandEnv;
1815+ using PlaygroundGo1HandstandPixelEnv = Go1HandstandPixelEnv;
1816+ using Go1HandstandEnvPool = PlaygroundEnvPoolT<PlaygroundGo1HandstandEnv>;
1817+ using Go1HandstandPixelEnvPool = PlaygroundEnvPoolT<Go1HandstandPixelEnv>;
1818+ using PlaygroundGo1HandstandEnvPool = Go1HandstandEnvPool;
1819+ using PlaygroundGo1HandstandPixelEnvPool = Go1HandstandPixelEnvPool;
18091820
18101821} // namespace mujoco_playground
18111822
0 commit comments