File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 6
6
# import numpy.testing as nt
7
7
# import numpy as np
8
8
import roboticstoolbox as rp
9
+
9
10
# import spatialmath as sm
10
11
import unittest
11
12
12
13
13
14
class TestPyPlot (unittest .TestCase ):
14
-
15
15
def test_PyPlot (self ):
16
16
panda = rp .models .DH .Panda ()
17
17
from roboticstoolbox .backends .PyPlot import PyPlot
18
+
18
19
env = PyPlot ()
19
20
env .launch ()
20
21
env .add (panda )
@@ -25,6 +26,7 @@ def test_PyPlot(self):
25
26
def test_PyPlot_invisible (self ):
26
27
panda = rp .models .DH .Panda ()
27
28
from roboticstoolbox .backends .PyPlot import PyPlot
29
+
28
30
env = PyPlot ()
29
31
env .launch ()
30
32
env .add (panda , display = False )
@@ -35,13 +37,14 @@ def test_PyPlot_invisible(self):
35
37
def test_unimplemented (self ):
36
38
# TODO remove these as implemented
37
39
from roboticstoolbox .backends .PyPlot import PyPlot
40
+
38
41
env = PyPlot ()
39
42
env .reset ()
40
43
41
44
env .restart ()
42
- env .remove ()
45
+ env .remove (0 )
43
46
44
47
45
- if __name__ == ' __main__' :
48
+ if __name__ == " __main__" :
46
49
47
50
unittest .main ()
You can’t perform that action at this time.
0 commit comments