Skip to content

Commit 50b1688

Browse files
committed
Commented out old functions using old imports
1 parent 31d067d commit 50b1688

File tree

1 file changed

+54
-57
lines changed

1 file changed

+54
-57
lines changed

tests/manual_testing_graphics.py

Lines changed: 54 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from numpy import array
1616
from spatialmath import SE3, SE2
1717
import graphics as gph
18-
from roboticstoolbox.models.graphical_puma560 import import_puma_560, Puma560
1918
from roboticstoolbox.robot.serial_link import SerialLink, Link
2019

2120

@@ -68,8 +67,8 @@ def test_import_stl():
6867
"""
6968
This test will create a canvas with the Puma560 model loaded in.
7069
"""
71-
puma560 = import_puma_560(g_canvas)
72-
puma560.print_joint_poses()
70+
# puma560 = import_puma_560(g_canvas)
71+
# puma560.print_joint_poses()
7372

7473

7574
def test_rotational_link():
@@ -143,70 +142,70 @@ def test_puma560_angle_change():
143142
This test loads in the Puma560 model and changes its angles over time.
144143
Joint angles are printed for validation.
145144
"""
146-
puma560 = import_puma_560(g_canvas)
147-
148-
print("Prior Poses")
149-
puma560.print_joint_poses()
150-
151-
sleep(2)
152-
153-
# Get the poses for a ready-position
154-
puma = Puma560()
155-
poses = puma.fkine(puma.qr, alltout=True)
156-
157-
puma560.set_joint_poses([
158-
poses[0],
159-
poses[1],
160-
poses[2],
161-
poses[3],
162-
poses[4],
163-
poses[5],
164-
poses[6]
165-
])
166-
167-
print("Final Poses")
168-
puma560.print_joint_poses()
145+
# puma560 = import_puma_560(g_canvas)
146+
#
147+
# print("Prior Poses")
148+
# puma560.print_joint_poses()
149+
#
150+
# sleep(2)
151+
#
152+
# # Get the poses for a ready-position
153+
# puma = Puma560()
154+
# poses = puma.fkine(puma.qr, alltout=True)
155+
#
156+
# puma560.set_joint_poses([
157+
# poses[0],
158+
# poses[1],
159+
# poses[2],
160+
# poses[3],
161+
# poses[4],
162+
# poses[5],
163+
# poses[6]
164+
# ])
165+
#
166+
# print("Final Poses")
167+
# puma560.print_joint_poses()
169168

170169

171170
def test_clear_scene():
172171
"""
173172
This test will import the Puma560 model, then after 2 seconds, clear the canvas of all models.
174173
"""
175-
puma560 = import_puma_560(g_canvas)
176-
puma560.set_reference_visibility(True)
177-
178-
sleep(2)
179-
180-
clear()
181-
del puma560
174+
# puma560 = import_puma_560(g_canvas)
175+
# puma560.set_reference_visibility(True)
176+
#
177+
# sleep(2)
178+
#
179+
# clear()
180+
# del puma560
182181

183182

184183
def test_clear_scene_with_grid_updating():
185184
"""
186185
This test will import the Puma560 model, then after 2 seconds, clear the canvas of all models.
187186
"""
188-
puma560 = import_puma_560(g_canvas)
189-
190-
sleep(2)
191-
192-
# Get the poses for a ready-position
193-
puma = Puma560()
194-
poses = puma.fkine(puma.qr, alltout=True)
195-
196-
puma560.set_joint_poses([
197-
poses[0],
198-
poses[1],
199-
poses[2],
200-
poses[3],
201-
poses[4],
202-
poses[5],
203-
poses[6]
204-
])
205-
206-
sleep(2)
207-
208-
clear()
209-
del puma560
187+
# puma560 = import_puma_560(g_canvas)
188+
#
189+
# sleep(2)
190+
#
191+
# # Get the poses for a ready-position
192+
# puma = Puma560()
193+
# poses = puma.fkine(puma.qr, alltout=True)
194+
#
195+
# puma560.set_joint_poses([
196+
# poses[0],
197+
# poses[1],
198+
# poses[2],
199+
# poses[3],
200+
# poses[4],
201+
# poses[5],
202+
# poses[6]
203+
# ])
204+
#
205+
# sleep(2)
206+
#
207+
# clear()
208+
# del puma560
210209

211210

212211
# TODO
@@ -368,8 +367,6 @@ def test_seriallink():
368367
robot2 = gph.GraphicalRobot(g_canvas, '', seriallink=tl2)
369368

370369

371-
372-
373370
if __name__ == "__main__":
374371
# run the Puma demo by default
375372
test_puma560_angle_change()

0 commit comments

Comments
 (0)