Georg commited on
Commit ·
4f6eb67
1
Parent(s): 7ba9543
Update UR5 home pose for Nova integration in environment and scene files
Browse files- Modified the home position values in `ur5_env.py`, `scene_t_push.xml`, and `scene_with_gripper.xml` to reflect a custom configuration for improved integration with Nova.
- Adjusted joint angles to enhance the robot's initial state, ensuring better performance during simulations.
robots/ur5/model/scene_t_push.xml
CHANGED
|
@@ -222,7 +222,7 @@
|
|
| 222 |
|
| 223 |
<keyframe>
|
| 224 |
<!-- UR5e home pose (6 joints) + t_object freejoint (3 pos + 4 quat) -->
|
| 225 |
-
<key name="home" qpos="-
|
| 226 |
-
ctrl="-
|
| 227 |
</keyframe>
|
| 228 |
</mujoco>
|
|
|
|
| 222 |
|
| 223 |
<keyframe>
|
| 224 |
<!-- UR5e home pose (6 joints) + t_object freejoint (3 pos + 4 quat) -->
|
| 225 |
+
<key name="home" qpos="-3.22 -1.14 1.93 -2.36 -1.57 -1.72 0.45 0.2 0.43 1 0 0 0"
|
| 226 |
+
ctrl="-3.22 -1.14 1.93 -2.36 -1.57 -1.72"/>
|
| 227 |
</keyframe>
|
| 228 |
</mujoco>
|
robots/ur5/model/scene_with_gripper.xml
CHANGED
|
@@ -186,7 +186,7 @@
|
|
| 186 |
|
| 187 |
<keyframe>
|
| 188 |
<!-- Official MuJoCo Menagerie UR5e home pose with gripper open (0=open) -->
|
| 189 |
-
<key name="home" qpos="-
|
| 190 |
-
ctrl="-
|
| 191 |
</keyframe>
|
| 192 |
</mujoco>
|
|
|
|
| 186 |
|
| 187 |
<keyframe>
|
| 188 |
<!-- Official MuJoCo Menagerie UR5e home pose with gripper open (0=open) -->
|
| 189 |
+
<key name="home" qpos="-3.22 -1.14 1.93 -2.36 -1.57 -1.72 0 0 0 0 0 0 0 0 0.5 0.2 0.45 1 0 0 0"
|
| 190 |
+
ctrl="-3.22 -1.14 1.93 -2.36 -1.57 -1.72 0"/>
|
| 191 |
</keyframe>
|
| 192 |
</mujoco>
|
robots/ur5/ur5_env.py
CHANGED
|
@@ -55,15 +55,14 @@ class UR5Env(gym.Env):
|
|
| 55 |
"wrist_3_joint",
|
| 56 |
]
|
| 57 |
|
| 58 |
-
# Home position -
|
| 59 |
-
# Classic "elbow up" manipulation pose from Universal Robots
|
| 60 |
DEFAULT_HOME_POSE = np.array([
|
| 61 |
-
-
|
| 62 |
-
-1.
|
| 63 |
-
1.
|
| 64 |
-
-
|
| 65 |
-
-1.
|
| 66 |
-
|
| 67 |
], dtype=np.float32)
|
| 68 |
|
| 69 |
def __init__(
|
|
|
|
| 55 |
"wrist_3_joint",
|
| 56 |
]
|
| 57 |
|
| 58 |
+
# Home position - Custom configuration for Nova integration
|
|
|
|
| 59 |
DEFAULT_HOME_POSE = np.array([
|
| 60 |
+
-3.22, # shoulder_pan
|
| 61 |
+
-1.14, # shoulder_lift
|
| 62 |
+
1.93, # elbow
|
| 63 |
+
-2.36, # wrist_1
|
| 64 |
+
-1.57, # wrist_2
|
| 65 |
+
-1.72, # wrist_3
|
| 66 |
], dtype=np.float32)
|
| 67 |
|
| 68 |
def __init__(
|