8000 Added a test to input a model, clear scene, with gird updations inter… · navrobot/robotics-toolbox-python@62b2c5f · GitHub
[go: up one dir, main page]

Skip to content

Commit 62b2c5f

Browse files
committed
Added a test to input a model, clear scene, with gird updations intertwined.
1 parent bcde356 commit 62b2c5f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/graphics_test_features.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,33 @@ def test_clear_scene():
149149
del puma560
150150

151151

152+
def test_clear_scene_with_grid_updating():
153+
the_grid = init_canvas()
154+
puma560 = import_puma_560()
155+
the_grid.update_grid()
156+
157+
puma560.move_base(vector(1, 1, 0))
158+
the_grid.update_grid()
159+
160+
sleep(2)
161+
the_grid.update_grid()
162+
163+
the_grid.clear_scene()
164+
del puma560
165+
166+
while True:
167+
sleep(1)
168+
the_grid.update_grid()
169+
170+
152171
def test_animate_joints():
153172
pass
154173

155174

156175
def test_import_textures():
157176
pass
158177

178+
159179
if __name__ == "__main__":
160180
# run the Puma demo by default
161181
test_puma560_angle_change()

0 commit comments

Comments
 (0)
0