Skip to content

Commit 25da11c

Browse files
committed
a little change and fix a bug when i use matplotlib 1.5.3
1 parent 841dd32 commit 25da11c

File tree

3 files changed

+134
-49
lines changed

3 files changed

+134
-49
lines changed

.gitignore

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
48+
# Translations
49+
*.mo
50+
*.pot
51+
52+
# Django stuff:
53+
*.log
54+
local_settings.py
55+
56+
# Flask stuff:
57+
instance/
58+
.webassets-cache
59+
60+
# Scrapy stuff:
61+
.scrapy
62+
63+
# Sphinx documentation
64+
docs/_build/
65+
66+
# PyBuilder
67+
target/
68+
69+
# IPython Notebook
70+
.ipynb_checkpoints
71+
72+
# pyenv
73+
.python-version
74+
75+
# celery beat schedule file
76+
celerybeat-schedule
77+
78+
# dotenv
79+
.env
80+
81+
# virtualenv
82+
venv/
83+
ENV/
84+
85+
# Spyder project settings
86+
.spyderproject
87+
88+
# Rope project settings
89+
.ropeproject

robot/__init__.py

Lines changed: 44 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,4 @@
11
__doc__ = """
2-
The Robotics Toolbox for Python
3-
Based on the Matlab version
4-
Peter Corke 2007
5-
"""
6-
7-
######################
8-
# Import Section #
9-
######################
10-
11-
from numpy import *
12-
13-
# Import Link Constructor section
14-
from Link import *
15-
16-
# Import Robot Constructor section
17-
from Robot import *
18-
19-
# utility
20-
from utility import *
21-
22-
# Import transformations section
23-
from transform import *
24-
25-
from trplot import *
26-
27-
from jacobian import *
28-
29-
# import kinematics section
30-
from kinematics import *
31-
32-
from manipulability import *
33-
34-
# import trajectories section
35-
from trajectory import *
36-
37-
# import Quaternion constructor section
38-
from Quaternion import *
39-
40-
# import dynamics section
41-
from dynamics import *
42-
43-
# import robot models sections
44-
#from puma560 import *
45-
#from puma560akb import *
46-
#from stanford import *
47-
#from twolink import *
48-
49-
print """
502
Robotics Toolbox for Python
513
Based on Matlab Toolbox Version 7 April-2002
524
@@ -118,3 +70,47 @@
11870
stanford - Stanford arm data
11971
twolink - simple 2-link example
12072
"""
73+
74+
######################
75+
# Import Section #
76+
######################
77+
78+
from numpy import *
79+
80+
# Import Link Constructor section
81+
from Link import *
82+
83+
# Import Robot Constructor section
84+
from Robot import *
85+
86+
# utility
87+
from utility import *
88+
89+
# Import transformations section
90+
from transform import *
91+
92+
from trplot import *
93+
94+
from jacobian import *
95+
96+
# import kinematics section
97+
from kinematics import *
98+
99+
from manipulability import *
100+
101+
# import trajectories section
102+
from trajectory import *
103+
104+
# import Quaternion constructor section
105+
from Quaternion import *
106+
107+
# import dynamics section
108+
from dynamics import *
109+
110+
# import robot models sections
111+
#from puma560 import *
112+
#from puma560akb import *
113+
#from stanford import *
114+
#from twolink import *
115+
116+

robot/trplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import matplotlib.axes3d as p3
1+
import mpl_toolkits.mplot3d.axes3d as p3
22
from numpy import * # for outer and arange
33
import pylab as p # for figure
44
from robot.Quaternion import *

0 commit comments

Comments
 (0)