Skip to content

Commit c96b28f

Browse files
committed
Merge master into perf/lazy-matplotlib-import
Resolves conflicts with rai-opensource#200 (trprint refactor) and rai-opensource#202 (dim/dims fix in tranimate), preserving both: matplotlib.pyplot stays deferred until trplot()/tranimate() actually plots, and tranimate() keeps rai-opensource#202's dim/dims kwarg handling with a local (lazy) Animate import.
2 parents 8ee82e5 + 197d383 commit c96b28f

34 files changed

Lines changed: 836 additions & 334 deletions

‎.github/CODEOWNERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Global Owners
2-
* @petercorke @jhavl @myeatman-bdai
2+
* @petercorke @jbarry-bdai @taughz

‎.github/workflows/master.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
33
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
44

5-
name: build
5+
name: CI
66

77
on:
88
push:

‎.github/workflows/sphinx.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
cd ../
3030
- name: Commit documentation changes
3131
run: |
32-
git clone https://github.com/petercorke/spatialmath-python.git --branch gh-pages --single-branch gh-pages
32+
git clone https://github.com/${{ github.repository }}.git --branch gh-pages --single-branch gh-pages
3333
cp -r docs/build/html/* gh-pages/
3434
cd gh-pages
3535
git config --local user.email "action@github.com"

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ Similarly when we assign an element or slice of the symbolic matrix to a numeric
452452

453453
On April 28, 2026 this repository moved to the **RAI-Opensource** GitHub organization. If you are still pulling from the previous bdaiinstitute GitHub organization, please update your git remote:
454454
```bash
455-
git remote set-url origin https://github.com/RAI-Opensource/spot_ros2
455+
git remote set-url origin https://github.com/RAI-Opensource/spatialmath-python.git
456456
```
457457

458458
Also update any links of `https://bdaiinstitute.github.io/spatialmath-python` to <https://spatialmath-python.rai-inst.com/>.

‎docs/source/classes-2d.rst‎

Lines changed: 0 additions & 16 deletions
This file was deleted.

‎docs/source/classes-3d.rst‎

Lines changed: 0 additions & 10 deletions
This file was deleted.

‎docs/source/intro.rst‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ The classes ``SE3``, ``SO3``, ``SE2`` and ``SO2`` can provide colorized text out
262262

263263
.. image:: ../figs/colored_output.png
264264
:width: 300
265+
265266
with rotational elements in red, translational elements in blue and constants in grey.
266267

267268
The foreground and background colors can be controlled using the following
@@ -538,8 +539,10 @@ A numpy column vector has shape ``(N,1)`` and a row vector
538539
has shape ``(1,N)`` but functions also accept row ``(1,N)`` and column ``(N,1)``
539540
where a vector argument is required.
540541

541-
.. warning:: For a user transitioning from MATLAB the most significant
542-
differences are:
542+
.. warning::
543+
544+
For a user transitioning from MATLAB the most significant differences are:
545+
543546
- the use of 1D arrays -- all MATLAB arrays have two dimensions,
544547
even if one of them is equal to one.
545548
- Iterating over a 1D NumPy array (N,) returns consecutive elements

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "spatialmath-python"
3-
version = "1.1.16"
3+
version = "1.1.17"
44
authors = [
55
{ name="Peter Corke", email="rvc@petercorke.com" },
66
]

‎spatialmath/DualQuaternion.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def SE3(self) -> SE3:
338338
339339
.. runblock:: pycon
340340
341-
>>> from spatialmath import DualQuaternion, SE3
341+
>>> from spatialmath import UnitDualQuaternion, SE3
342342
>>> T = SE3.Rand()
343343
>>> print(T)
344344
>>> d = UnitDualQuaternion(T)

‎spatialmath/base/__init__.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ def __getattr__(name):
258258
"qprint",
259259
"q2str",
260260
# spatialmath.base.transforms2d
261+
"pos2tr2",
261262
"rot2",
262263
"trot2",
263264
"transl2",
@@ -267,8 +268,12 @@ def __getattr__(name):
267268
"trexp2",
268269
"trnorm2",
269270
"tr2jac2",
271+
"tr2pos2",
272+
"tr2adjoint2",
273+
"tradjoint2",
270274
"trinterp2",
271275
"trprint2",
276+
"tr2str2",
272277
"trplot2",
273278
"tranimate2",
274279
"xyt2tr",
@@ -312,6 +317,7 @@ def __getattr__(name):
312317
"exp2jac",
313318
"rot2jac",
314319
"trprint",
320+
"tr2str",
315321
"trplot",
316322
"tranimate",
317323
"tr2x",

0 commit comments

Comments
 (0)