Skip to content

Commit 549f064

Browse files
authored
Merge branch 'master' into fix/python-eol
2 parents e5bf170 + b9578cf commit 549f064

5 files changed

Lines changed: 37 additions & 39 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
run: |
3636
python -m build
3737
ls ./dist/*.whl
38-
twine upload dist/*.gz
39-
twine upload dist/*.whl
38+
twine upload dist/*.gz --verbose
39+
twine upload dist/*.whl --verbose

README.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,41 @@
88
![Python Version](https://img.shields.io/pypi/pyversions/spatialmath-python.svg)
99
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
1010

11-
[![Build Status](https://github.com/bdaiinstitute/spatialmath-python/actions/workflows/master.yml/badge.svg?branch=master)](https://github.com/bdaiinstitute/spatialmath-python/actions/workflows/master.yml?query=workflow%3Abuild+branch%3Amaster)
12-
[![Coverage](https://codecov.io/github/bdaiinstitute/spatialmath-python/graph/badge.svg?token=W15FGBA059)](https://codecov.io/github/bdaiinstitute/spatialmath-python)
11+
[![Build Status](https://github.com/rai-opensource/spatialmath-python/actions/workflows/master.yml/badge.svg?branch=master)](https://github.com/rai-opensource/spatialmath-python/actions/workflows/master.yml?query=workflow%3Abuild+branch%3Amaster)
12+
[![Coverage](https://codecov.io/github/rai-opensource/spatialmath-python/graph/badge.svg?token=W15FGBA059)](https://codecov.io/github/rai-opensource/spatialmath-python)
1313
[![PyPI - Downloads](https://img.shields.io/pypi/dw/spatialmath-python)](https://pypistats.org/packages/spatialmath-python)
14-
[![GitHub stars](https://img.shields.io/github/stars/bdaiinstitute/spatialmath-python.svg?style=social&label=Star)](https://GitHub.com/bdaiinstitute/spatialmath-python/stargazers/)
14+
[![GitHub stars](https://img.shields.io/github/stars/rai-opensource/spatialmath-python.svg?style=social&label=Star)](https://GitHub.com/rai-opensource/spatialmath-python/stargazers/)
1515

1616
# Repository Migration Notice
1717

1818
> [!IMPORTANT]
19-
> This repository is moving to the **RAI-Opensource** GitHub organization in **about 2 weeks from April 9, 2026 (UTC)**.
19+
> This repository has moved to the **RAI-Opensource** GitHub organization!
2020
>
21-
> The `github.io` page is now at <https://spatialmath-python.rai-inst.com/>. The old link (`https://bdaiinstitute.github.io/spatialmath-python`) will continue to redirect until repository migration and **then will break**.
21+
> The `github.io` page is now at <https://spatialmath-python.rai-inst.com/>. The old link (`https://bdaiinstitute.github.io/spatialmath-python`) is no longer valid.
2222
>
23-
> Current status: **pre-migration**.
24-
> Migration target org: <https://github.com/RAI-Opensource/spatialmath-python>
23+
> Current status: **Migrated**.
24+
> - Migration target org: https://github.com/RAI-Opensource
25+
> - Previous target org: https://github.com/bdaiinstitute
2526
>
2627
> What to do now:
27-
>
28-
> - Immediately: Update any links of `https://bdaiinstitute.github.io/spatialmath-python` to <https://spatialmath-python.rai-inst.com/>
29-
>
30-
>
31-
> - Watch this repository for the final cutover update and destination repository link.
32-
> - Plan to update your git remote after the move:
33-
>
28+
> - Update your git remote:
3429
> ```bash
3530
> git remote set-url origin https://github.com/rai-opensource/spatialmath-python.git
3631
> ```
37-
>
38-
>
39-
32+
> - Update any links of `https://bdaiinstitute.github.io/spatialmath-python` to <https://spatialmath-python.rai-inst.com/>
33+
> - If you maintain downstream docs/scripts, update links from this repository to the new org.
4034
4135
<table style="border:0px">
4236
<tr style="border:0px">
4337
<td style="border:0px">
44-
<img src="https://github.com/bdaiinstitute/spatialmath-python/raw/master/docs/figs/CartesianSnakes_LogoW.png" width="200"></td>
38+
<img src="https://github.com/rai-opensource/spatialmath-python/raw/master/docs/figs/CartesianSnakes_LogoW.png" width="200"></td>
4539
<td style="border:0px">
4640
A Python implementation of the <a href="https://github.com/petercorke/spatial-math">Spatial Math Toolbox for MATLAB<sup>&reg;</sup></a>
4741
<ul>
48-
<li><a href="https://github.com/bdaiinstitute/spatialmath-python">GitHub repository </a></li>
42+
<li><a href="https://github.com/rai-opensource/spatialmath-python">GitHub repository </a></li>
4943
<li><a href="https://https://spatialmath-python.rai-inst.com">Documentation</a></li>
50-
<li><a href=https://github.com/bdaiinstitute/spatialmath-python/discussions/categories/changes>Recent changes</a>
51-
<li><a href="https://github.com/bdaiinstitute/spatialmath-python/wiki">Wiki (examples and details)</a></li>
44+
<li><a href=https://github.com/rai-opensource/spatialmath-python/discussions/categories/changes>Recent changes</a>
45+
<li><a href="https://github.com/rai-opensource/spatialmath-python/wiki">Wiki (examples and details)</a></li>
5246
<li><a href="installation#">Installation</a></li>
5347
</ul>
5448
</td>
@@ -98,7 +92,7 @@ These are layered over a set of base functions that perform many of the same ope
9892
9993
The class, method and functions names largely mirror those of the MATLAB toolboxes, and the semantics are quite similar.
10094
101-
![trplot](https://github.com/bdaiinstitute/spatialmath-python/raw/master/docs/figs/fig1.png)
95+
![trplot](https://github.com/rai-opensource/spatialmath-python/raw/master/docs/figs/fig1.png)
10296
10397
![animation video](./docs/figs/animate.gif)
10498
@@ -127,12 +121,12 @@ If the toolbox helped you in your research, please cite
127121
128122
If you are using the Toolbox in your open source code, feel free to add our badge to your readme!
129123
130-
[![Powered by the Spatial Math Toolbox](https://github.com/bdaiinstitute/spatialmath-python/raw/master/.github/svg/sm_powered.min.svg)](https://github.com/bdaiinstitute/spatialmath-python)
124+
[![Powered by the Spatial Math Toolbox](https://github.com/rai-opensource/spatialmath-python/raw/master/.github/svg/sm_powered.min.svg)](https://github.com/rai-opensource/spatialmath-python)
131125
132126
Simply copy the following
133127
134128
```
135-
[![Powered by the Spatial Math Toolbox](https://github.com/bdaiinstitute/spatialmath-python/raw/master/.github/svg/sm_powered.min.svg)](https://github.com/bdaiinstitute/spatialmath-python)
129+
[![Powered by the Spatial Math Toolbox](https://github.com/rai-opensource/spatialmath-python/raw/master/.github/svg/sm_powered.min.svg)](https://github.com/rai-opensource/spatialmath-python)
136130
```
137131
138132
@@ -158,7 +152,7 @@ pip install spatialmath-python[ros-humble]
158152
Install the current code base from GitHub and pip install a link to that cloned copy
159153
160154
```
161-
git clone https://github.com/bdaiinstitute/spatialmath-python.git
155+
git clone https://github.com/rai-opensource/spatialmath-python.git
162156
cd spatialmath-python
163157
pip install -e .
164158
# Optional: if you would like to contribute and commit code changes to the repository,
@@ -302,14 +296,14 @@ t = 1, 2, 3; rpy/zyx = 30, 0, 0 deg
302296
>>> T.plot()
303297
```
304298
305-
![trplot](https://github.com/bdaiinstitute/spatialmath-python/raw/master/docs/figs/fig1.png)
299+
![trplot](https://github.com/rai-opensource/spatialmath-python/raw/master/docs/figs/fig1.png)
306300
307301
`printline` is a compact single line format for tabular listing, whereas `print` shows the underlying matrix and for consoles that support it, it is colorised, with rotational elements in red and translational elements in blue.
308302
309303
For more detail checkout the shipped Python notebooks:
310304
311-
* [gentle introduction](https://github.com/bdaiinstitute/spatialmath-python/blob/master/notebooks/gentle-introduction.ipynb)
312-
* [deeper introduction](https://github.com/bdaiinstitute/spatialmath-python/blob/master/notebooks/introduction.ipynb)
305+
* [gentle introduction](https://github.com/rai-opensource/spatialmath-python/blob/master/notebooks/gentle-introduction.ipynb)
306+
* [deeper introduction](https://github.com/rai-opensource/spatialmath-python/blob/master/notebooks/introduction.ipynb)
313307
314308
315309
You can browse it statically through the links above, or clone the toolbox and run them interactively using [Jupyter](https://jupyter.org) or [JupyterLab](https://jupyter.org).
@@ -395,7 +389,7 @@ array([-60, 12, 30, 24])
395389
396390
## Graphics
397391
398-
![trplot](https://github.com/bdaiinstitute/spatialmath-python/raw/master/docs/figs/transforms3d.png)
392+
![trplot](https://github.com/rai-opensource/spatialmath-python/raw/master/docs/figs/transforms3d.png)
399393
400394
The functions support various plotting styles
401395
@@ -469,8 +463,12 @@ We see that the symbolic constants are converted back to Python numeric types on
469463
470464
Similarly when we assign an element or slice of the symbolic matrix to a numeric value, they are converted to symbolic constants on the way in.
471465
466+
## Making a New Release
467+
- Make a pull request that bumps the version number in `pyproject.toml`, which follows the major.minor.patch semantic versioning convention.
468+
- Then, go to the URL https://github.com/rai-opensource/spatialmath-python/releases, click draft new release. Click the tag selection dialouge, then click create new tag, and make a tag that matches the semantic version numbers in the pull request you just made. Click "generate release notes", then click publish release. This will automatically kick off the workflow in `.github/workflows/publish.yml` and the new version of the code on PyPi (https://pypi.org/project/spatialmath-python).
469+
472470
## History & Contributors
473471
474472
This package was originally created by [Peter Corke](https://github.com/petercorke) and [Jesse Haviland](https://github.com/jhavl) and was inspired by the [Spatial Math Toolbox for MATLAB](https://github.com/petercorke/spatialmath-matlab). It supports the textbook [Robotics, Vision & Control in Python 3e](https://github.com/petercorke/RVC3-python).
475473
476-
The package is now a collaboration with [Boston Dynamics AI Institute](https://theaiinstitute.com/).
474+
The package is now a collaboration with the [Robotics and AI Institute](https://rai-inst.com/).

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "spatialmath-python"
3-
version = "1.1.15"
3+
version = "1.1.16"
44
authors = [
55
{ name="Peter Corke", email="rvc@petercorke.com" },
66
]
@@ -45,10 +45,10 @@ dependencies = [
4545
]
4646

4747
[project.urls]
48-
"Homepage" = "https://github.com/bdaiinstitute/spatialmath-python"
49-
"Bug Tracker" = "https://github.com/bdaiinstitute/spatialmath-python/issues"
50-
"Documentation" = "https://bdaiinstitute.github.io/spatialmath-python/"
51-
"Source" = "https://github.com/bdaiinstitute/spatialmath-python"
48+
"Homepage" = "https://github.com/rai-opensource/spatialmath-python"
49+
"Bug Tracker" = "https://github.com/rai-opensource/spatialmath-python/issues"
50+
"Documentation" = "https://rai-opensource.github.io/spatialmath-python/"
51+
"Source" = "https://github.com/rai-opensource/spatialmath-python"
5252

5353
[project.optional-dependencies]
5454

spatialmath/base/transforms3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ def angvec2r(theta: float, v: ArrayLike3, unit="rad", tol: float = 20) -> SO3Arr
752752
if np.linalg.norm(v) < tol * _eps:
753753
return np.eye(3)
754754

755-
θ = getunit(theta, unit)
755+
θ = getunit(theta, unit, vector=False)
756756

757757
# Rodrigue's equation
758758

tests/test_pose3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1390,7 +1390,7 @@ def test_rtvec(self):
13901390
nt.assert_equal(tvec, [2, 3, 4])
13911391

13921392
def test_interp(self):
1393-
# This data is taken from https://github.com/bdaiinstitute/spatialmath-python/issues/165
1393+
# This data is taken from https://github.com/rai-opensource/spatialmath-python/issues/165
13941394
se3_1 = SE3()
13951395
se3_1.t = np.array(
13961396
[0.5705748101710814, 0.29623210833184527, 0.10764106509086407]

0 commit comments

Comments
 (0)