Skip to content

Commit 7d95982

Browse files
authored
Merge pull request #316 from StanfordVL/ig-develop
Release v2.2.2
2 parents 3ad2aef + c36a60b commit 7d95982

25 files changed

+60
-72
lines changed

.github/workflows/docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build-docs:
77
name: Build and deploy documentation
88
runs-on: ubuntu-latest
9-
if: github.repository == 'StanfordVL/iGibson' && github.ref == 'refs/heads/master'
9+
if: github.ref == 'refs/heads/master'
1010

1111
steps:
1212
- name: Checkout code

.github/workflows/examples-as-test.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ concurrency:
1515
jobs:
1616
test:
1717
runs-on: [self-hosted, linux, gpu]
18-
if: github.repository == 'StanfordVL/iGibson-dev'
1918

2019
steps:
2120
- name: Checkout source
@@ -63,9 +62,8 @@ jobs:
6362
- name: Checkout BDDL
6463
uses: actions/checkout@v2
6564
with:
66-
repository: StanfordVL/bddl-dev
67-
ref: 581be50e7cfd2b3a1447aaa1b4fc2424b673339c
68-
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # PAT is required since this is a different repo
65+
repository: StanfordVL/bddl
66+
ref: 7fba5f13cc9f3c83dcce9ef4b014903bbcd6e34f
6967
path: bddl
7068
submodules: recursive
7169
lfs: true

.github/workflows/exhaustive-examples-as-test.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ concurrency:
1515
jobs:
1616
test:
1717
runs-on: [self-hosted, linux, gpu]
18-
if: github.repository == 'StanfordVL/iGibson-dev'
1918

2019
steps:
2120
- name: Checkout source
@@ -63,9 +62,8 @@ jobs:
6362
- name: Checkout BDDL
6463
uses: actions/checkout@v2
6564
with:
66-
repository: StanfordVL/bddl-dev
67-
ref: 581be50e7cfd2b3a1447aaa1b4fc2424b673339c
68-
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # PAT is required since this is a different repo
65+
repository: StanfordVL/bddl
66+
ref: 7fba5f13cc9f3c83dcce9ef4b014903bbcd6e34f
6967
path: bddl
7068
submodules: recursive
7169
lfs: true

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
--outdir dist/
3232
.
3333
- name: Publish a Python distribution to PyPI
34-
if: github.repository == 'StanfordVL/iGibson' && startsWith(github.ref, 'refs/tags')
34+
if: startsWith(github.ref, 'refs/tags')
3535
uses: pypa/gh-action-pypi-publish@release/v1
3636
with:
3737
user: __token__

.github/workflows/sync-repos.yml

-18
This file was deleted.

.github/workflows/tests.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ concurrency:
99
jobs:
1010
test:
1111
runs-on: [self-hosted, linux, gpu]
12-
if: github.repository == 'StanfordVL/iGibson-dev'
1312

1413
steps:
1514
- name: Checkout source
@@ -51,9 +50,8 @@ jobs:
5150
- name: Checkout BDDL
5251
uses: actions/checkout@v2
5352
with:
54-
repository: StanfordVL/bddl-dev
55-
ref: 581be50e7cfd2b3a1447aaa1b4fc2424b673339c
56-
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} # PAT is required since this is a different repo
53+
repository: StanfordVL/bddl
54+
ref: 7fba5f13cc9f3c83dcce9ef4b014903bbcd6e34f
5755
path: bddl
5856
submodules: recursive
5957
lfs: true

README.md

+14-8
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,20 @@ iGibson is a simulation environment providing fast visual rendering and physics
2727
If you use iGibson or its assets and models, consider citing the following publication:
2828

