File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed
pybullet_object_models/ycb_objects Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 44def 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
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments