Skip to content

Commit 81e833f

Browse files
update
1 parent fa772de commit 81e833f

File tree

10 files changed

+489
-12
lines changed

10 files changed

+489
-12
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
[submodule "mujoco_robot_environments/mujoco_controllers"]
22
path = mujoco_robot_environments/mujoco_controllers
33
url = [email protected]:peterdavidfagan/mujoco_controllers.git
4+
[submodule "mujoco_robot_environments/madrona_mjx"]
5+
path = mujoco_robot_environments/local_builds/madrona_mjx
6+
url = [email protected]:shacklettbp/madrona_mjx.git
7+
[submodule "mujoco_robot_environments/local_builds/robot_descriptions.py"]
8+
path = mujoco_robot_environments/local_builds/robot_descriptions.py
9+
url = [email protected]:peterdavidfagan/robot_descriptions.py.git

mujoco_robot_environments/config/lasa.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ offwidth: 640
99
znear: 0.0005
1010
viewer: False # whether or not to use passive viewer
1111

12+
madrona:
13+
use: False
14+
1215
# weights and biases experiment tracking
1316
wandb:
1417
use: True
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# mujoco simulation parameters
2+
physics_dt: 0.001
3+
control_dt: 0.005
4+
gravity: [0.0, 0.0, -9.8]
5+
nconmax: 1000
6+
njmax: 2000
7+
offheight: 640
8+
offwidth: 640
9+
znear: 0.0005
10+
viewer: False # whether or not to use passive viewer
11+
12+
madrona:
13+
use: False
14+
15+
# weights and biases experiment tracking
16+
wandb:
17+
use: True
18+
experiment_name: rearrangement_transporter
19+
tags: ["original transporter network"]
20+
notes: "Curently debugging."
21+
track_gradients: False
22+
resume: False
23+
resume_run:
24+
id: xxxxx # not currently being used
25+
load_epoch: 1
26+
27+
metrics:
28+
pick_loss:
29+
step_metric: epoch
30+
summary: min
31+
32+
tables:
33+
data_table:
34+
columns: ["placeholder"]
35+
36+
simulation_tuning_mode: False
37+
38+
defaults:
39+
- arena: lasa
40+
- robots: franka_robotiq_2f85
41+
- task: rearrangement
42+
- dataset: default
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
defaults:
2+
- actuator_config: motor
3+
- sensor_config: position
4+
- controller_config: osc
5+
6+
7+
default_configurations:
8+
home: [0, -0.785, 0, -2.356, 0, 1.571, 0.785]
9+
10+
arm:
11+
_target_: mujoco_robot_environments.models.arms.franka_emika.FER
12+
mjx: True
13+
actuator_config: ${robots.arm.actuator_config}
14+
sensor_config: ${robots.arm.sensor_config}
15+
controller_config: ${robots.arm.controller_config}
16+
configuration_config: ${robots.arm.default_configurations}
17+
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
defaults:
2-
- arm: franka_emika_panda
2+
- arm: franka_emika_panda_mjx
33
- end_effector: robotiq_2f85_mjx

mujoco_robot_environments/models/arms/franka_emika.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,24 @@
88
from mujoco_controllers.models.arms.robot_arm import RobotArm
99

1010
PANDA_MJCF_PATH = os.path.join(panda_mj_description.PACKAGE_PATH, 'panda_nohand.xml')
11+
PANDA_MJX_MJCF_PATH = os.path.join(panda_mj_description.PACKAGE_PATH, 'mjx_panda_nohand.xml')
1112

1213
class FER(RobotArm):
1314
"""Franka Emika Panda Robot Arm."""
1415

1516
def __init__(
1617
self,
17-
mjcf_path: str = PANDA_MJCF_PATH,
18+
mjx: bool = False,
1819
actuator_config: dict = None,
1920
sensor_config: dict = None,
2021
controller_config: dict = None,
2122
configuration_config: dict = None
2223
):
2324
"""Initialize the robot arm."""
24-
self.mjcf_path = mjcf_path
25+
if mjx:
26+
self.mjcf_path = PANDA_MJX_MJCF_PATH
27+
else:
28+
self.mjcf_path = PANDA_MJCF_PATH
2529
self.actuator_config = actuator_config
2630
self.sensor_config = sensor_config
2731
self.controller_config = controller_config

mujoco_robot_environments/models/end_effectors/robotiq_2f85.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
"""Simplified Robotiq Gripper Class."""
22

3+
import os
34
from typing import List, Tuple, Optional
45

56
from dm_control import mjcf
6-
from robot_descriptions import robotiq_2f85_mj_description
7+
from robot_descriptions import robotiq_2f85_v4_mj_description
78
from mujoco_controllers.models.end_effectors.robot_hand import RobotHand
89
import numpy as np
910

10-
ROBOTIQ_MJCF_PATH = robotiq_2f85_mj_description.MJCF_PATH
11+
ROBOTIQ_MJCF_PATH = os.path.join(robotiq_2f85_v4_mj_description.PACKAGE_PATH, '2f85.xml')
12+
ROBOTIQ_MJX_MJCF_PATH = os.path.join(robotiq_2f85_v4_mj_description.PACKAGE_PATH, 'mjx_2f85.xml')
1113

1214
class Robotiq2F85(RobotHand):
1315
"""Robotiq 2-finger 85 adaptive gripper."""

mujoco_robot_environments/tasks/base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
import numpy as np
1313
from scipy.spatial.transform import Rotation as R
1414
import dm_env
15-
from dm_control import composer, mjcf
16-
from dm_control.composer.variation import distributions
17-
from dm_control.composer.variation import rotations
15+
from dm_control import mjcf
1816
import hydra
1917
from hydra.utils import instantiate
2018
from hydra import compose, initialize

0 commit comments

Comments
 (0)