@@ -31,7 +31,7 @@ def create_link_0():
31
31
:rtype: class:`graphics.graphics_robot.RotationalJoint
32
32
"""
33
33
# Load the STL file into an object
34
- stl_obj = import_object_from_stl ( filename = ' link0' )
34
+ stl_obj = import_object_from_numpy_stl ( './graphics/models/ link0.stl ' )
35
35
# Orient the object so that it's origin and toolpoint in known locations
36
36
# This way, rotations are relative to the correct 3D position of the object
37
37
stl_obj_z_origin = stl_obj .pos .z - stl_obj .width / 2
@@ -60,7 +60,7 @@ def create_link_1():
60
60
:rtype: class:`graphics.graphics_robot.StaticJoint
61
61
"""
62
62
# Load the STL file into an object
63
- stl_obj = import_object_from_stl ( filename = ' link1' )
63
+ stl_obj = import_object_from_numpy_stl ( './graphics/models/ link1.stl ' )
64
64
# Orient the object so that it's origin and toolpoint in known locations
65
65
# This way, rotations are relative to the correct 3D position of the object
66
66
stl_obj .rotate (angle = radians (90 ), axis = y_axis_vector , origin = vector (0 , 0 , 0 ))
@@ -92,7 +92,7 @@ def create_link_2():
92
92
:rtype: class:`graphics.graphics_robot.RotationalJoint
93
93
"""
94
94
# Load the STL file into an object
95
- stl_obj = import_object_from_stl ( ' link2' )
95
+ stl_obj = import_object_from_numpy_stl ( './graphics/models/ link2.stl ' )
96
96
# Orient the object so that it's origin and toolpoint in known locations
97
97
# This way, rotations are relative to the correct 3D position of the object
98
98
stl_obj .rotate (angle = radians (- 90 ), axis = x_axis_vector , origin = vector (0 , 0 , 0 ))
@@ -124,7 +124,7 @@ def create_link_3():
124
124
:rtype: class:`graphics.graphics_robot.RotationalJoint
125
125
"""
126
126
# Load the STL file into an object
127
- stl_obj = import_object_from_stl ( ' link3' )
127
+ stl_obj = import_object_from_numpy_stl ( './graphics/models/ link3.stl ' )
128
128
# Orient the object so that it's origin and toolpoint in known locations
129
129
# This way, rotations are relative to the correct 3D position of the object
130
130
stl_obj .rotate (angle = radians (90 ), axis = y_axis_vector , origin = vector (0 , 0 , 0 ))
@@ -156,7 +156,7 @@ def create_link_4():
156
156
:rtype: class:`graphics.graphics_robot.RotationalJoint
157
157
"""
158
158
# Load the STL file into an object
159
- stl_obj = import_object_from_stl ( ' link4' )
159
+ stl_obj = import_object_from_numpy_stl ( './graphics/models/ link4.stl ' )
160
160
# Orient the object so that it's origin and toolpoint in known locations
161
161
# This way, rotations are relative to the correct 3D position of the object
162
162
stl_obj .rotate (angle = radians (- 90 ), axis = z_axis_vector , origin = vector (0 , 0 , 0 ))
@@ -187,7 +187,7 @@ def create_link_5():
187
187
:rtype: class:`graphics.graphics_robot.RotationalJoint
188
188
"""
189
189
# Load the STL file into an object
190
- stl_obj = import_object_from_stl ( ' link5' )
190
+ stl_obj = import_object_from_numpy_stl ( './graphics/models/ link5.stl ' )
191
191
# Orient the object so that it's origin and toolpoint in known locations
192
192
# This way, rotations are relative to the correct 3D position of the object
193
193
stl_obj .rotate (angle = radians (90 ), axis = x_axis_vector , origin = vector (0 , 0 , 0 ))
@@ -218,7 +218,7 @@ def create_link_6():
218
218
:rtype: class:`graphics.graphics_robot.Gripper
219
219
"""
220
220
# Load the STL file into an object
221
- stl_obj = import_object_from_stl ( ' link6' )
221
+ stl_obj = import_object_from_numpy_stl ( './graphics/models/ link6.stl ' )
222
222
# Orient the object so that it's origin and toolpoint in known locations
223
223
# This way, rotations are relative to the correct 3D position of the object
224
224
stl_obj .rotate (angle = radians (90 ), axis = y_axis_vector , origin = vector (0 , 0 , 0 ))
0 commit comments