Skip to content

Commit ef71ec6

Browse files
author
Alex Church
committed
add ycb init and prototype files
1 parent 45d1532 commit ef71ec6

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

pybullet_object_models/ycb_objects/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@
44
def getDataPath():
55
resdir = os.path.join(os.path.dirname(__file__))
66
return resdir
7+
8+
def getModelList():
9+
data_path = getDataPath()
10+
model_list = [os.path.basename(os.path.normpath(f.path)) for f in os.scandir(data_path) if f.is_dir()]
11+
try:
12+
model_list.remove('__pycache__')
13+
except:pass
14+
return model_list
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<robot name="_name">
2+
<link name="_name">
3+
<visual>
4+
<origin xyz="0 0 0" rpy="0 0 0"/>
5+
<geometry>
6+
<mesh filename="_prototype.obj" scale="1 1 1" />
7+
</geometry>
8+
<material name="texture">
9+
<color rgba="1.0 1.0 1.0 1.0"/>
10+
</material>
11+
</visual>
12+
<collision>
13+
<geometry>
14+
<mesh filename="_prototype.obj" scale="1 1 1" />
15+
</geometry>
16+
</collision>
17+
<inertial>
18+
<mass value="1.0"/>
19+
<inertia ixx="1.0" ixy="0.0" ixz="0.0" iyy="1.0" iyz="0.0" izz="1.0"/>
20+
</inertial>
21+
</link>
22+
</robot>

0 commit comments

Comments
 (0)