Skip to content

Commit f214b6e

Browse files
authored
1.1.0 (#132)
* Bug fix and visual change to open_door. Previously the agent could open without needing to turn the handle. * Visual change to close_door. * New overhead camera. Moved over-shoulder cameras. * Hanger tasks visual updates. * Added UR5. Resolves #100. Resolves #90. * [ci skip] Update README. * Can specify what episodes to load when loading demos from disk. * Bump PyRep version. * Fix spawning dummys after each task swap. Resolves #113. * Workflow fix. * Update unit test assets. * Workflow fix. * Workflow fix. * Fix typo. Resolves #102. * Update TV tasks. * Update clock, box, and shoe tasks. * Update door tasks. * Update fridge tasks. * Jenga and books on bookshelf improvements. * Experimental action mode. Improved task checks. * Collision check fix when getting demos. * Bug fixes in ABS_EE_POSE_PLAN_WORLD_FRAME * Allow noise to be added to stored demos. * RGB returned as uint8 rather than float. Point cloud obs added. Ability to get camera info. * Update tests accounting for RGB in range 0-255. * Added option for collision checking in ABS_EE_POSE_PLAN_WORLD_FRAME. * Swapped planner to RRTConnect. * Path action modes are no longer interrupted mid path. * Phone on base waypoint update. * Collision checking swapped to use respondables rather than visuals. * Improve plan action space when already colliding with object. * Made stack_wine more difficult by requiring bottle to be ungrasped in rack. * Fixed gripper not releasing object (#128) * [skip ci] Update matrix reshape following PyRep update. Resolves #124. * fixed gripper not releasing object Co-authored-by: stephen <[email protected]> * Update complex_task.md Convex is better for simulation. * Revert: Plan action mode can break early.
1 parent ce2e87b commit f214b6e

File tree

3,827 files changed

+596
-302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,827 files changed

+596
-302
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ Currently supported arms:
249249
- Mico arm with Mico gripper `(mico)`
250250
- Jaco arm with 3-finger Jaco gripper `(jaco)`
251251
- Sawyer arm with Baxter gripper `(sawyer)`
252+
- UR5 arm with Robotiq 85 gripper `(ur5)`
252253

253254
You can then swap out the arm using `robot_configuration`:
254255

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ Pillow
33
pyquaternion
44
html-testRunner
55
setuptools
6+
natsort

rlbench/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
__version__ = '1.0.10'
1+
__version__ = '1.1.0'
22

33
import numpy as np
44
import pyrep
55

66
pr_v = np.array(pyrep.__version__.split('.'), dtype=int)
7-
if pr_v.size < 4 or np.any(pr_v < np.array([4, 1, 0, 1])):
7+
if pr_v.size < 4 or np.any(pr_v < np.array([4, 1, 0, 2])):
88
raise ImportError(
9-
'PyRep version must be greater than 4.1.0.1. Please update PyRep.')
9+
'PyRep version must be greater than 4.1.0.2. Please update PyRep.')
1010

1111

1212
from rlbench.environment import Environment

rlbench/action_modes.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,22 @@ class ArmActionMode(Enum):
3131
# But does path planning between these points
3232
ABS_EE_POSE_PLAN_WORLD_FRAME = 8
3333

34+
# Absolute end-effector pose (position (3) and quaternion (4))
35+
# But does path planning between these points (with collision checking)
36+
ABS_EE_POSE_PLAN_WORLD_FRAME_WITH_COLLISION_CHECK = 9
37+
3438
# Change in end-effector pose (position (3) and quaternion (4))
3539
# But does path planning between these points
36-
DELTA_EE_POSE_PLAN_WORLD_FRAME = 9
40+
DELTA_EE_POSE_PLAN_WORLD_FRAME = 10
3741

3842
# Change in end-effector pose (position (3) and quaternion (4))
3943
# In the end-effector frame
40-
EE_POSE_EE_FRAME = 10
44+
EE_POSE_EE_FRAME = 11
4145

4246
# Change in end-effector pose (position (3) and quaternion (4))
4347
# But does path planning between these points.
4448
# In the end-effector frame
45-
EE_POSE_PLAN_EE_FRAME = 11
49+
EE_POSE_PLAN_EE_FRAME = 12
4650

