|
13 | 13 | // limitations under the License. |
14 | 14 |
|
15 | 15 | #include "envpool/core/py_envpool.h" |
16 | | -#include "envpool/mujoco/playground/aloha.h" |
17 | | -#include "envpool/mujoco/playground/apollo.h" |
18 | | -#include "envpool/mujoco/playground/barkour.h" |
19 | | -#include "envpool/mujoco/playground/berkeley_humanoid.h" |
20 | | -#include "envpool/mujoco/playground/g1.h" |
21 | | -#include "envpool/mujoco/playground/go1.h" |
22 | | -#include "envpool/mujoco/playground/h1.h" |
23 | | -#include "envpool/mujoco/playground/hand.h" |
24 | | -#include "envpool/mujoco/playground/op3.h" |
25 | | -#include "envpool/mujoco/playground/panda.h" |
26 | | -#include "envpool/mujoco/playground/panda_robotiq.h" |
27 | | -#include "envpool/mujoco/playground/spot.h" |
28 | | -#include "envpool/mujoco/playground/t1.h" |
29 | | - |
30 | | -#define REGISTER_PLAYGROUND_ENV(MODULE, NAME) \ |
31 | | - using NAME##EnvSpec = PyEnvSpec<mujoco_playground::NAME##EnvSpec>; \ |
32 | | - using NAME##EnvPool = PyEnvPool<mujoco_playground::NAME##EnvPool>; \ |
33 | | - REGISTER(MODULE, NAME##EnvSpec, NAME##EnvPool) |
| 16 | +#include "envpool/mujoco/playground/py_envpool_register.h" |
34 | 17 |
|
35 | 18 | PYBIND11_MODULE(playground_envpool, m) { |
36 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundAloha) |
37 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundAlohaPixel) |
38 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundApollo) |
39 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundApolloPixel) |
40 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundBarkour) |
41 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundBarkourPixel) |
42 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundBerkeleyHumanoid) |
43 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundBerkeleyHumanoidPixel) |
44 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundG1) |
45 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundG1Pixel) |
46 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundGo1) |
47 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundGo1Pixel) |
48 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundGo1Getup) |
49 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundGo1GetupPixel) |
50 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundGo1Handstand) |
51 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundGo1HandstandPixel) |
52 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundH1) |
53 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundH1Pixel) |
54 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundHand) |
55 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundHandPixel) |
56 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundOp3) |
57 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundOp3Pixel) |
58 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundPanda) |
59 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundPandaPixel) |
60 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundPandaRobotiq) |
61 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundPandaRobotiqPixel) |
62 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundSpotJoystick) |
63 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundSpotJoystickPixel) |
64 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundSpotGetup) |
65 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundSpotGetupPixel) |
66 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundSpotGait) |
67 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundSpotGaitPixel) |
68 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundT1) |
69 | | - REGISTER_PLAYGROUND_ENV(m, PlaygroundT1Pixel) |
| 19 | + RegisterPlaygroundAloha(m); |
| 20 | + RegisterPlaygroundApollo(m); |
| 21 | + RegisterPlaygroundBarkour(m); |
| 22 | + RegisterPlaygroundBerkeleyHumanoid(m); |
| 23 | + RegisterPlaygroundG1(m); |
| 24 | + RegisterPlaygroundGo1(m); |
| 25 | + RegisterPlaygroundH1(m); |
| 26 | + RegisterPlaygroundHand(m); |
| 27 | + RegisterPlaygroundOp3(m); |
| 28 | + RegisterPlaygroundPanda(m); |
| 29 | + RegisterPlaygroundPandaRobotiq(m); |
| 30 | + RegisterPlaygroundSpot(m); |
| 31 | + RegisterPlaygroundT1(m); |
70 | 32 | } |
71 | | - |
72 | | -#undef REGISTER_PLAYGROUND_ENV |
0 commit comments