2929
```
30-
@misc{li2021igibson,
31-
title={iGibson 2.0: Object-Centric Simulation for Robot Learning of Everyday Household Tasks},
32-
author={Chengshu Li and Fei Xia and Roberto Mart\'in-Mart\'in and Michael Lingelbach and Sanjana Srivastava and Bokui Shen and Kent Vainio and Cem Gokmen and Gokul Dharan and Tanish Jain and Andrey Kurenkov and Karen Liu and Hyowon Gweon and Jiajun Wu and Li Fei-Fei and Silvio Savarese},
33-
year={2021},
34-
eprint={2108.03272},
35-
archivePrefix={arXiv},
36-
primaryClass={cs.RO}
37-
}
30+
@inproceedings{li2022igibson,
31+
title = {iGibson 2.0: Object-Centric Simulation for Robot Learning of Everyday Household Tasks},
32+
author = {Li, Chengshu and Xia, Fei and Mart\'in-Mart\'in, Roberto and Lingelbach, Michael and Srivastava, Sanjana and Shen, Bokui and Vainio, Kent Elliott and Gokmen, Cem and Dharan, Gokul and Jain, Tanish and Kurenkov, Andrey and Liu, Karen and Gweon, Hyowon and Wu, Jiajun and Fei-Fei, Li and Savarese, Silvio},
33+
booktitle = {Proceedings of the 5th Conference on Robot Learning},
34+
pages = {455--465},
35+
year = {2022},
36+
editor = {Faust, Aleksandra and Hsu, David and Neumann, Gerhard},
37+
volume = {164},
38+
series = {Proceedings of Machine Learning Research},
39+
month = {08--11 Nov},
40+
publisher = {PMLR},
41+
pdf = {https://proceedings.mlr.press/v164/li22b/li22b.pdf},
42+
url = {https://proceedings.mlr.press/v164/li22b.html},
43+
}
3844
```
3945