4751
# NOTE: There is no ABS/DELTA mode for the EE_FRAME because ABS == DELTA
4852

rlbench/backend/const.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
RIGHT_SHOULDER_RGB_FOLDER = 'right_shoulder_rgb'
77
RIGHT_SHOULDER_DEPTH_FOLDER = 'right_shoulder_depth'
88
RIGHT_SHOULDER_MASK_FOLDER = 'right_shoulder_mask'
9+
OVERHEAD_RGB_FOLDER = 'overhead_rgb'
10+
OVERHEAD_DEPTH_FOLDER = 'overhead_depth'
11+
OVERHEAD_MASK_FOLDER = 'overhead_mask'
912
WRIST_RGB_FOLDER = 'wrist_rgb'
1013
WRIST_DEPTH_FOLDER = 'wrist_depth'
1114
WRIST_MASK_FOLDER = 'wrist_mask'

rlbench/backend/observation.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,23 @@ def __init__(self,
88
left_shoulder_rgb: np.ndarray,
99
left_shoulder_depth: np.ndarray,
1010
left_shoulder_mask: np.ndarray,
11+
left_shoulder_point_cloud: np.ndarray,
1112
right_shoulder_rgb: np.ndarray,
1213
right_shoulder_depth: np.ndarray,
1314
right_shoulder_mask: np.ndarray,
15+
right_shoulder_point_cloud: np.ndarray,
16+
overhead_rgb: np.ndarray,
17+
overhead_depth: np.ndarray,
18+
overhead_mask: np.ndarray,
19+
overhead_point_cloud: np.ndarray,
1420
wrist_rgb: np.ndarray,
1521
wrist_depth: np.ndarray,
1622
wrist_mask: np.ndarray,
23+
wrist_point_cloud: np.ndarray,
1724
front_rgb: np.ndarray,
1825
front_depth: np.ndarray,
1926
front_mask: np.ndarray,
27+
front_point_cloud: np.ndarray,
2028
joint_velocities: np.ndarray,
2129
joint_positions: np.ndarray,
2230
joint_forces: np.ndarray,
@@ -25,20 +33,28 @@ def __init__(self,
2533
gripper_matrix: np.ndarray,
2634
gripper_joint_positions: np.ndarray,
2735
gripper_touch_forces: np.ndarray,
28-
wrist_camera_matrix: np.ndarray,
29-
task_low_dim_state: np.ndarray):
36+
task_low_dim_state: np.ndarray,
37+
misc: dict):
3038
self.left_shoulder_rgb = left_shoulder_rgb
3139
self.left_shoulder_depth = left_shoulder_depth
3240
self.left_shoulder_mask = left_shoulder_mask
41+
self.left_shoulder_point_cloud = left_shoulder_point_cloud
3342
self.right_shoulder_rgb = right_shoulder_rgb
3443
self.right_shoulder_depth = right_shoulder_depth
3544
self.right_shoulder_mask = right_shoulder_mask
45+
self.right_shoulder_point_cloud = right_shoulder_point_cloud
46+
self.overhead_rgb = overhead_rgb
47+
self.overhead_depth = overhead_depth
48+
self.overhead_mask = overhead_mask
49+
self.overhead_point_cloud = overhead_point_cloud
3650
self.wrist_rgb = wrist_rgb
3751
self.wrist_depth = wrist_depth
3852
self.wrist_mask = wrist_mask
53+
self.wrist_point_cloud = wrist_point_cloud
3954
self.front_rgb = front_rgb
4055
self.front_depth = front_depth
4156
self.front_mask = front_mask
57+
self.front_point_cloud = front_point_cloud
4258
self.joint_velocities = joint_velocities
4359
self.joint_positions = joint_positions
4460
self.joint_forces = joint_forces
@@ -47,8 +63,8 @@ def __init__(self,
4763
self.gripper_matrix = gripper_matrix
4864
self.gripper_joint_positions = gripper_joint_positions
4965
self.gripper_touch_forces = gripper_touch_forces
50-
self.wrist_camera_matrix = wrist_camera_matrix
5166
self.task_low_dim_state = task_low_dim_state
67+
self.misc = misc
5268

5369
def get_low_dim_data(self) -> np.ndarray:
5470
"""Gets a 1D array of all the low-dimensional obseervations.

0 commit comments

Comments
 (0)