Skip to content

Commit fefb778

Browse files
committed
Add new functions/classes
1 parent 471d2a6 commit fefb778

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

spatialmath/__init__.py

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,40 @@
11
from spatialmath.pose2d import SO2, SE2
22
from spatialmath.pose3d import SO3, SE3
33
from spatialmath.baseposematrix import BasePoseMatrix
4+
from spatialmath.geom2d import Line2, Polygon2
45
from spatialmath.geom3d import Line3, Plane3
56
from spatialmath.twist import Twist3, Twist2
67
from spatialmath.spatialvector import SpatialVelocity, SpatialAcceleration, \
78
SpatialForce, SpatialMomentum, SpatialInertia
89
from spatialmath.quaternion import Quaternion, UnitQuaternion
910
from spatialmath.DualQuaternion import DualQuaternion, UnitDualQuaternion
1011
#from spatialmath.Plucker import *
11-
from spatialmath.base import plot_box, plot_text, plot_point
12+
from spatialmath import base as smb
13+
14+
15+
__all__ = [
16+
# pose
17+
"SO2",
18+
"SE2",
19+
"SO3",
20+
"SE3",
21+
"BasePoseMatrix",
22+
"Quaternion",
23+
"UnitQuaternion",
24+
"DualQuaternion",
25+
"UnitDualQuaternion",
26+
"Twist3",
27+
"Twist2",
28+
"SpatialVelocity",
29+
"SpatialAcceleration",
30+
"SpatialForce",
31+
"SpatialMomentum",
32+
"SpatialInertia",
33+
"Line3",
34+
"Plane3",
35+
"Line2",
36+
"Polygon2",
37+
"smb",
38+
]
39+
40+

spatialmath/base/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@
137137
"removesmall",
138138
"cross",
139139
"iszero",
140+
"wrap_0_2pi",
141+
"wrap_mpi_pi",
140142
# spatialmath.base.animate
141143
"Animate",
142144
"Animate2",
@@ -146,6 +148,7 @@
146148
"plot_point",
147149
"plot_text",
148150
"plot_box",
151+
"plot_poly",
149152
"circle",
150153
"ellipse",
151154
"sphere",
@@ -157,9 +160,12 @@
157160
"plot_sphere",
158161
"plot_ellipsoid",
159162
"plot_cylinder",
163+
"plot_cone",
160164
"plot_cuboid",
161165
"axes_logic",
162166
"isnotebook",
163167
# spatial.base.numeric
164168
"numjac",
169+
"array2str",
170+
"bresenham",
165171
]

0 commit comments

Comments
 (0)