Skip to content

Commit ed60030

Browse files
committed
Fixed vpython examples
1 parent 349a332 commit ed60030

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

examples/VPython.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,20 @@
1010
env.launch()
1111

1212
# PUMA560
13-
# puma = rp.models.DH.Puma560()
14-
# env.add(0, 'Puma', puma)
13+
puma = rp.models.DH.Puma560()
14+
env.add(0, 'Puma', puma)
1515

16+
17+
# Example 1
18+
# qt = rp.tools.trajectory.jtraj(puma.qz, puma.qr, 50)
19+
# env.record_start(5)
20+
# for q in qt.q:
21+
# time.sleep(1/5)
22+
# env.step(puma, q=q)
23+
# env.record_stop('vpython_jtraj_video.mp4', save_fps=25)
24+
25+
26+
# Example 2
1627
# env.record_start(10)
1728
#
1829
# time.sleep(1)

0 commit comments

Comments
 (0)