Upload 1167 files
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .gitattributes +2 -0
- objects/camera_annotated/base.mtl +16 -0
- objects/camera_annotated/camera_diffuse.jpg +3 -0
- objects/camera_annotated/model_data.json +227 -0
- objects/camera_annotated/models.py +116 -0
- objects/camera_annotated/normalize_proportionally.py +49 -0
- objects/camera_annotated/textured.obj +0 -0
- objects/hammer_annotated/base.glb +3 -0
- objects/hammer_annotated/model_data.json +170 -0
- objects/meat_annotated/Textures/Raw meat.jpg +3 -0
- objects/meat_annotated/base.mtl +13 -0
- objects/meat_annotated/model_data.json +203 -0
- objects/meat_annotated/models.py +117 -0
- objects/meat_annotated/textured.obj +430 -0
- objects/pot_annotated/bounding_box.json +1 -0
- objects/pot_annotated/images/texture_0.jpg +3 -0
- objects/pot_annotated/images/texture_1.jpg +3 -0
- objects/pot_annotated/images/texture_10.jpg +3 -0
- objects/pot_annotated/images/texture_100.jpg +3 -0
- objects/pot_annotated/images/texture_1000.jpg +3 -0
- objects/pot_annotated/images/texture_1001.jpg +3 -0
- objects/pot_annotated/images/texture_1002.jpg +3 -0
- objects/pot_annotated/images/texture_1003.jpg +3 -0
- objects/pot_annotated/images/texture_1004.jpg +3 -0
- objects/pot_annotated/images/texture_1005.jpg +3 -0
- objects/pot_annotated/images/texture_1006.jpg +3 -0
- objects/pot_annotated/images/texture_1007.jpg +3 -0
- objects/pot_annotated/images/texture_1008.jpg +3 -0
- objects/pot_annotated/images/texture_1009.jpg +3 -0
- objects/pot_annotated/images/texture_101.jpg +3 -0
- objects/pot_annotated/images/texture_1010.jpg +3 -0
- objects/pot_annotated/images/texture_1011.jpg +3 -0
- objects/pot_annotated/images/texture_1012.jpg +3 -0
- objects/pot_annotated/images/texture_1013.jpg +3 -0
- objects/pot_annotated/images/texture_1014.jpg +3 -0
- objects/pot_annotated/images/texture_1015.jpg +3 -0
- objects/pot_annotated/images/texture_1016.jpg +3 -0
- objects/pot_annotated/images/texture_1017.jpg +3 -0
- objects/pot_annotated/images/texture_1018.jpg +3 -0
- objects/pot_annotated/images/texture_1019.jpg +3 -0
- objects/pot_annotated/images/texture_102.jpg +3 -0
- objects/pot_annotated/images/texture_1020.jpg +3 -0
- objects/pot_annotated/images/texture_1021.jpg +3 -0
- objects/pot_annotated/images/texture_1022.jpg +3 -0
- objects/pot_annotated/images/texture_1023.jpg +3 -0
- objects/pot_annotated/images/texture_1024.jpg +3 -0
- objects/pot_annotated/images/texture_1025.jpg +3 -0
- objects/pot_annotated/images/texture_1026.jpg +3 -0
- objects/pot_annotated/images/texture_1027.jpg +3 -0
- objects/pot_annotated/images/texture_1028.jpg +3 -0
.gitattributes
CHANGED
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
60 |
scenes/table/table.glb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
60 |
scenes/table/table.glb filter=lfs diff=lfs merge=lfs -text
|
61 |
+
objects/hammer_annotated/base.glb filter=lfs diff=lfs merge=lfs -text
|
62 |
+
objects/single_shoe_annotated/base.glb filter=lfs diff=lfs merge=lfs -text
|
objects/camera_annotated/base.mtl
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
|
2 |
+
# File Created: 29.04.2011 09:52:53
|
3 |
+
|
4 |
+
newmtl 10124_SLR_Camera_V1
|
5 |
+
Ns 10.0000
|
6 |
+
Ni 1.5000
|
7 |
+
d 1.0000
|
8 |
+
Tr 0.0000
|
9 |
+
Tf 1.0000 1.0000 1.0000
|
10 |
+
illum 2
|
11 |
+
Ka 0.5880 0.5880 0.5880
|
12 |
+
Kd 0.5880 0.5880 0.5880
|
13 |
+
Ks 0.0000 0.0000 0.0000
|
14 |
+
Ke 0.0000 0.0000 0.0000
|
15 |
+
map_Ka camera_diffuse.jpg
|
16 |
+
map_Kd camera_diffuse.jpg
|
objects/camera_annotated/camera_diffuse.jpg
ADDED
![]() |
Git LFS Details
|
objects/camera_annotated/model_data.json
ADDED
@@ -0,0 +1,227 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"center": [
|
3 |
+
1.4852396398396155e-07,
|
4 |
+
-4.694543494620984e-07,
|
5 |
+
0.3801412642964436
|
6 |
+
],
|
7 |
+
"extents": [
|
8 |
+
1.0000020791712079,
|
9 |
+
0.7604108783138809,
|
10 |
+
0.760284606945514
|
11 |
+
],
|
12 |
+
"scale": [
|
13 |
+
0.25,
|
14 |
+
0.25,
|
15 |
+
0.25
|
16 |
+
],
|
17 |
+
"target_pose": [
|
18 |
+
[
|
19 |
+
[
|
20 |
+
1.0,
|
21 |
+
0.0,
|
22 |
+
0.0,
|
23 |
+
0.1
|
24 |
+
],
|
25 |
+
[
|
26 |
+
0.0,
|
27 |
+
1.0,
|
28 |
+
0.0,
|
29 |
+
-0.4
|
30 |
+
],
|
31 |
+
[
|
32 |
+
0.0,
|
33 |
+
0.0,
|
34 |
+
1.0,
|
35 |
+
0.3
|
36 |
+
],
|
37 |
+
[
|
38 |
+
0.0,
|
39 |
+
0.0,
|
40 |
+
0.0,
|
41 |
+
1.0
|
42 |
+
]
|
43 |
+
]
|
44 |
+
],
|
45 |
+
"contact_points_pose": [
|
46 |
+
[
|
47 |
+
[
|
48 |
+
-0.4999999999999998,
|
49 |
+
0.8660254037844387,
|
50 |
+
-5.3028761936245346e-17,
|
51 |
+
0.32
|
52 |
+
],
|
53 |
+
[
|
54 |
+
0.0,
|
55 |
+
6.123233995736766e-17,
|
56 |
+
1.0,
|
57 |
+
0.17
|
58 |
+
],
|
59 |
+
[
|
60 |
+
0.8660254037844387,
|
61 |
+
0.4999999999999998,
|
62 |
+
-3.061616997868382e-17,
|
63 |
+
0.3
|
64 |
+
],
|
65 |
+
[
|
66 |
+
0.0,
|
67 |
+
0.0,
|
68 |
+
0.0,
|
69 |
+
1.0
|
70 |
+
]
|
71 |
+
],
|
72 |
+
[
|
73 |
+
[
|
74 |
+
0.5000000000000001,
|
75 |
+
-0.8660254037844386,
|
76 |
+
-5.302876193624534e-17,
|
77 |
+
-0.32
|
78 |
+
],
|
79 |
+
[
|
80 |
+
0.0,
|
81 |
+
6.123233995736766e-17,
|
82 |
+
-1.0,
|
83 |
+
0.1
|
84 |
+
],
|
85 |
+
[
|
86 |
+
0.8660254037844386,
|
87 |
+
0.5000000000000001,
|
88 |
+
3.0616169978683836e-17,
|
89 |
+
0.3
|
90 |
+
],
|
91 |
+
[
|
92 |
+
0.0,
|
93 |
+
0.0,
|
94 |
+
0.0,
|
95 |
+
1.0
|
96 |
+
]
|
97 |
+
],
|
98 |
+
[
|
99 |
+
[
|
100 |
+
6.123233995736766e-17,
|
101 |
+
6.123233995736766e-17,
|
102 |
+
-1.0,
|
103 |
+
-0.4
|
104 |
+
],
|
105 |
+
[
|
106 |
+
-1.0,
|
107 |
+
3.749399456654644e-33,
|
108 |
+
-6.123233995736766e-17,
|
109 |
+
-0.08
|
110 |
+
],
|
111 |
+
[
|
112 |
+
0.0,
|
113 |
+
1.0,
|
114 |
+
6.123233995736766e-17,
|
115 |
+
0.52
|
116 |
+
],
|
117 |
+
[
|
118 |
+
0.0,
|
119 |
+
0.0,
|
120 |
+
0.0,
|
121 |
+
1.0
|
122 |
+
]
|
123 |
+
]
|
124 |
+
],
|
125 |
+
"transform_matrix": [
|
126 |
+
[
|
127 |
+
1.0,
|
128 |
+
0.0,
|
129 |
+
0.0,
|
130 |
+
0.0
|
131 |
+
],
|
132 |
+
[
|
133 |
+
0.0,
|
134 |
+
1.0,
|
135 |
+
0.0,
|
136 |
+
0.0
|
137 |
+
],
|
138 |
+
[
|
139 |
+
-0.0,
|
140 |
+
0.0,
|
141 |
+
1.0,
|
142 |
+
0.0
|
143 |
+
],
|
144 |
+
[
|
145 |
+
0.0,
|
146 |
+
0.0,
|
147 |
+
0.0,
|
148 |
+
1.0
|
149 |
+
]
|
150 |
+
],
|
151 |
+
"functional_matrix": [
|
152 |
+
[
|
153 |
+
[
|
154 |
+
1.0,
|
155 |
+
0.0,
|
156 |
+
0.0,
|
157 |
+
0.1
|
158 |
+
],
|
159 |
+
[
|
160 |
+
0.0,
|
161 |
+
6.123233995736766e-17,
|
162 |
+
-1.0,
|
163 |
+
-0.4
|
164 |
+
],
|
165 |
+
[
|
166 |
+
0.0,
|
167 |
+
1.0,
|
168 |
+
6.123233995736766e-17,
|
169 |
+
0.3
|
170 |
+
],
|
171 |
+
[
|
172 |
+
0.0,
|
173 |
+
0.0,
|
174 |
+
0.0,
|
175 |
+
1.0
|
176 |
+
]
|
177 |
+
]
|
178 |
+
],
|
179 |
+
"orientation_point": [
|
180 |
+
[
|
181 |
+
1.0,
|
182 |
+
0.0,
|
183 |
+
0.0,
|
184 |
+
0.0
|
185 |
+
],
|
186 |
+
[
|
187 |
+
0.0,
|
188 |
+
1.0,
|
189 |
+
0.0,
|
190 |
+
0.38020543915694044
|
191 |
+
],
|
192 |
+
[
|
193 |
+
0.0,
|
194 |
+
0.0,
|
195 |
+
1.0,
|
196 |
+
0.0
|
197 |
+
],
|
198 |
+
[
|
199 |
+
0.0,
|
200 |
+
0.0,
|
201 |
+
0.0,
|
202 |
+
1.0
|
203 |
+
]
|
204 |
+
],
|
205 |
+
"contact_points_group": [
|
206 |
+
[
|
207 |
+
0
|
208 |
+
]
|
209 |
+
],
|
210 |
+
"contact_points_mask": [
|
211 |
+
true
|
212 |
+
],
|
213 |
+
"contact_points_discription": [
|
214 |
+
"Grasping the side of the camera.",
|
215 |
+
"Grasping the side of the camera.",
|
216 |
+
"Pointing the shutter."
|
217 |
+
],
|
218 |
+
"target_point_discription": [
|
219 |
+
"The center of the object."
|
220 |
+
],
|
221 |
+
"functional_point_discription": [
|
222 |
+
""
|
223 |
+
],
|
224 |
+
"orientation_point_discription": [
|
225 |
+
""
|
226 |
+
]
|
227 |
+
}
|
objects/camera_annotated/models.py
ADDED
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import trimesh
|
2 |
+
import json
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
|
6 |
+
PI = np.pi
|
7 |
+
|
8 |
+
def create_model_data(id):
|
9 |
+
file_path = f"./textured{id}.obj"
|
10 |
+
save_path = f"./model_data{id}.json"
|
11 |
+
|
12 |
+
# with open(save_path, 'r') as json_file:
|
13 |
+
# data = json.load(json_file)
|
14 |
+
|
15 |
+
with open(file_path, 'rb') as file_obj:
|
16 |
+
mesh = trimesh.load(file_obj, file_type='obj')
|
17 |
+
# 创建一个场景
|
18 |
+
scene = trimesh.Scene(mesh)
|
19 |
+
|
20 |
+
oriented_bounding_box = mesh.bounding_box_oriented
|
21 |
+
red_color = [1.0, 0.0, 0.0, 0.5] # 红色, A=1 表示不透明
|
22 |
+
green_color = [0.0, 1.0, 0.0, 0.5]
|
23 |
+
blue_color = [0.0, 0.0, 1.0, 0.5]
|
24 |
+
scale = [0.25] * 3
|
25 |
+
shape = oriented_bounding_box.extents.tolist()
|
26 |
+
|
27 |
+
print(shape)
|
28 |
+
target_sphere = trimesh.creation.icosphere(subdivisions=2, radius=0.1)
|
29 |
+
target_trans_matrix_sphere = trimesh.transformations.translation_matrix([0.1,-0.4,0.3])
|
30 |
+
|
31 |
+
target_sphere.apply_transform(target_trans_matrix_sphere)
|
32 |
+
target_sphere.visual.vertex_colors = np.array([red_color] * len(target_sphere.vertices))
|
33 |
+
target_points_list = [target_trans_matrix_sphere.tolist()]
|
34 |
+
|
35 |
+
# # 可视化网格和坐标轴
|
36 |
+
scene.add_geometry(target_sphere)
|
37 |
+
|
38 |
+
contact_points_list = []
|
39 |
+
contact_point_discription_list = []
|
40 |
+
orientation_point_list = []
|
41 |
+
functional_matrix = []
|
42 |
+
|
43 |
+
def add_contact_point(point_radius, pose:list, euler:list, discription: str):
|
44 |
+
contact_sphere = trimesh.creation.icosphere(subdivisions=2, radius=point_radius)
|
45 |
+
contact_trans_matrix_sphere = trimesh.transformations.translation_matrix(pose) @ trimesh.transformations.euler_matrix(euler[0], euler[1], euler[2])
|
46 |
+
contact_sphere.apply_transform(contact_trans_matrix_sphere)
|
47 |
+
contact_sphere.visual.vertex_colors = np.array([red_color] * len(contact_sphere.vertices))
|
48 |
+
contact_points_list.append(contact_trans_matrix_sphere.tolist())
|
49 |
+
|
50 |
+
axis = trimesh.creation.axis(axis_length=2)
|
51 |
+
axis.apply_transform(contact_trans_matrix_sphere)
|
52 |
+
scene.add_geometry(axis)
|
53 |
+
scene.add_geometry(contact_sphere)
|
54 |
+
contact_point_discription_list.append(discription)
|
55 |
+
|
56 |
+
|
57 |
+
alpha = 0.95
|
58 |
+
delta = 0.05
|
59 |
+
|
60 |
+
add_contact_point(0.1, [0.32, 0.17, 0.3], [-PI / 2, - 2 * PI / 3, 0], "Grasping the side of the camera.")
|
61 |
+
add_contact_point(0.1, [-0.32, 0.1, 0.3], [PI / 2, -PI / 3, 0], "Grasping the side of the camera.")
|
62 |
+
add_contact_point(0.05, [-0.4, -0.08, 0.52], [PI / 2, 0, - PI / 2], "Pointing the shutter.")
|
63 |
+
|
64 |
+
# 旋转矩阵的参数顺序是 (X, Y, Z) to endpose axis
|
65 |
+
transform_matrix = trimesh.transformations.euler_matrix(0,0,0)
|
66 |
+
transform_matrix = transform_matrix.tolist()
|
67 |
+
|
68 |
+
# 方向点
|
69 |
+
orientation_point = trimesh.creation.icosphere(subdivisions=2, radius=0.1)
|
70 |
+
orientation_point_sphere = trimesh.transformations.translation_matrix([0,oriented_bounding_box.extents[1]/2,0])
|
71 |
+
orientation_point.apply_transform(orientation_point_sphere)
|
72 |
+
orientation_point.visual.vertex_colors = np.array([green_color] * len(orientation_point.vertices))
|
73 |
+
orientation_point_list = orientation_point_sphere.tolist()
|
74 |
+
scene.add_geometry(orientation_point)
|
75 |
+
|
76 |
+
# axis1
|
77 |
+
axis1 = trimesh.creation.axis(axis_length=1.5)
|
78 |
+
axis1.apply_transform(transform_matrix)
|
79 |
+
|
80 |
+
functional_sphere = trimesh.creation.icosphere(subdivisions=2, radius=0.15)
|
81 |
+
functional_trans_matrix_sphere = trimesh.transformations.translation_matrix([0.1,-0.4,0.3]) @ trimesh.transformations.euler_matrix(PI / 2,0,0)
|
82 |
+
functional_sphere.apply_transform(functional_trans_matrix_sphere)
|
83 |
+
functional_sphere.visual.vertex_colors = np.array([blue_color] * len(functional_sphere.vertices))
|
84 |
+
functional_matrix = functional_trans_matrix_sphere.tolist()
|
85 |
+
axis = trimesh.creation.axis(axis_length=1.5)
|
86 |
+
axis.apply_transform(functional_trans_matrix_sphere)
|
87 |
+
scene.add_geometry(axis)
|
88 |
+
scene.add_geometry(functional_sphere)
|
89 |
+
|
90 |
+
data = {
|
91 |
+
'center': oriented_bounding_box.centroid.tolist(), # 中心点
|
92 |
+
'extents': oriented_bounding_box.extents.tolist(), # 尺寸
|
93 |
+
'scale': scale,
|
94 |
+
'target_pose': target_points_list, # 目标点矩阵
|
95 |
+
'contact_points_pose' : contact_points_list, # 抓取点矩阵(多个)
|
96 |
+
'transform_matrix': transform_matrix, # 模型到标轴的旋转矩阵
|
97 |
+
"functional_matrix": [functional_matrix], # 功能点矩阵
|
98 |
+
'orientation_point': orientation_point_list,
|
99 |
+
'contact_points_group': [[0]],
|
100 |
+
'contact_points_mask': [True],
|
101 |
+
'contact_points_discription': contact_point_discription_list, # 抓取点描述
|
102 |
+
'target_point_discription': ["The center of the object."], # 目标点描述
|
103 |
+
'functional_point_discription': [""],
|
104 |
+
'orientation_point_discription': [""]
|
105 |
+
}
|
106 |
+
with open(save_path, 'w') as json_file:
|
107 |
+
json.dump(data, json_file, indent=4, separators=(',', ': '))
|
108 |
+
|
109 |
+
# 将坐标轴添加到场景
|
110 |
+
axis = trimesh.creation.axis(axis_length=1.5,origin_size= 0.05)
|
111 |
+
# scene.add_geometry(axis1)
|
112 |
+
scene.show()
|
113 |
+
|
114 |
+
if __name__ == "__main__":
|
115 |
+
id = ""
|
116 |
+
create_model_data(id)
|
objects/camera_annotated/normalize_proportionally.py
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import numpy as np
|
2 |
+
|
3 |
+
def normalize_obj(input_file, output_file):
|
4 |
+
vertices = []
|
5 |
+
all_lines = []
|
6 |
+
|
7 |
+
# Read the OBJ file
|
8 |
+
with open(input_file, 'r') as file:
|
9 |
+
for line in file:
|
10 |
+
if line.startswith('v '): # Vertex line
|
11 |
+
parts = line.split()
|
12 |
+
vertices.append([float(parts[1]), float(parts[2]), float(parts[3])])
|
13 |
+
all_lines.append(line)
|
14 |
+
|
15 |
+
# Convert vertices to a numpy array for processing
|
16 |
+
vertices = np.array(vertices)
|
17 |
+
|
18 |
+
# Compute min and max for each axis
|
19 |
+
min_vals = np.min(vertices, axis=0)
|
20 |
+
max_vals = np.max(vertices, axis=0)
|
21 |
+
ranges = max_vals - min_vals
|
22 |
+
|
23 |
+
# Find the largest range between x and y
|
24 |
+
largest_range_xy = max(ranges[0], ranges[1])
|
25 |
+
|
26 |
+
# Normalize x and y to [-0.5, 0.5] and scale by the largest range
|
27 |
+
vertices[:, 0] = (vertices[:, 0] - (min_vals[0] + max_vals[0]) / 2) / largest_range_xy
|
28 |
+
vertices[:, 1] = (vertices[:, 1] - (min_vals[1] + max_vals[1]) / 2) / largest_range_xy
|
29 |
+
|
30 |
+
# Scale z proportionally to the largest xy range and shift it to start from 0
|
31 |
+
vertices[:, 2] = (vertices[:, 2] - min_vals[2]) / largest_range_xy
|
32 |
+
|
33 |
+
# Write the modified OBJ file
|
34 |
+
with open(output_file, 'w') as file:
|
35 |
+
count = 0
|
36 |
+
for line in all_lines:
|
37 |
+
if line.startswith('v '): # Replace vertex lines
|
38 |
+
vertex = vertices[count]
|
39 |
+
file.write(f"v {vertex[0]} {vertex[1]} {vertex[2]}\n")
|
40 |
+
count += 1
|
41 |
+
else:
|
42 |
+
file.write(line)
|
43 |
+
|
44 |
+
# Specify input and output files
|
45 |
+
input_file = 'old.obj'
|
46 |
+
output_file = 'new.obj'
|
47 |
+
|
48 |
+
# Normalize the OBJ file
|
49 |
+
normalize_obj(input_file, output_file)
|
objects/camera_annotated/textured.obj
ADDED
The diff for this file is too large to render.
See raw diff
|
|
objects/hammer_annotated/base.glb
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:708bd0cda216706da740ccf2ab395e9a187526f282df90e6a338e01f512b24df
|
3 |
+
size 1551784
|
objects/hammer_annotated/model_data.json
ADDED
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"center": [
|
3 |
+
-0.003247481392605794,
|
4 |
+
0.08859923551573072,
|
5 |
+
-0.10570571998224731
|
6 |
+
],
|
7 |
+
"extents": [
|
8 |
+
0.33899723948887606,
|
9 |
+
2.2179051871682356,
|
10 |
+
1.6975571233870577
|
11 |
+
],
|
12 |
+
"scale": [
|
13 |
+
0.079,
|
14 |
+
0.079,
|
15 |
+
0.079
|
16 |
+
],
|
17 |
+
"target_pose": [
|
18 |
+
[
|
19 |
+
[
|
20 |
+
1.0,
|
21 |
+
0.0,
|
22 |
+
0.0,
|
23 |
+
0.0
|
24 |
+
],
|
25 |
+
[
|
26 |
+
0.0,
|
27 |
+
1.0,
|
28 |
+
0.0,
|
29 |
+
0.8
|
30 |
+
],
|
31 |
+
[
|
32 |
+
0.0,
|
33 |
+
0.0,
|
34 |
+
1.0,
|
35 |
+
0.65
|
36 |
+
],
|
37 |
+
[
|
38 |
+
0.0,
|
39 |
+
0.0,
|
40 |
+
0.0,
|
41 |
+
1.0
|
42 |
+
]
|
43 |
+
]
|
44 |
+
],
|
45 |
+
"contact_points_pose": [
|
46 |
+
[
|
47 |
+
[
|
48 |
+
0.0007963267107332633,
|
49 |
+
-0.000796326458243414,
|
50 |
+
-0.9999993658637696,
|
51 |
+
0.0
|
52 |
+
],
|
53 |
+
[
|
54 |
+
0.9999996829318345,
|
55 |
+
6.341362302272584e-07,
|
56 |
+
0.000796326458243414,
|
57 |
+
0.0
|
58 |
+
],
|
59 |
+
[
|
60 |
+
0.0,
|
61 |
+
-0.9999996829318345,
|
62 |
+
0.0007963267107332633,
|
63 |
+
0.0
|
64 |
+
],
|
65 |
+
[
|
66 |
+
0.0,
|
67 |
+
0.0,
|
68 |
+
0.0,
|
69 |
+
1.0
|
70 |
+
]
|
71 |
+
]
|
72 |
+
],
|
73 |
+
"transform_matrix": [
|
74 |
+
[
|
75 |
+
0.0007963267107332633,
|
76 |
+
-0.000796326458243414,
|
77 |
+
-0.9999993658637696,
|
78 |
+
0.0
|
79 |
+
],
|
80 |
+
[
|
81 |
+
0.9999996829318345,
|
82 |
+
6.341362302272584e-07,
|
83 |
+
0.000796326458243414,
|
84 |
+
0.0
|
85 |
+
],
|
86 |
+
[
|
87 |
+
-0.0,
|
88 |
+
-0.9999996829318345,
|
89 |
+
0.0007963267107332633,
|
90 |
+
0.0
|
91 |
+
],
|
92 |
+
[
|
93 |
+
0.0,
|
94 |
+
0.0,
|
95 |
+
0.0,
|
96 |
+
1.0
|
97 |
+
]
|
98 |
+
],
|
99 |
+
"functional_matrix": [
|
100 |
+
[
|
101 |
+
[
|
102 |
+
1.0,
|
103 |
+
0.0,
|
104 |
+
0.0,
|
105 |
+
0.0
|
106 |
+
],
|
107 |
+
[
|
108 |
+
0.0,
|
109 |
+
1.0,
|
110 |
+
0.0,
|
111 |
+
0.8
|
112 |
+
],
|
113 |
+
[
|
114 |
+
0.0,
|
115 |
+
0.0,
|
116 |
+
1.0,
|
117 |
+
0.65
|
118 |
+
],
|
119 |
+
[
|
120 |
+
0.0,
|
121 |
+
0.0,
|
122 |
+
0.0,
|
123 |
+
1.0
|
124 |
+
]
|
125 |
+
]
|
126 |
+
],
|
127 |
+
"orientation_point": [
|
128 |
+
[
|
129 |
+
1.0,
|
130 |
+
0.0,
|
131 |
+
0.0,
|
132 |
+
0.0
|
133 |
+
],
|
134 |
+
[
|
135 |
+
0.0,
|
136 |
+
1.0,
|
137 |
+
0.0,
|
138 |
+
0.9589525935841178
|
139 |
+
],
|
140 |
+
[
|
141 |
+
0.0,
|
142 |
+
0.0,
|
143 |
+
1.0,
|
144 |
+
0.0
|
145 |
+
],
|
146 |
+
[
|
147 |
+
0.0,
|
148 |
+
0.0,
|
149 |
+
0.0,
|
150 |
+
1.0
|
151 |
+
]
|
152 |
+
],
|
153 |
+
"contact_points_group": [
|
154 |
+
[
|
155 |
+
0
|
156 |
+
]
|
157 |
+
],
|
158 |
+
"contact_points_mask": [
|
159 |
+
true
|
160 |
+
],
|
161 |
+
"contact_points_discription": [
|
162 |
+
"Grab the hammer's handle with the head facing outward."
|
163 |
+
],
|
164 |
+
"target_point_discription": [
|
165 |
+
"The center of the object."
|
166 |
+
],
|
167 |
+
"functional_point_discription": [
|
168 |
+
"Point 0: The head of the hammer is facing outward."
|
169 |
+
]
|
170 |
+
}
|
objects/meat_annotated/Textures/Raw meat.jpg
ADDED
![]() |
Git LFS Details
|
objects/meat_annotated/base.mtl
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Blender 4.0.2 MTL File: 'Raw meat.blend'
|
2 |
+
# www.blender.org
|
3 |
+
|
4 |
+
newmtl Meat
|
5 |
+
Ns 250.000000
|
6 |
+
Ka 1.000000 1.000000 1.000000
|
7 |
+
Kd 0.800000 0.800000 0.800000
|
8 |
+
Ks 0.500000 0.500000 0.500000
|
9 |
+
Ke 0.000000 0.000000 0.000000
|
10 |
+
Ni 1.000000
|
11 |
+
d 1.000000
|
12 |
+
illum 2
|
13 |
+
map_Kd texture.jpg
|
objects/meat_annotated/model_data.json
ADDED
@@ -0,0 +1,203 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"center": [
|
3 |
+
-0.00423562262852953,
|
4 |
+
-6.1082878781129495e-18,
|
5 |
+
0.337840786621551
|
6 |
+
],
|
7 |
+
"extents": [
|
8 |
+
1.0521263315853444,
|
9 |
+
0.09391805929786964,
|
10 |
+
0.8636689236370982
|
11 |
+
],
|
12 |
+
"scale": [
|
13 |
+
0.08,
|
14 |
+
0.4,
|
15 |
+
0.08
|
16 |
+
],
|
17 |
+
"target_pose": [
|
18 |
+
[
|
19 |
+
[
|
20 |
+
1.0,
|
21 |
+
0.0,
|
22 |
+
0.0,
|
23 |
+
0.0
|
24 |
+
],
|
25 |
+
[
|
26 |
+
0.0,
|
27 |
+
1.0,
|
28 |
+
0.0,
|
29 |
+
0.0
|
30 |
+
],
|
31 |
+
[
|
32 |
+
0.0,
|
33 |
+
0.0,
|
34 |
+
1.0,
|
35 |
+
0.0
|
36 |
+
],
|
37 |
+
[
|
38 |
+
0.0,
|
39 |
+
0.0,
|
40 |
+
0.0,
|
41 |
+
1.0
|
42 |
+
]
|
43 |
+
]
|
44 |
+
],
|
45 |
+
"contact_points_pose": [
|
46 |
+
[
|
47 |
+
[
|
48 |
+
1.0,
|
49 |
+
0.0,
|
50 |
+
0.0,
|
51 |
+
0.0
|
52 |
+
],
|
53 |
+
[
|
54 |
+
0.0,
|
55 |
+
6.123233995736766e-17,
|
56 |
+
-1.0,
|
57 |
+
0.0
|
58 |
+
],
|
59 |
+
[
|
60 |
+
0.0,
|
61 |
+
1.0,
|
62 |
+
6.123233995736766e-17,
|
63 |
+
0.35
|
64 |
+
],
|
65 |
+
[
|
66 |
+
0.0,
|
67 |
+
0.0,
|
68 |
+
0.0,
|
69 |
+
1.0
|
70 |
+
]
|
71 |
+
],
|
72 |
+
[
|
73 |
+
[
|
74 |
+
1.0,
|
75 |
+
0.0,
|
76 |
+
0.0,
|
77 |
+
0.0
|
78 |
+
],
|
79 |
+
[
|
80 |
+
0.0,
|
81 |
+
6.123233995736766e-17,
|
82 |
+
1.0,
|
83 |
+
0.0
|
84 |
+
],
|
85 |
+
[
|
86 |
+
0.0,
|
87 |
+
-1.0,
|
88 |
+
6.123233995736766e-17,
|
89 |
+
0.35
|
90 |
+
],
|
91 |
+
[
|
92 |
+
0.0,
|
93 |
+
0.0,
|
94 |
+
0.0,
|
95 |
+
1.0
|
96 |
+
]
|
97 |
+
]
|
98 |
+
],
|
99 |
+
"transform_matrix": [
|
100 |
+
[
|
101 |
+
1.0,
|
102 |
+
0.0,
|
103 |
+
0.0,
|
104 |
+
0.0
|
105 |
+
],
|
106 |
+
[
|
107 |
+
0.0,
|
108 |
+
1.0,
|
109 |
+
0.0,
|
110 |
+
0.0
|
111 |
+
],
|
112 |
+
[
|
113 |
+
-0.0,
|
114 |
+
0.0,
|
115 |
+
1.0,
|
116 |
+
0.0
|
117 |
+
],
|
118 |
+
[
|
119 |
+
0.0,
|
120 |
+
0.0,
|
121 |
+
0.0,
|
122 |
+
1.0
|
123 |
+
]
|
124 |
+
],
|
125 |
+
"functional_matrix": [
|
126 |
+
[
|
127 |
+
[
|
128 |
+
1.0,
|
129 |
+
0.0,
|
130 |
+
0.0,
|
131 |
+
0.0
|
132 |
+
],
|
133 |
+
[
|
134 |
+
0.0,
|
135 |
+
6.123233995736766e-17,
|
136 |
+
1.0,
|
137 |
+
0.0
|
138 |
+
],
|
139 |
+
[
|
140 |
+
0.0,
|
141 |
+
-1.0,
|
142 |
+
6.123233995736766e-17,
|
143 |
+
0.0
|
144 |
+
],
|
145 |
+
[
|
146 |
+
0.0,
|
147 |
+
0.0,
|
148 |
+
0.0,
|
149 |
+
1.0
|
150 |
+
]
|
151 |
+
]
|
152 |
+
],
|
153 |
+
"orientation_point": [
|
154 |
+
[
|
155 |
+
1.0,
|
156 |
+
0.0,
|
157 |
+
0.0,
|
158 |
+
0.0
|
159 |
+
],
|
160 |
+
[
|
161 |
+
0.0,
|
162 |
+
1.0,
|
163 |
+
0.0,
|
164 |
+
0.04695902964893482
|
165 |
+
],
|
166 |
+
[
|
167 |
+
0.0,
|
168 |
+
0.0,
|
169 |
+
1.0,
|
170 |
+
0.0
|
171 |
+
],
|
172 |
+
[
|
173 |
+
0.0,
|
174 |
+
0.0,
|
175 |
+
0.0,
|
176 |
+
1.0
|
177 |
+
]
|
178 |
+
],
|
179 |
+
"contact_points_group": [
|
180 |
+
[
|
181 |
+
0,
|
182 |
+
1,
|
183 |
+
2,
|
184 |
+
3
|
185 |
+
]
|
186 |
+
],
|
187 |
+
"contact_points_mask": [
|
188 |
+
true
|
189 |
+
],
|
190 |
+
"contact_points_discription": [
|
191 |
+
"Grasping the side of the meat.",
|
192 |
+
"Grasping the side of the meat."
|
193 |
+
],
|
194 |
+
"target_point_discription": [
|
195 |
+
"The center of the object."
|
196 |
+
],
|
197 |
+
"functional_point_discription": [
|
198 |
+
""
|
199 |
+
],
|
200 |
+
"orientation_point_discription": [
|
201 |
+
""
|
202 |
+
]
|
203 |
+
}
|
objects/meat_annotated/models.py
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import trimesh
|
2 |
+
import json
|
3 |
+
import numpy as np
|
4 |
+
|
5 |
+
|
6 |
+
PI = np.pi
|
7 |
+
|
8 |
+
def create_model_data(id):
|
9 |
+
file_path = f"./textured{id}.obj"
|
10 |
+
save_path = f"./model_data{id}.json"
|
11 |
+
|
12 |
+
# with open(save_path, 'r') as json_file:
|
13 |
+
# data = json.load(json_file)
|
14 |
+
|
15 |
+
with open(file_path, 'rb') as file_obj:
|
16 |
+
mesh = trimesh.load(file_obj, file_type='obj')
|
17 |
+
# 创建一个场景
|
18 |
+
scene = trimesh.Scene(mesh)
|
19 |
+
|
20 |
+
oriented_bounding_box = mesh.bounding_box_oriented
|
21 |
+
red_color = [1.0, 0.0, 0.0, 0.5] # 红色, A=1 表示不透明
|
22 |
+
green_color = [0.0, 1.0, 0.0, 0.5]
|
23 |
+
blue_color = [0.0, 0.0, 1.0, 0.5]
|
24 |
+
scale = [0.08,0.4,0.08]
|
25 |
+
|
26 |
+
shape = oriented_bounding_box.extents.tolist()
|
27 |
+
|
28 |
+
print(shape)
|
29 |
+
target_sphere = trimesh.creation.icosphere(subdivisions=2, radius=0.2)
|
30 |
+
target_trans_matrix_sphere = trimesh.transformations.translation_matrix([0,0,0])
|
31 |
+
|
32 |
+
target_sphere.apply_transform(target_trans_matrix_sphere)
|
33 |
+
target_sphere.visual.vertex_colors = np.array([red_color] * len(target_sphere.vertices))
|
34 |
+
target_points_list = [target_trans_matrix_sphere.tolist()]
|
35 |
+
|
36 |
+
# # 可视化网格和坐标轴
|
37 |
+
scene.add_geometry(target_sphere)
|
38 |
+
|
39 |
+
contact_points_list = []
|
40 |
+
contact_point_discription_list = []
|
41 |
+
orientation_point_list = []
|
42 |
+
functional_matrix = []
|
43 |
+
|
44 |
+
def add_contact_point(point_radius, pose:list, euler:list, discription: str):
|
45 |
+
contact_sphere = trimesh.creation.icosphere(subdivisions=2, radius=point_radius)
|
46 |
+
contact_trans_matrix_sphere = trimesh.transformations.translation_matrix(pose) @ trimesh.transformations.euler_matrix(euler[0], euler[1], euler[2])
|
47 |
+
contact_sphere.apply_transform(contact_trans_matrix_sphere)
|
48 |
+
contact_sphere.visual.vertex_colors = np.array([red_color] * len(contact_sphere.vertices))
|
49 |
+
contact_points_list.append(contact_trans_matrix_sphere.tolist())
|
50 |
+
|
51 |
+
axis = trimesh.creation.axis(axis_length=2)
|
52 |
+
axis.apply_transform(contact_trans_matrix_sphere)
|
53 |
+
scene.add_geometry(axis)
|
54 |
+
scene.add_geometry(contact_sphere)
|
55 |
+
contact_point_discription_list.append(discription)
|
56 |
+
|
57 |
+
|
58 |
+
alpha = 0.95
|
59 |
+
delta = 0.05
|
60 |
+
|
61 |
+
add_contact_point(0.1, [0, 0, 0.35], [PI / 2, 0, 0], "Grasping the side of the meat.")
|
62 |
+
add_contact_point(0.1, [0, 0, 0.35], [-PI / 2, 0, 0 ], "Grasping the side of the meat.")
|
63 |
+
|
64 |
+
|
65 |
+
# 旋转矩阵的参数顺序是 (X, Y, Z) to endpose axis
|
66 |
+
transform_matrix = trimesh.transformations.euler_matrix(0,0,0)
|
67 |
+
transform_matrix = transform_matrix.tolist()
|
68 |
+
|
69 |
+
# 方向点
|
70 |
+
orientation_point = trimesh.creation.icosphere(subdivisions=2, radius=0.1)
|
71 |
+
orientation_point_sphere = trimesh.transformations.translation_matrix([0,oriented_bounding_box.extents[1]/2,0])
|
72 |
+
orientation_point.apply_transform(orientation_point_sphere)
|
73 |
+
orientation_point.visual.vertex_colors = np.array([green_color] * len(orientation_point.vertices))
|
74 |
+
orientation_point_list = orientation_point_sphere.tolist()
|
75 |
+
scene.add_geometry(orientation_point)
|
76 |
+
|
77 |
+
# axis1
|
78 |
+
axis1 = trimesh.creation.axis(axis_length=1.5)
|
79 |
+
axis1.apply_transform(transform_matrix)
|
80 |
+
|
81 |
+
functional_sphere = trimesh.creation.icosphere(subdivisions=2, radius=0.15)
|
82 |
+
functional_trans_matrix_sphere = trimesh.transformations.translation_matrix([0,0,0]) @ trimesh.transformations.euler_matrix(- PI / 2,0,0)
|
83 |
+
functional_sphere.apply_transform(functional_trans_matrix_sphere)
|
84 |
+
functional_sphere.visual.vertex_colors = np.array([blue_color] * len(functional_sphere.vertices))
|
85 |
+
functional_matrix = functional_trans_matrix_sphere.tolist()
|
86 |
+
axis = trimesh.creation.axis(axis_length=1.5)
|
87 |
+
axis.apply_transform(functional_trans_matrix_sphere)
|
88 |
+
scene.add_geometry(axis)
|
89 |
+
scene.add_geometry(functional_sphere)
|
90 |
+
|
91 |
+
data = {
|
92 |
+
'center': oriented_bounding_box.centroid.tolist(), # 中心点
|
93 |
+
'extents': oriented_bounding_box.extents.tolist(), # 尺寸
|
94 |
+
'scale': scale, # 缩放
|
95 |
+
'target_pose': target_points_list, # 目标点矩阵
|
96 |
+
'contact_points_pose' : contact_points_list, # 抓取点矩阵(多个)
|
97 |
+
'transform_matrix': transform_matrix, # 模型到标轴的旋转矩阵
|
98 |
+
"functional_matrix": [functional_matrix], # 功能点矩阵
|
99 |
+
'orientation_point': orientation_point_list,
|
100 |
+
'contact_points_group': [[0, 1, 2, 3]],
|
101 |
+
'contact_points_mask': [True],
|
102 |
+
'contact_points_discription': contact_point_discription_list, # 抓取点描述
|
103 |
+
'target_point_discription': ["The center of the object."], # 目标点描述
|
104 |
+
'functional_point_discription': [""],
|
105 |
+
'orientation_point_discription': [""]
|
106 |
+
}
|
107 |
+
with open(save_path, 'w') as json_file:
|
108 |
+
json.dump(data, json_file, indent=4, separators=(',', ': '))
|
109 |
+
|
110 |
+
# 将坐标轴添加到场景
|
111 |
+
axis = trimesh.creation.axis(axis_length=1.5,origin_size= 0.05)
|
112 |
+
# scene.add_geometry(axis1)
|
113 |
+
scene.show()
|
114 |
+
|
115 |
+
if __name__ == "__main__":
|
116 |
+
id = ""
|
117 |
+
create_model_data(id)
|
objects/meat_annotated/textured.obj
ADDED
@@ -0,0 +1,430 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Blender 4.0.2
|
2 |
+
# www.blender.org
|
3 |
+
mtllib base.mtl
|
4 |
+
o Raw_meat
|
5 |
+
v 0.06786392558320495 -0.04695902964893474 0.6564016352339542
|
6 |
+
v 0.05385090403360703 -0.04695902964893474 0.03929269551634805
|
7 |
+
v -0.052195113179424976 -0.04695902964893474 0.6619070427612126
|
8 |
+
v -0.04009474156135173 -0.04695902964893474 0.05332186015831672
|
9 |
+
v -0.08500666362331916 -0.04695902964893474 0.6242705467849294
|
10 |
+
v -0.07676633016833363 -0.04695902964893474 0.06663929833538151
|
11 |
+
v -0.12090604025474208 -0.04695902964893474 0.599951488985711
|
12 |
+
v -0.112665911142698 -0.04695902964893474 0.06548128688645517
|
13 |
+
v -0.20891777117432211 -0.04695902964893474 0.5953192388470644
|
14 |
+
v -0.20067764206227803 -0.04695902964893474 0.07242955992295451
|
15 |
+
v -0.2633461483603318 -0.04695902964893474 0.6068997620222103
|
16 |
+
v -0.2551060192482877 -0.04695902964893474 0.08401008309810053
|
17 |
+
v -0.28187494457197715 -0.04695902964893474 0.6045837391243578
|
18 |
+
v -0.29100560022265204 -0.04695902964893474 0.10485490220759851
|
19 |
+
v -0.3015617522325488 -0.04695902964893474 0.20853074564330626
|
20 |
+
v -0.3025861233977981 -0.04695902964893474 0.14191249463088923
|
21 |
+
v -0.35019986783098545 -0.04695902964893474 0.615006046507636
|
22 |
+
v -0.31777452554634156 -0.04695902964893474 0.2467463495155233
|
23 |
+
v -0.35946436810827886 -0.04695902964893474 0.615006046507636
|
24 |
+
v -0.3351451059661192 -0.04695902964893474 0.34170635347160266
|
25 |
+
v -0.38262521011562944 -0.04695902964893474 0.5964772502959906
|
26 |
+
v -0.3583061523164111 -0.04695902964893474 0.36255137692404205
|
27 |
+
v -0.4208408139878465 -0.04695902964893474 0.5049912806866904
|
28 |
+
v -0.4023120177762011 -0.04695902964893474 0.37760593444596696
|
29 |
+
v -0.45210814482356415 -0.04695902964893474 0.41882047532620287
|
30 |
+
v -0.43357934861191877 -0.04695902964893474 0.39545202089038756
|
31 |
+
v 0.11650204118164165 -0.04695902964893474 0.5984992237011656
|
32 |
+
v 0.16965572709918436 -0.04695902964893474 0.035818661169569076
|
33 |
+
v 0.15587565650278495 -0.04695902964893474 0.5846026776281669
|
34 |
+
v 0.20902934242032767 -0.04695902964893474 0.041608922757142064
|
35 |
+
v 0.1952492718239283 -0.04695902964893474 0.6205022586025313
|
36 |
+
v 0.24840316208441238 -0.04695902964893474 0.05434745738121443
|
37 |
+
v 0.22651660265964596 -0.04695902964893474 0.6193440428106635
|
38 |
+
v 0.2796704929201301 -0.04695902964893474 0.06013771896878742
|
39 |
+
v 0.28557722998430235 -0.04695902964893474 0.5625996427268012
|
40 |
+
v 0.33873091590184506 -0.04695902964893474 0.07056023069500711
|
41 |
+
v 0.3596924148308837 -0.04695902964893474 0.48385241208451457
|
42 |
+
v 0.40010756612435405 -0.04695902964893474 0.11109185746507673
|
43 |
+
v 0.38980152987473365 -0.04695902964893474 0.36341513453734914
|
44 |
+
v 0.42095258957679343 -0.04695902964893474 0.13541091526429513
|
45 |
+
v 0.425701110849098 -0.04695902964893474 0.2855555696325137
|
46 |
+
v 0.44411363592708547 -0.04695902964893474 0.20863843437342527
|
47 |
+
v 0.08018253546269573 0.017235305392569348 0.692443643238476
|
48 |
+
v 0.06454682661542288 0.017235305392569348 0.0038763855983998986
|
49 |
+
v -0.053778975318233495 0.017235305392569348 0.6985866007429091
|
50 |
+
v -0.04027742415096532 0.017235305392569348 0.019529872281574774
|
51 |
+
v -0.09038966972867755 0.017235305392569348 0.6565918785123996
|
52 |
+
v -0.08119525908028512 0.017235305392569348 0.03438948663740204
|
53 |
+
v -0.13044619915998706 0.017235305392569348 0.6294565662947761
|
54 |
+
v -0.12125178851159463 0.017235305392569348 0.03309742621891585
|
55 |
+
v -0.22864932993906087 0.017235305392569348 0.62428812027789
|
56 |
+
v -0.21945491929066843 0.017235305392569348 0.040850197415715696
|
57 |
+
v -0.2893800521237975 0.017235305392569348 0.6372095418345173
|
58 |
+
v -0.2801858458183465 0.017235305392569348 0.053771618972343005
|
59 |
+
v -0.31005444922016606 0.017235305392569348 0.6346252166546035
|
60 |
+
v -0.320242375249656 0.017235305392569348 0.07703034124862526
|
61 |
+
v -0.33202090673502077 0.017235305392569348 0.19271133249171285
|
62 |
+
v -0.3331637968062833 0.017235305392569348 0.11837913544136235
|
63 |
+
v -0.3862911224843852 0.017235305392569348 0.6462545777927448
|
64 |
+
v -0.3501109786514755 0.017235305392569348 0.2353521871029361
|
65 |
+
v -0.39662821886109867 0.017235305392569348 0.6462543734498033
|
66 |
+
v -0.369493315329358 0.017235305392569348 0.3413080890788098
|
67 |
+
v -0.4224712663172947 0.017235305392569348 0.6255799763534348
|
68 |
+
v -0.3953361584426125 0.017235305392569348 0.364566811355092
|
69 |
+
v -0.46511191658557655 0.017235305392569348 0.5235006643189024
|
70 |
+
v -0.4444377238321495 0.017235305392569348 0.3813646185101192
|
71 |
+
v -0.5 0.017235305392569348 0.4273515887868037
|
72 |
+
v -0.47932560290363135 0.017235305392569348 0.4012770207779989
|
73 |
+
v 0.13445254686911873 0.017235305392569348 0.627836331112398
|
74 |
+
v 0.19376124652463741 0.017235305392569348 0.0
|
75 |
+
v 0.17838546189882815 0.017235305392569348 0.612330584375857
|
76 |
+
v 0.2376943658972882 0.017235305392569348 0.006460710778313656
|
77 |
+
v 0.22231858127147894 0.017235305392569348 0.6523871138071664
|
78 |
+
v 0.2816272809269977 0.017235305392569348 0.02067419275342711
|
79 |
+
v 0.257206460342961 0.017235305392569348 0.6510950533886802
|
80 |
+
v 0.3165151599984797 0.017235305392569348 0.0271351078746822
|
81 |
+
v 0.32310583288752515 0.017235305392569348 0.5877798016810886
|
82 |
+
v 0.38241473688598515 0.017235305392569348 0.03876426466988194
|
83 |
+
v 0.4058032169300579 0.017235305392569348 0.4999137672787282
|
84 |
+
v 0.45089843461046303 0.017235305392569348 0.08398944446101893
|
85 |
+
v 0.4393990355830537 0.017235305392569348 0.36553069700968627
|
86 |
+
v 0.47415715688674537 0.017235305392569348 0.11112455233570112
|
87 |
+
v 0.4794555650143632 0.017235305392569348 0.2786551128443025
|
88 |
+
v 0.5 0.017235305392569348 0.19283148614125736
|
89 |
+
v 0.056893366088144534 0.04695902964893474 0.624303854684378
|
90 |
+
v 0.044325253477201634 0.04695902964893474 0.07083384589354466
|
91 |
+
v -0.05078473819786691 0.04695902964893474 0.6292413931774796
|
92 |
+
v -0.03993228892293698 0.04695902964893474 0.08341605816744431
|
93 |
+
v -0.08021257387508192 0.04695902964893474 0.5954859826872486
|
94 |
+
v -0.07282210271338821 0.04695902964893474 0.09536031177828624
|
95 |
+
v -0.11240986943712104 0.04695902964893474 0.5736748258078597
|
96 |
+
v -0.10501939827542732 0.04695902964893474 0.09432163660713883
|
97 |
+
v -0.19134550427138053 0.04695902964893474 0.5695203294662112
|
98 |
+
v -0.1839550331096868 0.04695902964893474 0.10055327894814062
|
99 |
+
v -0.24016098954295434 0.04695902964893474 0.5799066724918027
|
100 |
+
v -0.23277051838126062 0.04695902964893474 0.11093962197373208
|
101 |
+
v -0.2567789749095476 0.04695902964893474 0.5778295264924493
|
102 |
+
v -0.26496781394329977 0.04695902964893474 0.12963495768262023
|
103 |
+
v -0.27443563544728833 0.04695902964893474 0.22261916973828164
|
104 |
+
v -0.27535415696889126 0.04695902964893474 0.1628709284158068
|
105 |
+
v -0.3180579492060664 0.04695902964893474 0.587176990003952
|
106 |
+
v -0.28897647481452815 0.04695902964893474 0.2568938156426156
|
107 |
+
v -0.32636694188936305 0.04695902964893474 0.587176990003952
|
108 |
+
v -0.30455578500997404 0.04695902964893474 0.3420612971608183
|
109 |
+
v -0.34713942359760463 0.04695902964893474 0.5705588002944173
|
110 |
+
v -0.32532826671821563 0.04695902964893474 0.360756428526765
|
111 |
+
v -0.3814140695019386 0.04695902964893474 0.4885073442896569
|
112 |
+
v -0.36479608413534537 0.04695902964893474 0.3742585927228574
|
113 |
+
v -0.4094570730652708 0.04695902964893474 0.41122280042192727
|
114 |
+
v -0.39283888335573613 0.04695902964893474 0.39026416229406824
|
115 |
+
v 0.1005156798469226 0.04695902964893474 0.5723723438993619
|
116 |
+
v 0.14818786636135103 0.04695902964893474 0.06771782038010239
|
117 |
+
v 0.13582879657946262 0.04695902964893474 0.5599088548744169
|
118 |
+
v 0.18350118743683244 0.04695902964893474 0.07291099189289811
|
119 |
+
v 0.17114211765494403 0.04695902964893474 0.5921063547793974
|
120 |
+
v 0.21881450851231388 0.04695902964893474 0.08433580574669566
|
121 |
+
v 0.19918512121827625 0.04695902964893474 0.5910678839511914
|
122 |
+
v 0.24685751207564607 0.04695902964893474 0.08952897725949142
|
123 |
+
v 0.25215510283149833 0.04695902964893474 0.5401750483373228
|
124 |
+
v 0.29982728934592684 0.04695902964893474 0.09887664511393549
|
125 |
+
v 0.3186272486408129 0.04695902964893474 0.46954840618635985
|
126 |
+
v 0.3548746213014438 0.04695902964893474 0.13522864136056434
|
127 |
+
v 0.3456313726900563 0.04695902964893474 0.3615312969605622
|
128 |
+
v 0.37356995701033197 0.04695902964893474 0.15703979823995337
|
129 |
+
v 0.3778288725950368 0.04695902964893474 0.29170077490930235
|
130 |
+
v 0.39434243871857355 0.04695902964893474 0.22271561960662345
|
131 |
+
vn 0.7072 -0.6707 -0.2237
|
132 |
+
vn 0.2948 -0.4642 0.8353
|
133 |
+
vn -0.5088 -0.4208 0.7510
|
134 |
+
vn 0.1554 -0.5208 -0.8394
|
135 |
+
vn -0.6289 -0.3408 -0.6988
|
136 |
+
vn -0.7532 -0.5983 0.2733
|
137 |
+
vn -0.4299 -0.5167 -0.7404
|
138 |
+
vn 0.7733 -0.6038 0.1933
|
139 |
+
vn 0.1402 -0.3685 0.9190
|
140 |
+
vn -0.3058 -0.4442 -0.8421
|
141 |
+
vn -0.0476 -0.4230 0.9049
|
142 |
+
vn -0.6714 -0.0826 0.7364
|
143 |
+
vn 0.1486 -0.5183 -0.8422
|
144 |
+
vn -0.3198 -0.1551 -0.9347
|
145 |
+
vn -0.0263 -0.4795 -0.8771
|
146 |
+
vn -0.8314 -0.4912 -0.2598
|
147 |
+
vn 0.7386 -0.5818 0.3405
|
148 |
+
vn -0.0000 -0.4377 0.8991
|
149 |
+
vn 0.0288 -0.4471 -0.8940
|
150 |
+
vn 0.1947 -0.3531 0.9151
|
151 |
+
vn 0.0329 -0.4557 0.8895
|
152 |
+
vn 0.4328 -0.6191 -0.6553
|
153 |
+
vn -0.9047 -0.4258 0.0139
|
154 |
+
vn -0.1310 -0.4621 -0.8771
|
155 |
+
vn -0.4780 -0.2647 -0.8375
|
156 |
+
vn 0.7634 -0.6196 0.1827
|
157 |
+
vn 0.1244 -0.5187 -0.8459
|
158 |
+
vn -0.8124 -0.4704 -0.3446
|
159 |
+
vn -0.5017 -0.5958 0.6272
|
160 |
+
vn -0.0700 -0.4567 -0.8868
|
161 |
+
vn 0.5708 -0.5667 0.5941
|
162 |
+
vn -0.7003 -0.4487 -0.5553
|
163 |
+
vn -0.1101 -0.4605 0.8808
|
164 |
+
vn 0.0398 -0.4950 0.8680
|
165 |
+
vn 0.5713 -0.6587 -0.4897
|
166 |
+
vn 0.6827 -0.4529 0.5734
|
167 |
+
vn -0.7013 -0.3666 0.6114
|
168 |
+
vn -0.8701 -0.4665 -0.1592
|
169 |
+
vn 0.2571 -0.5499 -0.7947
|
170 |
+
vn -0.1830 -0.4765 -0.8599
|
171 |
+
vn -0.7391 -0.5987 0.3087
|
172 |
+
vn 0.5981 -0.5705 0.5629
|
173 |
+
vn -0.0000 -1.0000 -0.0000
|
174 |
+
vn 0.0678 0.9280 -0.3663
|
175 |
+
vn 0.0793 0.8507 0.5196
|
176 |
+
vn 0.2422 0.9431 0.2279
|
177 |
+
vn -0.3745 0.8286 -0.4161
|
178 |
+
vn -0.3979 0.8493 0.3469
|
179 |
+
vn 0.2941 0.9461 0.1356
|
180 |
+
vn -0.3301 0.7461 -0.5783
|
181 |
+
vn -0.0339 0.9026 -0.4292
|
182 |
+
vn -0.4616 0.8871 0.0071
|
183 |
+
vn 0.1073 0.9373 -0.3317
|
184 |
+
vn 0.2324 0.9421 0.2419
|
185 |
+
vn 0.0181 0.9187 0.3946
|
186 |
+
vn -0.4143 0.9070 -0.0758
|
187 |
+
vn 0.2882 0.9551 0.0690
|
188 |
+
vn -0.3436 0.8987 -0.2724
|
189 |
+
vn 0.0142 0.8980 -0.4397
|
190 |
+
vn 0.0545 0.9273 -0.3704
|
191 |
+
vn -0.0529 0.9043 0.4236
|
192 |
+
vn 0.0160 0.9021 0.4312
|
193 |
+
vn -0.3843 0.9087 -0.1631
|
194 |
+
vn 0.2045 0.9630 -0.1753
|
195 |
+
vn -0.2873 0.9503 0.1200
|
196 |
+
vn -0.1512 0.8966 -0.4163
|
197 |
+
vn 0.1133 0.8389 0.5324
|
198 |
+
vn -0.0123 0.9125 -0.4088
|
199 |
+
vn -0.6382 0.3207 0.6999
|
200 |
+
vn -0.3802 0.9172 -0.1188
|
201 |
+
vn 0.1635 0.9550 -0.2476
|
202 |
+
vn -0.1959 0.9496 0.2448
|
203 |
+
vn -0.0628 0.9050 -0.4207
|
204 |
+
vn 0.2492 0.9652 -0.0788
|
205 |
+
vn -0.2930 0.9502 0.1063
|
206 |
+
vn -0.0244 0.8855 0.4640
|
207 |
+
vn 0.1409 0.9059 0.3993
|
208 |
+
vn -0.1888 0.9266 -0.3252
|
209 |
+
vn -0.0000 0.8933 0.4494
|
210 |
+
vn 0.0651 0.9272 -0.3690
|
211 |
+
vn 0.2984 0.9515 0.0746
|
212 |
+
vn -0.2619 0.8843 0.3865
|
213 |
+
vn -0.2725 0.5397 -0.7965
|
214 |
+
vn 0.3325 0.9008 0.2793
|
215 |
+
vn -0.0857 0.9113 -0.4027
|
216 |
+
vn -0.0000 1.0000 -0.0000
|
217 |
+
vt 0.882987 0.656107
|
218 |
+
vt 0.862862 0.742842
|
219 |
+
vt 0.909092 0.771609
|
220 |
+
vt 0.931548 0.674830
|
221 |
+
vt 0.598317 0.194331
|
222 |
+
vt 0.632530 0.210791
|
223 |
+
vt 0.652090 0.177948
|
224 |
+
vt 0.613915 0.159582
|
225 |
+
vt 0.392028 0.192611
|
226 |
+
vt 0.423222 0.163805
|
227 |
+
vt 0.418545 0.125522
|
228 |
+
vt 0.383739 0.157663
|
229 |
+
vt 0.740099 0.832001
|
230 |
+
vt 0.712930 0.838859
|
231 |
+
vt 0.741799 0.878744
|
232 |
+
vt 0.772114 0.871091
|
233 |
+
vt 0.205871 0.498493
|
234 |
+
vt 0.185746 0.473803
|
235 |
+
vt 0.153570 0.471415
|
236 |
+
vt 0.176025 0.498964
|
237 |
+
vt 0.104239 0.407154
|
238 |
+
vt 0.131408 0.305088
|
239 |
+
vt 0.092940 0.283164
|
240 |
+
vt 0.062625 0.397049
|
241 |
+
vt 0.275419 0.803725
|
242 |
+
vt 0.244225 0.779035
|
243 |
+
vt 0.218820 0.811992
|
244 |
+
vt 0.253626 0.839541
|
245 |
+
vt 0.809631 0.330126
|
246 |
+
vt 0.835794 0.472779
|
247 |
+
vt 0.878890 0.470274
|
248 |
+
vt 0.849698 0.311102
|
249 |
+
vt 0.192789 0.174779
|
250 |
+
vt 0.252159 0.187124
|
251 |
+
vt 0.227673 0.151541
|
252 |
+
vt 0.161429 0.137766
|
253 |
+
vt 0.462247 0.840074
|
254 |
+
vt 0.430382 0.824300
|
255 |
+
vt 0.426534 0.862499
|
256 |
+
vt 0.462088 0.880099
|
257 |
+
vt 0.315553 0.198097
|
258 |
+
vt 0.298408 0.163785
|
259 |
+
vt 0.666743 0.168269
|
260 |
+
vt 0.690264 0.130502
|
261 |
+
vt 0.791417 0.819656
|
262 |
+
vt 0.829375 0.857317
|
263 |
+
vt 0.147508 0.455971
|
264 |
+
vt 0.110904 0.451519
|
265 |
+
vt 0.644504 0.860806
|
266 |
+
vt 0.543878 0.856691
|
267 |
+
vt 0.553173 0.898640
|
268 |
+
vt 0.665450 0.903232
|
269 |
+
vt 0.234162 0.735141
|
270 |
+
vt 0.207593 0.763016
|
271 |
+
vt 0.866988 0.565001
|
272 |
+
vt 0.913696 0.573175
|
273 |
+
vt 0.184739 0.174779
|
274 |
+
vt 0.152447 0.137766
|
275 |
+
vt 0.399188 0.825671
|
276 |
+
vt 0.391728 0.864029
|
277 |
+
vt 0.268259 0.184381
|
278 |
+
vt 0.245637 0.148480
|
279 |
+
vt 0.693912 0.169641
|
280 |
+
vt 0.720579 0.132033
|
281 |
+
vt 0.844749 0.771647
|
282 |
+
vt 0.888882 0.803749
|
283 |
+
vt 0.235052 0.656234
|
284 |
+
vt 0.208586 0.674972
|
285 |
+
vt 0.120339 0.434833
|
286 |
+
vt 0.080589 0.427933
|
287 |
+
vt 0.678717 0.853948
|
288 |
+
vt 0.703624 0.895579
|
289 |
+
vt 0.220965 0.610969
|
290 |
+
vt 0.192867 0.624466
|
291 |
+
vt 0.164614 0.196726
|
292 |
+
vt 0.129991 0.162255
|
293 |
+
vt 0.322713 0.817441
|
294 |
+
vt 0.306397 0.854846
|
295 |
+
vt 0.745231 0.236852
|
296 |
+
vt 0.777840 0.207027
|
297 |
+
vt 0.451733 0.119226
|
298 |
+
vt 0.556055 0.125747
|
299 |
+
vt 0.566759 0.083057
|
300 |
+
vt 0.450356 0.075781
|
301 |
+
vt 0.687219 0.803339
|
302 |
+
vt 0.711586 0.797188
|
303 |
+
vt 0.273965 0.218813
|
304 |
+
vt 0.220718 0.207741
|
305 |
+
vt 0.773949 0.347068
|
306 |
+
vt 0.716190 0.263414
|
307 |
+
vt 0.214401 0.475928
|
308 |
+
vt 0.232451 0.498072
|
309 |
+
vt 0.452958 0.157918
|
310 |
+
vt 0.427388 0.197900
|
311 |
+
vt 0.825390 0.557722
|
312 |
+
vt 0.797414 0.475011
|
313 |
+
vt 0.155739 0.440978
|
314 |
+
vt 0.180107 0.459936
|
315 |
+
vt 0.337243 0.784130
|
316 |
+
vt 0.405832 0.791511
|
317 |
+
vt 0.258623 0.639547
|
318 |
+
vt 0.257825 0.710317
|
319 |
+
vt 0.656535 0.816871
|
320 |
+
vt 0.670163 0.203133
|
321 |
+
vt 0.546522 0.163766
|
322 |
+
vt 0.245988 0.598950
|
323 |
+
vt 0.839740 0.639433
|
324 |
+
vt 0.141300 0.416153
|
325 |
+
vt 0.433810 0.790281
|
326 |
+
vt 0.625850 0.823022
|
327 |
+
vt 0.288405 0.216353
|
328 |
+
vt 0.645796 0.201903
|
329 |
+
vt 0.805445 0.743058
|
330 |
+
vt 0.821690 0.717224
|
331 |
+
vt 0.195449 0.227425
|
332 |
+
vt 0.165667 0.324612
|
333 |
+
vt 0.462388 0.804428
|
334 |
+
vt 0.330822 0.228655
|
335 |
+
vt 0.535602 0.819332
|
336 |
+
vt 0.615111 0.240039
|
337 |
+
vt 0.266850 0.749684
|
338 |
+
vt 0.757613 0.786116
|
339 |
+
vt 0.213499 0.207741
|
340 |
+
vt 0.399411 0.223734
|
341 |
+
vt 0.584427 0.225277
|
342 |
+
vt 0.294827 0.771828
|
343 |
+
s 0
|
344 |
+
usemtl Meat
|
345 |
+
f 42/1/1 40/2/1 82/3/1 84/4/1
|
346 |
+
f 27/5/2 29/6/2 71/7/2 69/8/2
|
347 |
+
f 7/9/3 5/10/3 47/11/3 49/12/3
|
348 |
+
f 34/13/4 32/14/4 74/15/4 76/16/4
|
349 |
+
f 20/17/5 22/18/5 64/19/5 62/20/5
|
350 |
+
f 25/21/6 23/22/6 65/23/6 67/24/6
|
351 |
+
f 12/25/7 14/26/7 56/27/7 54/28/7
|
352 |
+
f 37/29/8 39/30/8 81/31/8 79/32/8
|
353 |
+
f 17/33/9 13/34/9 55/35/9 59/36/9
|
354 |
+
f 4/37/10 6/38/10 48/39/10 46/40/10
|
355 |
+
f 9/41/11 7/9/11 49/12/11 51/42/11
|
356 |
+
f 29/6/12 31/43/12 73/44/12 71/7/12
|
357 |
+
f 36/45/13 34/13/13 76/16/13 78/46/13
|
358 |
+
f 22/18/14 24/47/14 66/48/14 64/19/14
|
359 |
+
f 28/49/15 2/50/15 44/51/15 70/52/15
|
360 |
+
f 14/26/16 16/53/16 58/54/16 56/27/16
|
361 |
+
f 39/30/17 41/55/17 83/56/17 81/31/17
|
362 |
+
f 19/57/18 17/33/18 59/36/18 61/58/18
|
363 |
+
f 6/38/19 8/59/19 50/60/19 48/39/19
|
364 |
+
f 11/61/20 9/41/20 51/42/20 53/62/20
|
365 |
+
f 31/43/21 33/63/21 75/64/21 73/44/21
|
366 |
+
f 38/65/22 36/45/22 78/46/22 80/66/22
|
367 |
+
f 16/53/23 15/67/23 57/68/23 58/54/23
|
368 |
+
f 2/50/24 4/37/24 46/40/24 44/51/24
|
369 |
+
f 24/47/25 26/69/25 68/70/25 66/48/25
|
370 |
+
f 41/55/26 42/1/26 84/4/26 83/56/26
|
371 |
+
f 30/71/27 28/49/27 70/52/27 72/72/27
|
372 |
+
f 15/67/28 18/73/28 60/74/28 57/68/28
|
373 |
+
f 21/75/29 19/57/29 61/58/29 63/76/29
|
374 |
+
f 8/59/30 10/77/30 52/78/30 50/60/30
|
375 |
+
f 33/63/31 35/79/31 77/80/31 75/64/31
|
376 |
+
f 26/69/32 25/21/32 67/24/32 68/70/32
|
377 |
+
f 13/34/33 11/61/33 53/62/33 55/35/33
|
378 |
+
f 3/81/34 1/82/34 43/83/34 45/84/34
|
379 |
+
f 40/2/35 38/65/35 80/66/35 82/3/35
|
380 |
+
f 1/82/36 27/5/36 69/8/36 43/83/36
|
381 |
+
f 5/10/37 3/81/37 45/84/37 47/11/37
|
382 |
+
f 18/73/38 20/17/38 62/20/38 60/74/38
|
383 |
+
f 32/14/39 30/71/39 72/72/39 74/15/39
|
384 |
+
f 10/77/40 12/25/40 54/28/40 52/78/40
|
385 |
+
f 23/22/41 21/75/41 63/76/41 65/23/41
|
386 |
+
f 35/79/42 37/29/42 79/32/42 77/80/42
|
387 |
+
f 3/81/43 5/10/43 7/9/43 9/41/43 11/61/43 13/34/43 17/33/43 19/57/43 21/75/43 23/22/43 25/21/43 26/69/43 24/47/43 22/18/43 20/17/43 18/73/43 15/67/43 16/53/43 14/26/43 12/25/43 10/77/43 8/59/43 6/38/43 4/37/43 2/50/43 28/49/43 30/71/43 32/14/43 34/13/43 36/45/43 38/65/43 40/2/43 42/1/43 41/55/43 39/30/43 37/29/43 35/79/43 33/63/43 31/43/43 29/6/43 27/5/43 1/82/43
|
388 |
+
f 76/16/44 74/15/44 116/85/44 118/86/44
|
389 |
+
f 59/36/45 55/35/45 97/87/45 101/88/45
|
390 |
+
f 77/80/46 79/32/46 121/89/46 119/90/46
|
391 |
+
f 62/20/47 64/19/47 106/91/47 104/92/47
|
392 |
+
f 47/11/48 45/84/48 87/93/48 89/94/48
|
393 |
+
f 81/31/49 83/56/49 125/95/49 123/96/49
|
394 |
+
f 66/48/50 68/70/50 110/97/50 108/98/50
|
395 |
+
f 50/60/51 52/78/51 94/99/51 92/100/51
|
396 |
+
f 58/54/52 57/68/52 99/101/52 100/102/52
|
397 |
+
f 74/15/53 72/72/53 114/103/53 116/85/53
|
398 |
+
f 75/64/54 77/80/54 119/90/54 117/104/54
|
399 |
+
f 45/84/55 43/83/55 85/105/55 87/93/55
|
400 |
+
f 60/74/56 62/20/56 104/92/56 102/106/56
|
401 |
+
f 83/56/57 84/4/57 126/107/57 125/95/57
|
402 |
+
f 68/70/58 67/24/58 109/108/58 110/97/58
|
403 |
+
f 48/39/59 50/60/59 92/100/59 90/109/59
|
404 |
+
f 72/72/60 70/52/60 112/110/60 114/103/60
|
405 |
+
f 55/35/61 53/62/61 95/111/61 97/87/61
|
406 |
+
f 73/44/62 75/64/62 117/104/62 115/112/62
|
407 |
+
f 57/68/63 60/74/63 102/106/63 99/101/63
|
408 |
+
f 82/3/64 80/66/64 122/113/64 124/114/64
|
409 |
+
f 65/23/65 63/76/65 105/115/65 107/116/65
|
410 |
+
f 46/40/66 48/39/66 90/109/66 88/117/66
|
411 |
+
f 53/62/67 51/42/67 93/118/67 95/111/67
|
412 |
+
f 70/52/68 44/51/68 86/119/68 112/110/68
|
413 |
+
f 71/7/69 73/44/69 115/112/69 113/120/69
|
414 |
+
f 56/27/70 58/54/70 100/102/70 98/121/70
|
415 |
+
f 80/66/71 78/46/71 120/122/71 122/113/71
|
416 |
+
f 63/76/72 61/58/72 103/123/72 105/115/72
|
417 |
+
f 44/51/73 46/40/73 88/117/73 86/119/73
|
418 |
+
f 84/4/74 82/3/74 124/114/74 126/107/74
|
419 |
+
f 67/24/75 65/23/75 107/116/75 109/108/75
|
420 |
+
f 51/42/76 49/12/76 91/124/76 93/118/76
|
421 |
+
f 69/8/77 71/7/77 113/120/77 111/125/77
|
422 |
+
f 54/28/78 56/27/78 98/121/78 96/126/78
|
423 |
+
f 61/58/79 59/36/79 101/88/79 103/123/79
|
424 |
+
f 78/46/80 76/16/80 118/86/80 120/122/80
|
425 |
+
f 79/32/81 81/31/81 123/96/81 121/89/81
|
426 |
+
f 49/12/82 47/11/82 89/94/82 91/124/82
|
427 |
+
f 64/19/83 66/48/83 108/98/83 106/91/83
|
428 |
+
f 43/83/84 69/8/84 111/125/84 85/105/84
|
429 |
+
f 52/78/85 54/28/85 96/126/85 94/99/85
|
430 |
+
f 87/93/86 85/105/86 111/125/86 113/120/86 115/112/86 117/104/86 119/90/86 121/89/86 123/96/86 125/95/86 126/107/86 124/114/86 122/113/86 120/122/86 118/86/86 116/85/86 114/103/86 112/110/86 86/119/86 88/117/86 90/109/86 92/100/86 94/99/86 96/126/86 98/121/86 100/102/86 99/101/86 102/106/86 104/92/86 106/91/86 108/98/86 110/97/86 109/108/86 107/116/86 105/115/86 103/123/86 101/88/86 97/87/86 95/111/86 93/118/86 91/124/86 89/94/86
|
objects/pot_annotated/bounding_box.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"min": [-0.973483, -0.457527, -0.69735], "max": [0.934066, 0.61347, 0.710051]}
|
objects/pot_annotated/images/texture_0.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_10.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_100.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1000.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1001.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1002.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1003.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1004.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1005.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1006.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1007.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1008.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1009.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_101.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1010.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1011.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1012.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1013.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1014.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1015.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1016.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1017.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1018.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1019.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_102.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1020.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1021.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1022.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1023.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1024.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1025.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1026.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1027.jpg
ADDED
![]() |
Git LFS Details
|
objects/pot_annotated/images/texture_1028.jpg
ADDED
![]() |
Git LFS Details
|