4046
```

docker/.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION=v2.2.1
1+
VERSION=v2.2.2

docs/intro.md

+17-11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ iGibson implements all features required to evaluate AI solutions in the BEHAVIO
1212
### Citation
1313
If you use iGibson or its assets and models, consider citing the following publications:
1414

15+
```
16+
@InProceedings{li2022igibson,
17+
title = {iGibson 2.0: Object-Centric Simulation for Robot Learning of Everyday Household Tasks},
18+
author = {Li, Chengshu and Xia, Fei and Mart\'in-Mart\'in, Roberto and Lingelbach, Michael and Srivastava, Sanjana and Shen, Bokui and Vainio, Kent Elliott and Gokmen, Cem and Dharan, Gokul and Jain, Tanish and Kurenkov, Andrey and Liu, Karen and Gweon, Hyowon and Wu, Jiajun and Fei-Fei, Li and Savarese, Silvio},
19+
booktitle = {Proceedings of the 5th Conference on Robot Learning},
20+
pages = {455--465},
21+
year = {2022},
22+
editor = {Faust, Aleksandra and Hsu, David and Neumann, Gerhard},
23+
volume = {164},
24+
series = {Proceedings of Machine Learning Research},
25+
month = {08--11 Nov},
26+
publisher = {PMLR},
27+
pdf = {https://proceedings.mlr.press/v164/li22b/li22b.pdf},
28+
url = {https://proceedings.mlr.press/v164/li22b.html},
29+
}
30+
```
31+
1532
```
1633
@inproceedings{shen2021igibson,
1734
title={iGibson 1.0: a Simulation Environment for Interactive Tasks in Large Realistic Scenes},
@@ -23,17 +40,6 @@ If you use iGibson or its assets and models, consider citing the following publi
2340
}
2441
```
2542

26-
```
27-
@misc{li2021igibson,
28-
title={iGibson 2.0: Object-Centric Simulation for Robot Learning of Everyday Household Tasks},
29-
author={Chengshu Li and Fei Xia and Roberto Martín-Martín and Michael Lingelbach and Sanjana Srivastava and Bokui Shen and Kent Vainio and Cem Gokmen and Gokul Dharan and Tanish Jain and Andrey Kurenkov and Karen Liu and Hyowon Gweon and Jiajun Wu and Li Fei-Fei and Silvio Savarese},
30-
year={2021},
31-
eprint={2108.03272},
32-
archivePrefix={arXiv},
33-
primaryClass={cs.RO}
34-
}
35-
```
36-
3743
### Code Release
3844
The GitHub repository of iGibson can be found [here](https://github.com/StanfordVL/iGibson). Bug reports, suggestions for improvement, as well as community developments are encouraged and appreciated.
3945

igibson/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import packaging.version
55
import yaml
66

7-
__version__ = "2.2.1"
7+
__version__ = "2.2.2"
88

99
__logo__ = r"""
1010
_ _____ _ _

igibson/controllers/null_gripper_controller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
super().__init__(
4949
control_freq=control_freq,
5050
control_limits=control_limits,
51-
joint_idx=np.array([], dtype=np.int), # no joints controlled
51+
joint_idx=np.array([], dtype=int), # no joints controlled
5252
command_input_limits=command_input_limits,
5353
command_output_limits=command_output_limits,
5454
)

igibson/examples/observations/generate_lidar_colored_pointcloud.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def get_lidar_sampling_pattern():
3636

3737
height = 128
3838

39-
x_samples = (np.tan(xx) / np.cos(yy) * height // 2 + height // 2).astype(np.int)
40-
y_samples = (np.tan(yy) * height // 2 + height // 2).astype(np.int)
39+
x_samples = (np.tan(xx) / np.cos(yy) * height // 2 + height // 2).astype(int)
40+
y_samples = (np.tan(yy) * height // 2 + height // 2).astype(int)
4141

4242
x_samples = x_samples.flatten()
4343
y_samples = y_samples.flatten()

igibson/examples/scenes/scenescan2igibson/generate_floor_map.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def gen_map(obj_filepath, mesh_dir, img_filename_format="floor_{}.png"):
109109
xmax, ymax, _ = vertices.max(axis=0)
110110

111111
max_length = np.max([np.abs(xmin), np.abs(ymin), np.abs(xmax), np.abs(ymax)])
112-
max_length = np.ceil(max_length).astype(np.int)
112+
max_length = np.ceil(max_length).astype(int)
113113

114114
with open(os.path.join(mesh_dir, "floors.txt")) as f:
115115
floors = map(float, f.readlines())

igibson/examples/scenes/scenescan2igibson/generate_traversable_map.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def gen_trav_map(mp3d_dir, add_clutter=False):
112112
xmax, ymax, _ = vertices.max(axis=0)
113113

114114
max_length = np.max([np.abs(xmin), np.abs(ymin), np.abs(xmax), np.abs(ymax)])
115-
max_length = np.ceil(max_length).astype(np.int)
115+
max_length = np.ceil(max_length).astype(int)
116116

117117
for i_floor in range(len(floors)):
118118
floor = floors[i_floor]

igibson/external/pybullet_tools/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3419,7 +3419,7 @@ def collision_fn(q):
34193419
robot_footprint_radius_in_map * 2 + 1))
34203420
cv2.circle(mask, (robot_footprint_radius_in_map, robot_footprint_radius_in_map), robot_footprint_radius_in_map,
34213421
1, -1)
3422-
mask = mask.astype(np.bool)
3422+
mask = mask.astype(bool)
34233423

34243424
# Check if all the points where the shifted mask of the robot base overlaps with the occupancy map are
34253425
# marked as FREESPACE, and return false if not

igibson/object_states/adjacency.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def compute_adjacencies(obj, axes, max_distance):
7070
directions[1::2] = -axes
7171

7272
# For now, we keep our result in the dimensionality of (direction, hit_object_order).
73-
finalized = np.zeros(directions.shape[0], dtype=np.bool)
73+
finalized = np.zeros(directions.shape[0], dtype=bool)
7474
bodies_by_direction = [[] for _ in directions]
7575

7676
# Prepare this object's info for ray casting.
@@ -104,7 +104,7 @@ def compute_adjacencies(obj, axes, max_distance):
104104
)
105105

106106
# Get the object IDs per axis and filter out self-hit cases.
107-
obj_ids = np.array([result[0] for result in ray_results], dtype=np.int)
107+
obj_ids = np.array([result[0] for result in ray_results], dtype=int)
108108

109109
# Add the results to the appropriate lists
110110
for direction_idx, result in enumerate(obj_ids):

igibson/object_states/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def sample_kinematics(
163163
height, height_map = objB.supporting_surfaces[predicate][(body_id, link_id)][random_height_idx]
164164
obj_half_size = np.max(objA.bounding_box) / 2 * 100
165165
obj_half_size_scaled = np.array([obj_half_size / objB.scale[1], obj_half_size / objB.scale[0]])
166-
obj_half_size_scaled = np.ceil(obj_half_size_scaled).astype(np.int)
166+
obj_half_size_scaled = np.ceil(obj_half_size_scaled).astype(int)
167167
height_map_eroded = cv2.erode(height_map, np.ones(obj_half_size_scaled, np.uint8))
168168

169169
valid_pos = np.array(height_map_eroded.nonzero())

igibson/render/mesh_renderer/mesh_renderer_cpu.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1764,8 +1764,8 @@ def setup_lidar_param(self):
17641764
xx = xx.flatten()
17651765
yy = yy.flatten()
17661766

1767-
x_samples = (np.tan(xx) / np.cos(yy) * self.height // 2 + self.height // 2).astype(np.int)
1768-
y_samples = (np.tan(yy) * self.height // 2 + self.height // 2).astype(np.int)
1767+
x_samples = (np.tan(xx) / np.cos(yy) * self.height // 2 + self.height // 2).astype(int)
1768+
y_samples = (np.tan(yy) * self.height // 2 + self.height // 2).astype(int)
17691769

17701770
self.x_samples = x_samples.flatten()
17711771
self.y_samples = y_samples.flatten()

igibson/robots/jr2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def gripper_control_idx(self):
138138
:return dict[str, Array[int]]: Dictionary mapping arm appendage name to indices in low-level control
139139
vector corresponding to gripper joints.
140140
"""
141-
return {self.default_arm: np.array([8, 9], dtype=np.int)}
141+
return {self.default_arm: np.array([8, 9], dtype=int)}
142142

143143
@property
144144
def disabled_collision_pairs(self):

igibson/scenes/igibson_indoor_scene.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ def world_to_seg_map(self, xy):
10421042
:param xy: 2D location in world reference frame (metric)
10431043
:return: 2D location in seg map reference frame (image)
10441044
"""
1045-
return np.flip((xy / self.seg_map_resolution + self.seg_map_size / 2.0)).astype(np.int)
1045+
return np.flip((xy / self.seg_map_resolution + self.seg_map_size / 2.0)).astype(int)
10461046

10471047
def get_room_type_by_point(self, xy):
10481048
"""

igibson/scenes/indoor_scene.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def world_to_map(self, xy):
176176
:param xy: 2D location in world reference frame (metric)
177177
:return: 2D location in map reference frame (image)
178178
"""
179-
return np.flip((np.array(xy) / self.trav_map_resolution + self.trav_map_size / 2.0)).astype(np.int)
179+
return np.flip((np.array(xy) / self.trav_map_resolution + self.trav_map_size / 2.0)).astype(int)
180180

181181
def has_node(self, floor, world_xy):
182182
"""

igibson/utils/data_utils/ext_scene/scripts/step_1_preprocess_3dfront.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def get_scene_range(model_id):
418418
xmin, ymin = stacked.min(axis=0)
419419
xmax, ymax = stacked.max(axis=0)
420420
max_length = np.max([np.abs(xmin), np.abs(ymin), np.abs(xmax), np.abs(ymax)])
421-
max_length = np.ceil(max_length).astype(np.int)
421+
max_length = np.ceil(max_length).astype(int)
422422
return max_length
423423

424424

igibson/utils/data_utils/ext_scene/scripts/step_1_preprocess_cubicasa.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def main():
363363
xmin, ymin = stacked.min(axis=0)
364364
xmax, ymax = stacked.max(axis=0)
365365
max_length = np.max([np.abs(xmin), np.abs(ymin), np.abs(xmax), np.abs(ymax)])
366-
max_length = np.ceil(max_length).astype(np.int)
366+
max_length = np.ceil(max_length).astype(int)
367367
ins_image = Image.new("L", (2 * max_length * 100, 2 * max_length * 100), 0)
368368
d1 = ImageDraw.Draw(ins_image)
369369
sem_image = Image.new("L", (2 * max_length * 100, 2 * max_length * 100), 0)

igibson/utils/map_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def gen_trav_map(
4141
xmax, ymax, _ = vertices.max(axis=0)
4242

4343
max_length = np.max([np.abs(xmin), np.abs(ymin), np.abs(xmax), np.abs(ymax)])
44-
max_length = np.ceil(max_length).astype(np.int)
44+
max_length = np.ceil(max_length).astype(int)
4545

4646
wall_maps = gen_map(vertices, faces, output_folder, img_filename_format=obstacle_map_filename_format)
4747
wall_pts = np.array(np.where(wall_maps[0] == 0)).T
@@ -170,7 +170,7 @@ def gen_map(vertices, faces, output_folder, img_filename_format="floor_{}.png"):
170170
xmax, ymax, _ = vertices.max(axis=0)
171171

172172
max_length = np.max([np.abs(xmin), np.abs(ymin), np.abs(xmax), np.abs(ymax)])
173-
max_length = np.ceil(max_length).astype(np.int)
173+
max_length = np.ceil(max_length).astype(int)
174174

175175
floors = [0.0]
176176
print(floors)

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name="igibson"
7-
version="2.2.1"
7+
version="2.2.2"
88
readme = "README.md"
99
requires-python = ">=2.8"
1010
license = {text = "MIT"}

0 commit comments

Comments
 (0)