Skip to main content

Rigid body dynamics library

Project description

Builds Tests Docs

spatial-dyn

spatial-dyn is a C++/Python rigid body dynamics library.

See the documentation for spatial-dyn here.

Installation

This library is written in C++ with Python bindings automatically generated with pybind11. It has been tested on Ubuntu 18.04, Ubuntu 20.04, and macOS 10.15 Catalina.

Compilation requirements:

  • cmake >= 3.11
  • C++17 support (gcc >= 7, clang >= 7).

See Updating CMake for details on how to install the latest cmake. Ubuntu 20.04 comes with a sufficient version of cmake out of the box.

C++ only

The C++ portion of spatial-dyn is header-only, but to add spatial-dyn as a cmake dependency, you can run the following:

mkdir build
cmake -B build

Python only

Use pip to install spatial-dyn in your virtual environment.

pip install .

You can now import the spatialdyn package in Python.

import spatialdyn as dyn

C++ and Python

An in-place pip install will run the appropriate CMake command to build spatial-dyn locally in the ./build folder. This will give you access to the cmake configuration files for C++ as well as the spatialdyn package in Python.

pip install -e .

Updating CMake

Ubuntu 18.04

The simplest way to install the latest version of cmake is through pip:

pip install cmake

You can also install it through apt:

sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates gnupg wget
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update && sudo apt-get install -y cmake kitware-archive-keyring
sudo rm /etc/apt/trusted.gpg.d/kitware.gpg

macOS

Install cmake through Homebrew:

brew install cmake

Or through pip:

pip3 install cmake

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

spatialdyn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

spatialdyn-1.5.0-cp310-cp310-macosx_10_14_universal2.whl (1.9 MB view details)

Uploaded CPython 3.10 macOS 10.14+ universal2 (ARM64, x86-64)

spatialdyn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

spatialdyn-1.5.0-cp39-cp39-macosx_10_14_universal2.whl (1.9 MB view details)

Uploaded CPython 3.9 macOS 10.14+ universal2 (ARM64, x86-64)

spatialdyn-1.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

spatialdyn-1.5.0-cp38-cp38-macosx_10_14_universal2.whl (1.9 MB view details)

Uploaded CPython 3.8 macOS 10.14+ universal2 (ARM64, x86-64)

spatialdyn-1.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

File details

Details for the file spatialdyn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 93c63143bde0bfa0c69d6f7a192b5b4c23597fc93c7fc946c27b40d7818ec1b7
MD5 dbb913c1c23100510455318bae45c266
BLAKE2b-256 cf9d7e65b4e04fb0a6ce1d9799ce34e4fc073c093d72467576d36099f25978e3

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.0-cp310-cp310-macosx_10_14_universal2.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.0-cp310-cp310-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 07f98e1939b180e0d94bf94dbc542ed2ff8d398ef221a70078f217941e8f174b
MD5 3a9dc1bae4a1840eef01b3dbfba0a28a
BLAKE2b-256 8cad05f7a54e031c906b2069ada9733cede9b63bfc4967fd3ef8333754d4880b

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 68ad02d5c90c4e06479a575649e34fa8cfd0fe69b308ac37aef97e644ff76a61
MD5 ff014a60f0e4dc7818f31947a32ab609
BLAKE2b-256 41bb880c44518bc9d38780823197bd83a3a6db90b2bb7702f25c8bc55d686610

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.0-cp39-cp39-macosx_10_14_universal2.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.0-cp39-cp39-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 b9d37fe45cb49a53cda3fcfbf024bfaf99edfd155a88751356ec3e3d0969e008
MD5 95bfe5d634ab26034e440ef8d35e2939
BLAKE2b-256 f8173deec104f72c5a635bcce594ff02dde8e3dbf22e84326e722c9c2d36fd86

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0839aa3062d1b2a6ce713628e9c26dee9ee29fc8059a4b1099bd5c6edb2b5ad9
MD5 b72074bbd09b52c25398fbe23a7e8ebb
BLAKE2b-256 9cb8f89cdc02bc96adfa069251de089c170666567e4eb1a6d457b911816e4dd8

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.0-cp38-cp38-macosx_10_14_universal2.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.0-cp38-cp38-macosx_10_14_universal2.whl
Algorithm Hash digest
SHA256 b28e9748f763385ada03cde3df455561ee2db70e1f0d0a18ac523e37cbc441b8
MD5 cfa11a27261b3371faca742f7722ba77
BLAKE2b-256 c50eb47bc726394abc7e936b71194dbb68a023bd8fbea59623b8368bbee4140e

See more details on using hashes here.

File details

Details for the file spatialdyn-1.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for spatialdyn-1.5.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 727b8e8441222efa1b677fc4c313291fbb40de31dfc3e3ff7ea75d9a198844c7
MD5 a8aaa504f4800578ed158d9418bfcf38
BLAKE2b-256 cc6efaf7423648e6f841fce50eebb85548a7906ae9ede0d81ae9b54ca415441d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page