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 66# import numpy.testing as nt
77# import numpy as np
88import roboticstoolbox as rp
9+
910# import spatialmath as sm
1011import unittest
1112
1213
1314class TestPyPlot (unittest .TestCase ):
14-
1515 def test_PyPlot (self ):
1616 panda = rp .models .DH .Panda ()
1717 from roboticstoolbox .backends .PyPlot import PyPlot
18+
1819 env = PyPlot ()
1920 env .launch ()
2021 env .add (panda )
@@ -25,6 +26,7 @@ def test_PyPlot(self):
2526 def test_PyPlot_invisible (self ):
2627 panda = rp .models .DH .Panda ()
2728 from roboticstoolbox .backends .PyPlot import PyPlot
29+
2830 env = PyPlot ()
2931 env .launch ()
3032 env .add (panda , display = False )
@@ -35,13 +37,14 @@ def test_PyPlot_invisible(self):
3537 def test_unimplemented (self ):
3638 # TODO remove these as implemented
3739 from roboticstoolbox .backends .PyPlot import PyPlot
40+
3841 env = PyPlot ()
3942 env .reset ()
4043
4144 env .restart ()
42- env .remove ()
45+ env .remove (0 )
4346
4447
45- if __name__ == ' __main__' :
48+ if __name__ == " __main__" :
4649
4750 unittest .main ()
You can’t perform that action at this time.
0 commit comments