You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Some of the meshes have been simplified to reduce the number of triangles.
180
181
182
+
### ShapeNetCore.v2 ###
183
+
184
+
- The dataset is available on the ShapeNet website ([https://shapenet.org/](https://shapenet.org/)).
185
+
186
+
To extract `.urdf` files from the `ShapeNetCore.v2` dataset, please follow these instructions:
187
+
188
+
1. Download the `ShapeNetCore.v2` dataset and place it under `pybullet_object_models/shapenet/`. The name of the dataset folder needs to be `ShapeNetCore.v2`.
189
+
2. Copy the `_protype.urdf` file from `/egad/` into the `ShapeNetCore.v2` directory.
190
+
3. Once these two steps are done, you should have the following tree:
4. In the project root folder, run `python build_shapenet_urdfs.py`. The extracted `.urdf` files are named `model.urdf`. They are placed under the object ID directory. For example:
200
+
```
201
+
pybullet_object_models
202
+
├── shapenet
203
+
│ ├── ShapeNetCore.v2
204
+
│ │ ├── _prototype.urdf
205
+
│ │ ├── 02942699
206
+
| | | ├── 1ab3abb5c090d9b68e940c4e64a94e1e
207
+
| | | | ├── models
208
+
| | | | ├── images
209
+
| | | | ├── model.urdf <-- EXTRACTED .URDF
210
+
```
211
+
181
212
### Usage ###
182
213
183
214
Example scripts for importing the objects into pybullet are provided in the examples folder. To run these cd into the `examples` directory and run `python demo_load_object.py`. Use the `-object_set=` argument to load from a given object set, currently this can be selected from `primitive`, `random`, `ycb`, `superquadric` or `google` if setup correctly.
0 commit comments