Skip to content

Commit 1d87e4d

Browse files
authored
refactor(core): mjb in scene dict optional (#265)
1 parent 44b4c53 commit 1d87e4d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

python/rcs/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import os
44
import site
5-
from dataclasses import dataclass
5+
from dataclasses import dataclass, field
66

77
from gymnasium import register
88
from rcs._core import __version__, common
@@ -18,8 +18,6 @@
1818
class Scene:
1919
"""Scene configuration."""
2020

21-
mjb: str
22-
"""Path to the Mujoco binary scene file."""
2321
mjcf_scene: str
2422
"""Path to the Mujoco scene XML file."""
2523
mjcf_robot: str
@@ -28,6 +26,10 @@ class Scene:
2826
"""Path to the URDF robot file for IK, if available."""
2927
robot_type: common.RobotType
3028
"""Type of the robot in the scene."""
29+
mjb: str | None = None
30+
"""Path to the Mujoco binary scene file."""
31+
# TODO: add possibility to add robot config to the scene config (the field below is currently unused)
32+
robot_config: dict[str, common.RobotConfig] = field(default_factory=dict)
3133

3234

3335
def get_scene_urdf(scene_name: str) -> str | None:

0 commit comments

Comments
 (0)