Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ Install a snapshot from PyPI
pip install spatialmath-python
```

Note that if you are using ROS2, you may run into version conflicts when using `rosdep`, particularly
concerning `matplotlib`. If this happens, you can enable optional version pinning with

```
pip install spatialmath-python[ros-humble]
```

## From GitHub

Install the current code base from GitHub and pip install a link to that cloned copy
Expand Down
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ keywords = [
]

dependencies = [
"numpy>=1.22,<2", # Cannot use 2.0 due to matplotlib version pinning.
"numpy>=1.22",
"scipy",
"matplotlib==3.5.1", # Large user-base has apt-installed python3-matplotlib (ROS2) which is pinned to this version.
"matplotlib",
"ansitable",
"typing_extensions",
"pre-commit",
Expand Down Expand Up @@ -70,6 +70,11 @@ docs = [
"sphinx-autodoc-typehints",
]

ros-humble = [
"matplotlib==3.5.1", # Large user-base has apt-installed python3-matplotlib (ROS2) which is pinned to this version.
"numpy<2", # Cannot use 2.0 due to matplotlib version pinning.
]

[build-system]

requires = ["setuptools", "oldest-supported-numpy"]
Expand Down
Loading